NET_DestroyServer - Man Page

Dispose of a previously-created server.

Synopsis

#include <SDL3_net/SDL_net.h>

void NET_DestroyServer(NET_Server *server);

Description

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.

Function Parameters

server

server to destroy.

Thread Safety

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.

Availability

This function is available since SDL_net 3.0.0.

See Also

NET_CreateServer(3)

Referenced By

NET_CreateServer(3).

SDL_net 3.2.0 SDL_net3 FUNCTIONS