Restart Method  
 

Restart the server, terminating all active client connections

Syntax

object.Restart

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 Restart method terminates all active client connections, recreates a new listening socket bound to the same address and port number, and then resumes accepting new client connections.

See Also

IsActive Property, IsListening Property, ReuseAddress Property, Start Method, Stop Method,