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

Function GetSocketNoLock

engine/dlib/src/dlib/message.cpp:320–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 }
319
320 static Result GetSocketNoLock(dmhash_t name_hash, HSocket* out_socket)
321 {
322 *out_socket = name_hash; // to silence an existing test
323
324 MessageSocket* message_socket = g_MessageContext->m_Sockets.Get(name_hash);
325 if (!message_socket)
326 {
327 return RESULT_NAME_OK_SOCKET_NOT_FOUND;
328 }
329 return RESULT_OK;
330 }
331
332 Result GetSocket(const char *name, HSocket* out_socket)
333 {

Callers 2

NewSocketFunction · 0.85
GetSocketFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected