Suspend Method  
 

Suspend accepting new client connections.

Syntax

object.Suspend

Parameters

None.

Return Value

A value of zero is returned if the operation was successful, otherwise a non-zero error code is returned which indicates the cause of the failure.

Remarks

The Suspend method instructs the server to suspend accepting new client connections. Any incoming client connections will be queued up to the maximum backlog value specified when the server was started. To resume accepting client connections, call the Resume method.

It is not recommended that you leave a server in a suspended state for extended periods of time. Once the connection backlog queue has filled, subsequent incoming client connections will be rejected.

See Also

IsActive Property, IsListening Property, Restart Method, Resume Method, Start Method, Stop Method