C-DEngine 5.105

HttpServer Constructor (IPAddress, Int32, Boolean)

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

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

Syntax


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

Parameters

address
Type: IPAddress
A [System.Net.IPAddress] that represents the local IP address of the server.
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
ArgumentNullExceptionaddress is nullNothingnullptra null reference (Nothing in Visual Basic).
ArgumentExceptionaddress isn't a local IP address.
ArgumentOutOfRangeExceptionport isn't between 1 and 65535 inclusive.

Remarks


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