C-DEngine 5.105

HttpServer Constructor (Int32)

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

Namespace:  WebSocketSharp.Server
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public HttpServer(
	int port
)
Public Sub New ( _
	port As Integer _
)
public:
HttpServer(
	int^ port
)

Parameters

port
Type: Int32
An Int32 that represents the port number on which to listen.

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptionport isn't between 1 and 65535 inclusive.

Remarks


An instance initialized by this constructor listens for the incoming requests on port.

If port is 443, that instance provides a secure connection.