2017-04-25 21:01:41 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Data.SQLite;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2017-04-27 20:44:30 +00:00
|
|
|
|
using CircleScape.DAL;
|
2017-05-16 21:17:07 +00:00
|
|
|
|
using System.Numerics;
|
2017-05-17 21:06:16 +00:00
|
|
|
|
using Square;
|
2017-04-21 21:04:03 +00:00
|
|
|
|
|
|
|
|
|
namespace CircleScape {
|
|
|
|
|
class Entrypoint {
|
|
|
|
|
static void Main(string[] args) {
|
2017-05-17 21:06:16 +00:00
|
|
|
|
var a = Square.Random.NextPrime(512 / 8);
|
|
|
|
|
Console.WriteLine(a.ToString("X"));
|
|
|
|
|
|
2017-05-11 21:03:28 +00:00
|
|
|
|
var server = new Kneesocks.Server<PendingConnection>(6770, PoolManager.Pending);
|
2017-05-04 12:21:27 +00:00
|
|
|
|
server.Start();
|
|
|
|
|
|
|
|
|
|
while(true) {
|
2017-05-11 21:03:28 +00:00
|
|
|
|
var send = Console.ReadLine();
|
|
|
|
|
PoolManager.Pending.Broadcast(Encoding.UTF8.GetBytes(send));
|
|
|
|
|
|
2017-05-04 21:09:38 +00:00
|
|
|
|
// logic processing loop
|
2017-05-04 12:21:27 +00:00
|
|
|
|
}
|
2017-05-12 21:05:18 +00:00
|
|
|
|
|
|
|
|
|
server.Stop();
|
|
|
|
|
PoolManager.Dispose();
|
2017-04-21 21:04:03 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|