Remove a socket from a socket set
the number of sockets used in the set on success. -1 is returned on errors.
Binds to C-function call in SDL_net.h:
#define SDLNet_UDP_DelSocket(set, sock) SDLNet_DelSocket(set, (SDLNet_GenericSocket)sock)
// remove two sockets from a socket set //SDLNet_SocketSet set; //UDPsocket udpsock; //TCPsocket tcpsock; int numused; numused=SDLNet_UDP_DelSocket(set,udpsock); if(numused==-1) { printf("SDLNet_DelSocket: %s\n", SDLNet_GetError()); // perhaps the socket is not in the set } numused=SDLNet_TCP_DelSocket(set,tcpsock); if(numused==-1) { printf("SDLNet_DelSocket: %s\n", SDLNet_GetError()); // perhaps the socket is not in the set }
SdlNet Class | Tao.Sdl Namespace | SDLNet_AddSocket | SDLNet_FreeSocketSet | SdlNet.SDLNet_SocketSet | SdlNet.UDPsocket | SdlNet.TCPsocket