Create a new socket set
A new, empty, SDLNet_SocketSet. NULL is returned on errors, such as out-of-memory.
Binds to C-function call in SDL_net.h:
extern DECLSPEC SDLNet_SocketSet SDLCALL SDLNet_AllocSocketSet(int maxsockets)
// Create a socket set to handle up to 16 sockets SDLNet_SocketSet set; set=SDLNet_AllocSocketSet(16); if(!set) { printf("SDLNet_AllocSocketSet: %s\n", SDLNet_GetError()); exit(1); //most of the time this is a major error, but do what you want. }
SdlNet Class | Tao.Sdl Namespace | SDLNet_FreeSocketSet | SDLNet_AddSocket | SdlNet.SDLNet_SocketSet | SdlNet.UDPsocket | SdlNet.TCPsocket