Closing Server Connections

From RAD Studio
Jump to: navigation, search

Go Up to Using Server Sockets


When you want to shut down the listening connection, call the Close method or set the Active property to False. This shuts down all open connections to client applications, cancels any pending connections that have not been accepted, and then shuts down the listening connection so that your server socket component does not accept any new connections.

When TCP clients shut down their individual connections to your server socket, you are informed by an OnDisconnect event.

See Also