sdlNetUdpUnbind function

void sdlNetUdpUnbind(
  1. Pointer<UDPsocket> sock,
  2. int channel
)

Unbind all addresses from the given channel.

Note that UDP sockets at the platform layer "bind" to a nework port number, but SDL_net's UDP sockets also "bind" to a "channel" on top of that, with SDLNet_UDP_Bind(). But the term is used for both.

\param sock the UDP socket to unbind addresses from a channel on. \param channel the channel of the socket to unbind.

\since This function is available since SDL_net 2.0.0.

\sa SDLNet_UDP_Bind

extern DECLSPEC void SDLCALL SDLNet_UDP_Unbind(UDPsocket sock, int channel)

Implementation

void sdlNetUdpUnbind(Pointer<UDPsocket> sock, int channel) {
  final sdlNetUdpUnbindLookupFunction = libSdl2Net.lookupFunction<
      Void Function(Pointer<UDPsocket> sock, Int32 channel),
      void Function(Pointer<UDPsocket> sock, int channel)>('SDLNet_UDP_Unbind');
  return sdlNetUdpUnbindLookupFunction(sock, channel);
}