Handleset_waitReady

Function Handleset_waitReady 

Source
pub unsafe extern "C" fn Handleset_waitReady(
    self_: HandleSet,
    timeoutMs: c_uint,
) -> c_int
Expand description

wait for a socket to become ready

This function is corresponding to the BSD socket select function. It returns the number of sockets on which data is pending or 0 if no data is pending on any of the monitored connections. The function will return after “timeout” ms if no data is pending. The function shall return -1 if a socket error occures.

§Arguments

  • self - the HandleSet instance
  • timeout - in milliseconds (ms)

§Returns

It returns the number of sockets on which data is pending or 0 if no data is pending on any of the monitored connections. The function shall return -1 if a socket error occures.