Click or drag to resize

HttpServer Constructor (IPAddress, Int32)

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

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

Parameters

address
Type: System.NetIPAddress
A IPAddress that represents the local IP address on which to listen.
port
Type: SystemInt32
An Int32 that represents the number of the port on which to listen.
Exceptions
ExceptionCondition
ArgumentNullExceptionaddress is .
ArgumentExceptionaddress is not a local IP address.
ArgumentOutOfRangeExceptionport is less than 1 or greater than 65535.
Remarks

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

It provides secure connections if port is 443.

See Also