System.Win.ScktComp.TCustomWinSocket.Connected

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Connected: Boolean read FConnected;

C++

__property bool Connected = {read=FConnected, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TCustomWinSocket

Description

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

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.

See Also