Closing Server Connections
Go Up to Using server sockets Index
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 Sockets.OnDisconnect event.