2019-04-23 09:24:56 +02:00
|
|
|
|
// /**
|
|
|
|
|
// * 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;
|
2019-04-24 07:13:56 +02:00
|
|
|
|
using ln.http;
|
|
|
|
|
using ln.http.resources;
|
|
|
|
|
using skyspot.http;
|
2019-05-07 10:21:50 +02:00
|
|
|
|
using skyspot.session;
|
2019-05-10 13:27:06 +02:00
|
|
|
|
using skyspot.hotspot;
|
2019-04-23 09:24:56 +02:00
|
|
|
|
|
|
|
|
|
namespace skyspot
|
|
|
|
|
{
|
|
|
|
|
class MainClass
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2019-04-24 07:13:56 +02:00
|
|
|
|
HTTPServer httpServer = new HTTPServer();
|
|
|
|
|
httpServer.AddEndpoint(new IPEndPoint(IPAddress.Any, 80));
|
2019-05-10 13:27:06 +02:00
|
|
|
|
httpServer.Start();
|
|
|
|
|
|
|
|
|
|
HotspotManager hotspotManager = new HotspotManager();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-24 07:13:56 +02:00
|
|
|
|
|
2019-04-24 12:55:33 +02:00
|
|
|
|
ResourceApplication app = new SkySpotApplication();
|
2019-04-24 07:13:56 +02:00
|
|
|
|
httpServer.DefaultApplication = app;
|
|
|
|
|
|
2019-05-07 10:21:50 +02:00
|
|
|
|
|
2019-04-23 09:24:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|