MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / ~NetConnection

Method ~NetConnection

PanzerChasm/net/net.cpp:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
162public: // IConnection
163 virtual void SendReliablePacket( const void* data, unsigned int data_size ) override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected