sdlNetUdpClose function
Close a UDP socket.
This disconnects the socket and frees any resources it retains.
This socket may not be used again once given to this function.
\param sock UDP socket to close.
\since This function is available since SDL_net 2.0.0.
extern DECLSPEC void SDLCALL SDLNet_UDP_Close(UDPsocket sock)
Implementation
void sdlNetUdpClose(Pointer<UDPsocket> sock) {
final sdlNetUdpCloseLookupFunction = libSdl2Net.lookupFunction<
Void Function(Pointer<UDPsocket> sock),
void Function(Pointer<UDPsocket> sock)>('SDLNet_UDP_Close');
return sdlNetUdpCloseLookupFunction(sock);
}