SDLNet_GenericSocket
Name
SDLNet_GenericSocket -- a generic type for UDP and TCP sockets.
Structure Definition
typedef struct {
int ready;
} *SDLNet_GenericSocket;ready Non-zero when data is ready to be read, or a server socket has a connection attempt ready to be accepted.
Description
This data type is able to be used for both UDPsocket and TCPsocket types.
After calling SDLNet_CheckSockets, if this socket is in SDLNet_SocketSet used, the ready will be set according to activity on the socket. This is the only real use for this type, as it doesn't help you know what type of socket it is.
