49 lines
1004 B
C#
49 lines
1004 B
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;
|
|
using skyspot.hotspot;
|
|
|
|
namespace skyspot
|
|
{
|
|
class MainClass
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
HTTPServer httpServer = new HTTPServer();
|
|
httpServer.AddEndpoint(new IPEndPoint(IPAddress.Any, 80));
|
|
httpServer.Start();
|
|
|
|
HotspotManager hotspotManager = new HotspotManager();
|
|
|
|
|
|
|
|
|
|
ResourceApplication app = new SkySpotApplication();
|
|
httpServer.DefaultApplication = app;
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
}
|