| 148 | } |
| 149 | |
| 150 | virtual ~NetConnection() override |
| 151 | { |
| 152 | Disconnect(); |
| 153 | #ifdef _WIN32 |
| 154 | ::closesocket( tcp_socket_ ); |
| 155 | ::closesocket( udp_socket_ ); |
| 156 | #else |
| 157 | ::close( tcp_socket_ ); |
| 158 | ::close( udp_socket_ ); |
| 159 | #endif |
| 160 | } |
| 161 | |
| 162 | public: // IConnection |
| 163 | virtual void SendReliablePacket( const void* data, unsigned int data_size ) override |
nothing calls this directly
no outgoing calls
no test coverage detected