[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.6 SDLNet_GenericSocket

typedef struct {
    int ready;
} *SDLNet_GenericSocket;

non-zero when data is ready to be read, or a server socket has a connection attempt ready to be accepted.

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.

See Also:
3.6 Socket Sets, 4.2 TCPsocket, 4.3 UDPsocket

This document was generated on November, 3 2009 using texi2html