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

Function GetSocket

engine/dlib/src/dlib/message.cpp:332–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330 }
331
332 Result GetSocket(const char *name, HSocket* out_socket)
333 {
334 DM_PROFILE("GetSocket");
335
336 if (name == 0x0 || *name == 0 || strchr(name, '#') != 0x0 || strchr(name, ':') != 0x0)
337 {
338 return RESULT_INVALID_SOCKET_NAME;
339 }
340
341 dmhash_t name_hash = dmHashString64(name);
342
343 DM_SPINLOCK_SCOPED_LOCK(g_MessageSpinlock);
344
345 return GetSocketNoLock(name_hash, out_socket);
346 }
347
348 const char* GetSocketName(HSocket socket)
349 {

Callers 8

ConnectMethod · 0.70
OnWindowResizeFunction · 0.50
ParsePostUrlMethod · 0.50
SendReloadThreadFunction · 0.50
TEST_FFunction · 0.50
ScriptPhysicsRegisterFunction · 0.50
Http_RequestFunction · 0.50

Calls 1

GetSocketNoLockFunction · 0.85

Tested by 2

SendReloadThreadFunction · 0.40
TEST_FFunction · 0.40