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

Function GetSocket

engine/dlib/src/dlib/connection_pool.cpp:603–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601 }
602
603 dmSocket::Socket GetSocket(HPool pool, HConnection connection)
604 {
605 DM_MUTEX_SCOPED_LOCK(pool->m_Mutex);
606
607 Connection* c = GetConnection(pool, connection);
608 assert(c->m_State == STATE_INUSE);
609 return c->m_Socket;
610 }
611
612 dmSSLSocket::Socket GetSSLSocket(HPool pool, HConnection connection)
613 {

Callers

nothing calls this directly

Calls 2

GetConnectionFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected