RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractSocket.Active Property

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

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

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!