RAD Studio |  |

Closing Server Connections
See Also
Collapse All

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

Specifying the Port

Listening for Client Requests

Connecting to Clients

Reading and Writing Over Socket Connections

Server Events

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