![]() |
Home |
|
Function xn_tcp_is_readChecks the state of a socket. int xn_tcp_is_read(SOCKET socket); ParameterssocketSocket returned by socket or accept. return valueReturns TRUE if the socket is a TCP socket and incoming data is queued on it. This routine is useful to call after select to determine whether a socket which select determined as ready to read (i.e. read will not block) is ready due to an error or is ready due to data queued on the socket.
|