| 524 | #endif |
| 525 | |
| 526 | int 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 | |
| 536 | void CloseNetworking() { |
| 537 | if (Sockets_initted != 1) |
no outgoing calls
no test coverage detected