RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWinSocket.Close Method

Shuts down the socket connection if it is open.

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

Call Close to terminate an open socket connection. Close triggers an OnSocketEvent of type seDisconnect before the connection is shut down. If the Windows socket is a listening server socket, Close shuts down all open connections to client sockets before shutting down the listening connection. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!