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

Function IsSocketValid

engine/dlib/src/dlib/message.cpp:378–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376 }
377
378 bool IsSocketValid(HSocket socket)
379 {
380 if (socket != 0)
381 {
382 DM_SPINLOCK_SCOPED_LOCK(g_MessageSpinlock);
383 MessageSocket* message_socket = g_MessageContext->m_Sockets.Get(socket);
384 return message_socket != 0;
385 }
386 return false;
387 }
388
389 bool HasMessages(HSocket socket)
390 {

Callers 6

UrlToStringFunction · 0.85
TESTFunction · 0.85
GetSenderFunction · 0.85
LoadCompleteFunction · 0.85
UnloadCompleteFunction · 0.85
DispatchSoundEventFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by 1

TESTFunction · 0.68