See if a specific socket has data available after checking it in a set.
Defined in <SDL_net.h>
#define SDLNet_SocketReady(sock) _SDLNet_SocketReady((SDLNet_GenericSocket)(sock))
sock | the socket to check. |
Returns non-zero if socket has new data available, zero otherwise.
After calling SDLNet_CheckSockets(), you can use this function on a socket that was in the socket set, to find out if data is available for reading.
This function is available since SDL_net 2.0.0.