MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / make_nonblocking

Function make_nonblocking

networking/networking.cpp:526–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524#endif
525
526int make_nonblocking(SOCKET sock)
527{
528#ifdef WIN32
529 unsigned long arg = 1;
530 return ioctlsocket(sock, FIONBIO, &arg);
531#else // WIN32
532 return fcntl(sock, F_SETFL, fcntl(sock, F_GETFL, 0) | O_NONBLOCK);
533#endif
534}
535
536void CloseNetworking() {
537 if (Sockets_initted != 1)

Callers 4

PrepSocketMethod · 0.85
nw_SetSocketOptionsFunction · 0.85
InitDedicatedSocketFunction · 0.85
ListenDedicatedSocketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected