C-DEngine 5.105

WebSocketServer Constructor (IPAddress, Int32)

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

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

Syntax


public WebSocketServer(
	IPAddress address,
	int port
)
Public Sub New ( _
	address As IPAddress, _
	port As Integer _
)
public:
WebSocketServer(
	IPAddress^ address, 
	int^ port
)

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.

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 connection requests on address and port.

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