[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
int SDLNet_CheckSockets(SDLNet_SocketSet set, Uint32 timeout)
Check all sockets in the socket set for activity. If a non-zero timeout is given then this function will wait for activity, or else it will wait for timeout milliseconds.
NOTE: "activity" also includes disconnections and other errors, which would be determined by a failed read/write attempt.
Returns: the number of sockets with activity. -1 is returned on errors, and you may not get a meaningful error message. -1 is also returned for an empty set (nothing to check).
|
See Also:
3.6.6 SDLNet_SocketReady,
3.6.3 SDLNet_AddSocket,
3.6.4 SDLNet_DelSocket,
3.6.1 SDLNet_AllocSocketSet,
4.5 SDLNet_SocketSet,
4.3 UDPsocket,
4.2 TCPsocket