RAD Studio
ContentsIndex
PreviousUpNext
Closing Server Connections

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.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!