Click or drag to resize

HttpServer Constructor (String)

Initializes a new instance of the HttpServer class with the specified url.

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public HttpServer(
	string url
)

Parameters

url
Type: SystemString
A String that represents the HTTP URL of the server.
Exceptions
ExceptionCondition
ArgumentNullExceptionurl is .
ArgumentException

url is empty.

-or-

url is invalid.

Remarks

The new instance listens for incoming requests on the IP address of the host of url and the port of url.

Either port 80 or 443 is used if url includes no port. Port 443 is used if the scheme of url is https; otherwise, port 80 is used.

The new instance provides secure connections if the scheme of url is https.

See Also