예제 #1
0
 /// <summary>
 /// Construct server with suitable port.
 /// </summary>
 /// <param name="path">Directory path to serve.</param>
 public HttpServer(string path)
 {
     Initialize(path, 80);
     m_databaseInterface = new DatabaseInterface();
 }
예제 #2
0
 /// <summary>
 /// Construct server with given port.
 /// </summary>
 /// <param name="path">Directory path to serve.</param>
 /// <param name="port">Port of the server.</param>
 public HttpServer(string path, int port)
 {
     Initialize(path, port);
     m_databaseInterface = new DatabaseInterface();
 }