netDestroyServer function net
Dispose of a previously-created server.
This will immediately disconnect any pending client connections that had not yet been accepted, but will not disconnect any existing accepted connections (which can still be used and must be destroyed separately). Further attempts to make new connections to this server will fail on the client side.
\param server server to destroy.
\threadsafety You should not operate on the same server from multiple threads at the same time without supplying a serialization mechanism. However, different threads may access different servers at the same time without problems.
\since This function is available since SDL_net 3.0.0.
\sa NET_CreateServer
extern SDL_DECLSPEC void SDLCALL NET_DestroyServer(NET_Server *server)
Implementation
void netDestroyServer(Pointer<NetServer> server) {
final netDestroyServerLookupFunction = _libNet
.lookupFunction<
Void Function(Pointer<NetServer> server),
void Function(Pointer<NetServer> server)
>('NET_DestroyServer');
return netDestroyServerLookupFunction(server);
}