ln.skyspot/Program.cs

46 lines
1.1 KiB
C#

// /**
// * File: Program.cs
// * Author: haraldwolff
// *
// * This file and it's content is copyrighted by the Author and / or copyright holder.
// * Any use wihtout proper permission is illegal and may lead to legal actions.
// *
// *
// **/
using System;
using ln.radius;
using System.Net;
using System.Threading;
using ln.logging;
using System.Net.Sockets;
using Newtonsoft.Json;
using ln.dhcp;
using ln.types.net;
using ln.http;
using ln.http.resources;
using skyspot.http;
using skyspot.session;
namespace skyspot
{
class MainClass
{
public static void Main(string[] args)
{
HTTPServer httpServer = new HTTPServer();
httpServer.AddEndpoint(new IPEndPoint(IPAddress.Any, 80));
ResourceApplication app = new SkySpotApplication();
httpServer.DefaultApplication = app;
//DHCP httpDHCP = new DHCP(null,dhcpServer);
//(app.RootResource as DirectoryResource).InjectResource(httpDHCP);
SessionManager sessionManager = new SessionManager();
httpServer.Start();
}
}
}