SDLNet_UDP_Unbind

Name

SDLNet_UDP_Unbind -- Remove all previously assigned (bound) addresses from a socket channel.

Synopsis

void SDLNet_UDP_Unbind(UDPsocket sock, int channel)

sock A valid UDPsocket to unbind addresses from.

channel The channel to unbind the addresses from in the UDPsocket.

Description

This removes all previously assigned (bound) addresses from a socket channel.

After this you may bind new addresses to the socket channel.

Return Value

Returns: nothing, this always succeeds.

Example

// unbind all addresses on the UDPsocket channel 0
//UDPsocket udpsock;

SDLNet_UDP_Unbind(udpsock, 0);

See Also

SDLNet_UDP_Bind, SDLNet_UDP_Close, UDPsocket

SDLNet_UDP_Unbind (last edited 2008-04-17 08:18:32 by localhost)