using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //using CircleScape.DAL; using System.Numerics; using Square; using System.Net; using Kneesocks.WebSocket; namespace CircleScape { class Entrypoint { static void Main(string[] args) { Dictionary servers = new Dictionary(); Dictionary> pools = new Dictionary>(); foreach(var server in Configuration.Servers) { var pool = new Pool { InitialCount = 3, InitialSize = 3, SizeGrowth = 3, MaxSize = 100 }; pools.Add(server["Id"], pool); servers.Add(server["Id"], new Server((ushort)server["Port"], pool, server)); } //var server = new Server(6770, PoolManager.Pending); //server.Start(); /*while(true) { var send = Console.ReadLine(); PoolManager.Pending.Broadcast(Encoding.UTF8.GetBytes(send)); // logic processing loop }*/ Console.ReadLine(); //server.Stop(); } } }