System.Win.ScktComp.TClientSocket.Active

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Active: Boolean read FActive write SetActive;

C++

__property Active;

Properties

Type Visibility Source Unit Parent
property published
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TClientSocket

Description

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

System.Win.ScktComp.TClientSocket.Active inherits from System.Win.ScktComp.TAbstractSocket.Active. All content below this line refers to System.Win.ScktComp.TAbstractSocket.Active.

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

Before attempting to use or change the socket connection, read Active to determine whether the connection is open and ready. For client sockets, setting Active opens or shuts down a socket connection to another machine. For server sockets, setting Active opens or shuts down a listening connection that makes the socket available for client requests.

At design time, set Active to true to make the socket open a connection when the application starts running. At runtime, use the Open or Close method to open or close the connection.

See Also