Tao.Sdl SDK Documentation |
|
SdlNet.SDLNet_UDP_Unbind Method
Remove all assigned IP addresses from a socket channel
[Visual Basic]
Public Shared Sub SDLNet_UDP_Unbind( _
ByVal
sock As
IntPtr, _
ByVal
channel As
Integer _
)
[C#]
public static
void SDLNet_UDP_Unbind(
IntPtr sock,
int channel);
Parameters
-
sock
- A valid UDPsocket to unbind addresses from.
-
channel
- The channel to unbind the addresses from in the UDPsocket.
Return Value
nothing, this always succeeds.
Remarks
This removes all previously assigned (bound) addresses from a socket channel. After this you may bind new addresses to the socket channel.
Binds to C-function call in SDL_net.h:
extern DECLSPEC void SDLCALL SDLNet_UDP_Unbind(UDPsocket sock, int channel)
Example
// unbind all addresses on the UDPsocket channel 0
//UDPsocket udpsock;
SDLNet_UDP_Unbind(udpsock, 0);
See Also
SdlNet Class | Tao.Sdl Namespace | SDLNet_UDP_Bind | SDLNet_UDP_Close | SdlNet.UDPsocket