| 75 | TCPSocket::TCPSocket(int s) : sock_(s) {} |
| 76 | |
| 77 | TCPSocket::~TCPSocket() { |
| 78 | if (sock_ > 0) { |
| 79 | shutdown(sock_, 2); |
| 80 | close(sock_); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | int TCPSocket::detach() { |
| 85 | int s = sock_; |
nothing calls this directly
no outgoing calls
no test coverage detected