HttpServer Constructor (String) |
Namespace: Sfs2X.WebSocketSharp.Server
public HttpServer( string url )
Exception | Condition |
---|---|
ArgumentNullException | url is . |
ArgumentException | url is empty. -or- url is invalid. |
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.