Switched HttpServer.dll to the "lite" branch in the official C# WebServer repository. The fork maintained by libopenmetaverse will be removed soon

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2432 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-02-09 07:26:50 +00:00
parent 5a731af4e0
commit 71f3ff77ca
6 changed files with 28 additions and 16 deletions

View File

@@ -10,6 +10,7 @@ using System.Security.Cryptography.X509Certificates;
using ExtensionLoader;
using ExtensionLoader.Config;
using HttpServer;
using HttpListener = HttpServer.HttpListener;
using OpenMetaverse;
using OpenMetaverse.Http;
@@ -25,7 +26,7 @@ namespace Simian
public bool SSL { get { return false; } }
public string HostName { get { return Dns.GetHostName(); } }
public WebServer HttpServer;
public HttpListener HttpServer;
public IniConfigSource ConfigFile;
// Interfaces
@@ -65,8 +66,8 @@ namespace Simian
}
// TODO: SSL support
HttpServer = new WebServer(IPAddress.Any, HttpPort);
HttpServer.Start();
HttpServer = HttpListener.Create(IPAddress.Any, HttpPort);
HttpServer.Start(10);
try
{