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

Method ~TCPSocket

mlx/distributed/utils.cpp:77–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75TCPSocket::TCPSocket(int s) : sock_(s) {}
76
77TCPSocket::~TCPSocket() {
78 if (sock_ > 0) {
79 shutdown(sock_, 2);
80 close(sock_);
81 }
82}
83
84int TCPSocket::detach() {
85 int s = sock_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected