RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTcpServer.Close Method

Shuts down the socket connection.

Pascal
procedure Close; override;
C++
virtual __fastcall Close();

Call Close to shut down the socket connection. Close sets the Active property to false.  

For client sockets, Close terminates the connection to the server. For server sockets, Close shuts down the connection so that the server socket is no longer listening for client requests. 

 

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