SDL Wiki
(This function is part of SDL_net, a separate library from SDL.)

SDLNet_UDP_DelSocket

Remove a UDP socket from a socket set.

Header File

Defined in <SDL_net.h>

Syntax

SDL_FORCE_INLINE int SDLNet_UDP_DelSocket(SDLNet_SocketSet set, UDPsocket sock);

Function Parameters

SDLNet_SocketSet set the socket set to remove a socket from.
UDPsocket sock the socket to remove from the set.

Return Value

(int) Returns the total number of sockets contained in the set (after sock's removal), or -1 if sock was not in the set.

Remarks

This is a small UDP-specific wrapper over SDLNet_DelSocket; please refer to that function's documentation.

Version

This function is available since SDL_net 2.0.0.

See Also


CategoryAPI, CategoryAPIFunction


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.