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

Function GetConnection

engine/dlib/src/dlib/connection_pool.cpp:182–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 }
181
182 static Connection* GetConnection(HPool pool, HConnection c) {
183 uint16_t v = c >> 16;
184 uint16_t i = c & 0xffff;
185
186 Connection* ret = &pool->m_Connections[i];
187 assert(ret->m_Version == v);
188 return ret;
189 }
190
191 static bool FindConnection(HPool pool, dmhash_t id, dmSocket::Address address, uint16_t port, bool ssl, HConnection* connection)
192 {

Callers 6

CreateSSLSocketFunction · 0.85
ReturnFunction · 0.85
CloseFunction · 0.85
GetSocketFunction · 0.85
GetSSLSocketFunction · 0.85
GetReuseCountFunction · 0.85

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected