System.Win.ScktComp.TCustomWinSocket.Close
Delphi
procedure Close; overload;
procedure Close(ForceClosed: Boolean); overload;
C++
void __fastcall Close()/* overload */;
void __fastcall Close(bool ForceClosed)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Win.ScktComp.pas System.Win.ScktComp.hpp |
System.Win.ScktComp | TCustomWinSocket |
Description
Shuts down the socket connection if it is open.
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.