HttpServer Constructor (IPAddress, Int32, Boolean) |
Initializes a new instance of the
HttpServer class with
the specified
address,
port,
and
secure.
Namespace:
Sfs2X.WebSocketSharp.Server
Assembly:
SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax public HttpServer(
IPAddress address,
int port,
bool secure
)
Parameters
- address
- Type: System.NetIPAddress
A IPAddress that represents
the local IP address on which to listen.
- port
- Type: SystemInt32
An Int32 that represents the number of the port
on which to listen.
- secure
- Type: SystemBoolean
A Boolean: true if the new instance provides
secure connections; otherwise, false.
Exceptions Exception | Condition |
---|
ArgumentNullException | address is .
|
ArgumentException | address is not a local IP address.
|
ArgumentOutOfRangeException | port is less than 1 or greater than 65535.
|
Remarks
The new instance listens for incoming requests on
address and port.
See Also