IsActive Property  
 

Determine if the server has been started.

Syntax

object.IsActive

Remarks

The IsActive property returns True if the server has been started using the Start method. If the server has not been started, the property will return False.

To determine if the server is accepting client connections, use the IsListening property. This property will only indicate if the server has been started. For example, if the server has been suspended using the Suspend method, this property will return a value of True, while the IsListening property will return a value of False.

An application should not depend on this property returning False immediately after the Stop method has been called to shutdown the server. This property will continue to return True until all clients have disconnected from the server and the server thread has terminated. To determine when the server has stopped, implement a handler for the OnStop event.

Data Type

Boolean

See Also

IsListening Property, Start Method, Stop Method, OnStop Event