WebSocketServer Constructor (IPAddress, Int32) |
Namespace: Sfs2X.WebSocketSharp.Server
public WebSocketServer( IPAddress address, int port )
Exception | Condition |
---|---|
ArgumentNullException | address is . |
ArgumentException | address is not a local IP address. |
ArgumentOutOfRangeException | port is less than 1 or greater than 65535. |
The new instance listens for incoming handshake requests on address and port.
It provides secure connections if port is 443.