| 168 | } |
| 169 | |
| 170 | void setNativeBlocking(int nativeSocket, bool blocking) { |
| 171 | #ifdef WIN32 |
| 172 | u_long mode = blocking?0:1; |
| 173 | ioctlsocket(nativeSocket, FIONBIO, &mode); |
| 174 | #else |
| 175 | if (blocking) |
| 176 | fcntl(nativeSocket, F_SETFL, fcntl(nativeSocket, F_GETFL, 0) & ~O_NONBLOCK); |
| 177 | else |
| 178 | fcntl(nativeSocket, F_SETFL, fcntl(nativeSocket, F_GETFL, 0) | O_NONBLOCK); |
| 179 | #endif |
| 180 | } |
| 181 | |
| 182 | #ifdef BOXEDWINE_MULTI_THREADED |
| 183 | static int checkWaitingNativeSockets_thread(void *ptr) { |
no outgoing calls
no test coverage detected