sockscape/server/Entrypoint.cs
2017-05-21 22:27:32 -05:00

28 lines
694 B
C#

using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Server.DAL;
using System.Numerics;
using Square;
namespace Server {
class Entrypoint {
static void Main(string[] args) {
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
}
server.Stop();
PoolManager.Dispose();
}
}
}