MCPcopy Create free account
hub / github.com/defold/defold / CloseInProgressSocket

Function CloseInProgressSocket

engine/dlib/src/dlib/connection_pool.cpp:274–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 }
273
274 static void CloseInProgressSocket(HPool pool, Connection* connection, dmSocket::Socket* socket)
275 {
276 if (*socket != dmSocket::INVALID_SOCKET_HANDLE)
277 {
278 UnpublishInProgressSocket(pool, connection, *socket);
279 dmSocket::Delete(*socket);
280 *socket = dmSocket::INVALID_SOCKET_HANDLE;
281 }
282 }
283
284 static Result ConnectSocket(HPool pool, Connection* connection, dmSocket::Address address, uint16_t port, int timeout, dmSocket::Socket* socket, dmSocket::Result* sr)
285 {

Callers 2

ConnectSocketFunction · 0.85
ConnectFunction · 0.85

Calls 2

DeleteFunction · 0.70

Tested by

no test coverage detected