Browse Source

Modified a bit for Program.cs

pull/113/merge
sta 10 years ago
parent
commit
38669444b4
  1. 6
      Example3/Program.cs

6
Example3/Program.cs

@ -14,13 +14,15 @@ namespace Example3
{ {
/* Create a new instance of the HttpServer class. /* Create a new instance of the HttpServer class.
* *
* If you would like to provide the secure connection, you should create the instance
* with the 'secure' parameter set to true.
* If you would like to provide the secure connection, you should create the instance with
* the 'secure' parameter set to true, or the https scheme HTTP URL.
*/ */
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"), 4649);
//var httpsv = new HttpServer (System.Net.IPAddress.Parse ("127.0.0.1"), 5963, true); //var httpsv = new HttpServer (System.Net.IPAddress.Parse ("127.0.0.1"), 5963, true);
//var httpsv = new HttpServer ("http://localhost:4649");
//var httpsv = new HttpServer ("https://localhost: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…
Cancel
Save