sockscape/server/Entrypoint.cs

33 lines
822 B
C#

using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CircleScape.DAL;
using System.Numerics;
using Square;
namespace CircleScape {
class Entrypoint {
static void Main(string[] args) {
var db = new Database();
var users = db.Users.ToList();
var server = new Kneesocks.Server<PendingConnection>(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();
PoolManager.Dispose();
}
}
}