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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user