Click or drag to resize

HttpServer Constructor (Int32)

Initializes a new instance of the HttpServer class with the specified port.

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public HttpServer(
	int port
)

Parameters

port
Type: SystemInt32
An Int32 that represents the number of the port on which to listen.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionport is less than 1 or greater than 65535.
Remarks

The new instance listens for incoming requests on Any and port.

It provides secure connections if port is 443.

See Also