Dispose of a previously-created server.
Defined in <SDL3_net/SDL_net.h>
void SDLNet_DestroyServer(SDLNet_Server *server);
SDLNet_Server * | server | server to destroy. |
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.
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.
This function is available since SDL_Net 3.0.0.