C-DEngine 5.105

WebSocketServer Constructor (Int32, Boolean)

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

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

Syntax


public WebSocketServer(
	int port,
	bool secure
)
Public Sub New ( _
	port As Integer, _
	secure As Boolean _
)
public:
WebSocketServer(
	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 connection requests on port.