TAstaClientSocket.Active
Applies to
TAstaClientSocket
Declaration
property
Active: Boolean;
Description
When the Active property is set to True, a connection to the Asta server is established. In order
for the connection to complete properly, the Address (or Host) and the Port properties must point to a
running Asta server.
If the ASTA server is running at IP address 208.234.120.25 and at port 9000, then the AstaClientSocket Address property should be set to 208.230.120.25 and the Port property should be set to 9000.
Since the AstaClientSocket is an asyncronous non-blocking socket, setting it to Active does not necessary insure that it actually is Active as the time it takes to actually connect to the server and become active will vary according to network considerations. You know exactly when you are connected to the server when the OnConnect Event fires.
Tip: To close an AstaClientSocket at run time and then reopen it, you must set Active to False and then call Close.