RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWinSocket.Connected Property

Indicates whether the socket connection is open and available for communication with other machines.

Pascal
property Connected: Boolean;
C++
__property Boolean Connected;

Read Connected before trying to use or change the Windows socket connection. Connected indicates whether the socket connection has been established. When Connected is true, the Windows socket is open and available for use. When Connected is false, the Windows socket is closed and can be changed. 

To open a client Windows socket, use the Open method. To open a server Windows socket, use the Listen method. The Windows socket that represents the server endpoint of a connection to a client socket is opened in its constructor. 

To close a Windows socket, use the Close method. 

 

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