MCPcopy Create free account
hub / github.com/WheretIB/nullc / SocketIsReadable

Function SocketIsReadable

NULLC/nullc_remote.h:258–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 return allSize;
257}
258int 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
271void PipeSendData(SOCKET sck, PipeData &data, const char* start, unsigned int count, unsigned int whole)
272{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected