MCPcopy Create free account
hub / github.com/ml-explore/mlx / TCPSocket

Method TCPSocket

mlx/distributed/utils.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53TCPSocket::TCPSocket(const char* tag) {
54 sock_ = socket(AF_INET, SOCK_STREAM, 0);
55 if (sock_ < 0) {
56 std::ostringstream msg;
57 msg << tag << " Couldn't create socket (error: " << errno << ")";
58 throw std::runtime_error(msg.str());
59 }
60}
61
62TCPSocket::TCPSocket(TCPSocket&& s) {
63 sock_ = s.sock_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected