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

Function PublishInProgressSocket

engine/dlib/src/dlib/connection_pool.cpp:254–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252 }
253
254 static bool PublishInProgressSocket(HPool pool, Connection* connection, dmSocket::Socket* socket)
255 {
256 DM_MUTEX_SCOPED_LOCK(pool->m_Mutex);
257 if (connection->m_State == STATE_INUSE && !connection->m_WasShutdown)
258 {
259 connection->m_Socket = *socket;
260 return true;
261 }
262 return false;
263 }
264
265 static void UnpublishInProgressSocket(HPool pool, Connection* connection, dmSocket::Socket socket)
266 {

Callers 1

ConnectSocketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected