Wait until the socket has some readable data.
- Parameters:
-
| sockfd | socket descriptor |
| timeoutms | wait timeout milliseconds. if set to negative value, wait indefinitely. |
- Returns:
- 1 on readable, or 0 on timeout, or -1 if an error(ex:socket closed) occurred.
- Since:
- 8.1R
- Note:
- does not need to set the socket as non-block mode.
Definition at line 124 of file qSocket.c.