| 256 | return allSize; |
| 257 | } |
| 258 | int SocketIsReadable(SOCKET sck, int timeOut) |
| 259 | { |
| 260 | fd_set fd = { 1, sck }; |
| 261 | timeval tv = { timeOut, 0 }; |
| 262 | |
| 263 | const int iRet = select(0, &fd, NULL, NULL, &tv); |
| 264 | |
| 265 | if(iRet == NULLC_SOCKET_ERROR) |
| 266 | return -1; |
| 267 | |
| 268 | return iRet == 1; |
| 269 | } |
| 270 | |
| 271 | void PipeSendData(SOCKET sck, PipeData &data, const char* start, unsigned int count, unsigned int whole) |
| 272 | { |
nothing calls this directly
no outgoing calls
no test coverage detected