Add a UDP socket to a socket set, to be checked for available data.
Defined in <SDL_net.h>
int SDLNet_UDP_AddSocket(SDLNet_SocketSet set, UDPsocket sock); SDL_FORCE_INLINE
SDLNet_SocketSet | set | the socket set to add a new socket to. |
UDPsocket | sock | the socket to add to the set. |
(int) Returns the total number of sockets contained in the set (including this new one), or -1 if the set is already full.
This is a small UDP-specific wrapper over SDLNet_AddSocket; please refer to that function's documentation.
This function is available since SDL_net 2.0.0.