MCPcopy Create free account
hub / github.com/captain-amygdala/pistorm / SocketErrorCodeToString

Function SocketErrorCodeToString

raylib_pi4_test/rnet.h:655–664  ·  view source on GitHub ↗

Returns a human-readable string representing the error message (err)

Source from the content-addressed store, hash-verified

653
654// Returns a human-readable string representing the error message (err)
655static char *SocketErrorCodeToString(int err)
656{
657#if defined(_WIN32)
658 static char gaiStrErrorBuffer[GAI_STRERROR_BUFFER_SIZE];
659 TRACELOG(LOG_INFO, gaiStrErrorBuffer, "%s", gai_strerror(err));
660 return gaiStrErrorBuffer;
661#else
662 return gai_strerror(err);
663#endif
664}
665
666// Set the defaults in the supplied SocketConfig if they're not already set
667static bool SocketSetDefaults(SocketConfig *config)

Callers 11

SocketGetLastErrorStringFunction · 0.70
CreateSocketFunction · 0.70
ResolveHostFunction · 0.70
SocketBindFunction · 0.70
SocketListenFunction · 0.70
SocketConnectFunction · 0.70
SocketAcceptFunction · 0.70
SocketSendFunction · 0.70
SocketReceiveFunction · 0.70
IsSocketConnectedFunction · 0.70
GetAddressHostAndPortFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected