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

Function GetSocketName

engine/dlib/src/dlib/message.cpp:348–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346 }
347
348 const char* GetSocketName(HSocket socket)
349 {
350 DM_SPINLOCK_SCOPED_LOCK(g_MessageSpinlock);
351
352 MessageSocket* message_socket = g_MessageContext->m_Sockets.Get(socket);
353 if (message_socket != 0x0)
354 {
355 return message_socket->m_Name;
356 }
357 else
358 {
359 return 0x0;
360 }
361 }
362
363 dmhash_t GetSocketNameHash(HSocket socket)
364 {

Callers 14

PostScriptMessageFunction · 0.85
PostScriptUnrefMessageFunction · 0.85
DispatchMessagesFunctionFunction · 0.85
UrlToStringFunction · 0.85
Msg_PostFunction · 0.85
DispatchFunction · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85
DispatchFunction · 0.85
LogMessageErrorFunction · 0.85
FactoryComp_SetPrototypeFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TESTFunction · 0.68