| 90 | } |
| 91 | |
| 92 | void SocketInterface::Disconnect() |
| 93 | { |
| 94 | if (!IsConnected()) return; |
| 95 | |
| 96 | closesocket(clientSocket_); |
| 97 | clientSocket_ = 0; |
| 98 | |
| 99 | if (disconnectHandler_) { |
| 100 | disconnectHandler_(); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | void SocketInterface::MessageLoop(SOCKET sock) |
| 105 | { |
no outgoing calls
no test coverage detected