[Modify] Add some examples to create a new server instance
This commit is contained in:
parent
5885971f90
commit
174ff5eb07
@ -19,10 +19,33 @@ namespace Example3
|
|||||||
|
|
||||||
var httpsv = new HttpServer (4649);
|
var httpsv = new HttpServer (4649);
|
||||||
//var httpsv = new HttpServer (5963, true);
|
//var httpsv = new HttpServer (5963, true);
|
||||||
//var httpsv = new HttpServer (System.Net.IPAddress.Parse ("127.0.0.1"), 4649);
|
|
||||||
//var httpsv = new HttpServer (System.Net.IPAddress.Parse ("127.0.0.1"), 5963, true);
|
//var httpsv = new HttpServer (System.Net.IPAddress.Any, 4649);
|
||||||
|
//var httpsv = new HttpServer (System.Net.IPAddress.Any, 5963, true);
|
||||||
|
|
||||||
|
//var httpsv = new HttpServer (System.Net.IPAddress.IPv6Any, 4649);
|
||||||
|
//var httpsv = new HttpServer (System.Net.IPAddress.IPv6Any, 5963, true);
|
||||||
|
|
||||||
|
//var httpsv = new HttpServer ("http://0.0.0.0:4649");
|
||||||
|
//var httpsv = new HttpServer ("https://0.0.0.0:5963");
|
||||||
|
|
||||||
|
//var httpsv = new HttpServer ("http://[::0]:4649");
|
||||||
|
//var httpsv = new HttpServer ("https://[::0]:5963");
|
||||||
|
|
||||||
|
//var httpsv = new HttpServer (System.Net.IPAddress.Loopback, 4649);
|
||||||
|
//var httpsv = new HttpServer (System.Net.IPAddress.Loopback, 5963, true);
|
||||||
|
|
||||||
|
//var httpsv = new HttpServer (System.Net.IPAddress.IPv6Loopback, 4649);
|
||||||
|
//var httpsv = new HttpServer (System.Net.IPAddress.IPv6Loopback, 5963, true);
|
||||||
|
|
||||||
//var httpsv = new HttpServer ("http://localhost:4649");
|
//var httpsv = new HttpServer ("http://localhost:4649");
|
||||||
//var httpsv = new HttpServer ("https://localhost:5963");
|
//var httpsv = new HttpServer ("https://localhost:5963");
|
||||||
|
|
||||||
|
//var httpsv = new HttpServer ("http://127.0.0.1:4649");
|
||||||
|
//var httpsv = new HttpServer ("https://127.0.0.1:5963");
|
||||||
|
|
||||||
|
//var httpsv = new HttpServer ("http://[::1]:4649");
|
||||||
|
//var httpsv = new HttpServer ("https://[::1]:5963");
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
// To change the logging level.
|
// To change the logging level.
|
||||||
httpsv.Log.Level = LogLevel.Trace;
|
httpsv.Log.Level = LogLevel.Trace;
|
||||||
|
Loading…
Reference in New Issue
Block a user