C-DEngine 5.105

HttpServer Constructor (Int32, Boolean)

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

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

Syntax


public HttpServer(
	int port,
	bool secure
)
Public Sub New ( _
	port As Integer, _
	secure As Boolean _
)
public:
HttpServer(
	int^ port, 
	bool^ secure
)

Parameters

port
Type: Int32
An Int32 that represents the port number on which to listen.
secure
Type: Boolean
A Boolean that indicates providing a secure connection or not. (true indicates providing a secure connection.)

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptionport isn't between 1 and 65535 inclusive.

Remarks


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