SDLNet.SocketSet.has_data:
Description:
public int has_data (
uint timeout)
This function checks to see if data is available for reading on the given set of sockets.
Parameters:
ptr: |
If 'timeout' is 0, it performs a quick poll, otherwise the function returns when either data is available for reading, or the timeout in milliseconds has elapsed, which ever occurs first.
|
Returns:
This function returns the number of sockets ready for reading, or -1 if there was an error with the select() system call.