Suspend Method  
 

Suspend accepting new client connections.

Syntax

object.Suspend

Parameters

None.

Return Value

A value of zero is returned if the server has suspended accepting new connections, 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. All new clients that attempt to connect to the server will be sent a 421 "service unavailable" error code and the connection will be immediately closed. To resume accepting new client connections, call the Resume method. This method will not affect those clients that have already established a connection with the server before the Suspend method was called.

See Also

Restart Method, Resume Method, Start Method, Stop Method