ln.skyspot/hotspot/HotspotManager.cs

45 lines
1.1 KiB
C#

// /**
// * File: HotspotManager.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.types.odb;
using ln.types.odb.mapped;
using ln.types.btree;
using ln.types.net;
using System.Collections.Generic;
using System.IO;
namespace skyspot.hotspot
{
public class HotspotManager
{
public string BasePath { get; private set; } = "/var/cache/ln.skyspot";
ODB odb;
public ODBCollection<HotspotNetwork> hotspotNetworks { get; private set; }
Dictionary<HotspotNetwork, HotspotRuntime> runtimes = new Dictionary<HotspotNetwork, HotspotRuntime>();
public HotspotManager()
{
odb = new ODB(BasePath);
hotspotNetworks = odb.GetCollection<HotspotNetwork>();
}
class HotspotRuntime
{
public BTree<MAC, HotspotSession> currentSessions { get; } = new BTree<MAC, HotspotSession>();
}
}
}