Internet Direct (Indy) Version 9.0.1 Beta
TIdTunnelSlave.Active
Indicates if the server is accepting client connections or requests.

property Active: Boolean;
Description
Active is a Boolean property that indicates if the server can accept new clients connections, or process requests from existing client connections.

When Active is set to True, the server will attempt to create the TIdTCPClient that acts as the tunnel link to the TIdTunnelMaster identified in MasterHost and MasterPort. An RSTunnelConnectToMasterFailed exception will be raised if the connection to the master server cannot be opened.

When the connection is created, a TSlaveThread is created and started for the server to allow authentication of the TIdTunnelSlave connection to the TIdTunnelMaster. When the connection to the master server is complete, the TIdTunnelSlave is ready to begin accepting client connections.

When Active is set to False, the server will indicate that it is neither accepting new client connections or transmitting data for existing client connections. Existing client connections are closed, and the tunnel connection to TIdTunnelMaster is closed. Finally, the TSlaveThread instance for the server is terminated prior to completion of the change in the property state.