Return the current state of the server.
Syntax
object.State
Remarks
The State property returns the current state of
the server. The possible values returned by this property are:
| Value |
Constant |
Description |
| 0 |
swServerInactive |
The server is currently
inactive. |
| 1 |
swServerStarted |
The server has initialized and is
preparing to listen for client connections. |
| 2 |
swServerListening |
The server is
actively listening for incoming client connections. |
| 3 |
swServerSuspended |
The server has been suspended and
is no longer accepting client connections. |
| 4 |
swServerShutdown |
The server has been stopped and is
in the process of terminating all active client connections. |
When using Visual Studio.NET, you must use the property name
CtlState instead.
Data Type
Integer
See Also
IsListening Property, Restart Method, Resume Method, Start Method, Stop Method, Suspend Method
|