static void Main(string[] args) { // DNS (Domain Name System) string host = Dns.GetHostName(); IPHostEntry ipHost = Dns.GetHostEntry(host); IPAddress ipAddr = ipHost.AddressList[0]; IPEndPoint endPoint = new IPEndPoint(ipAddr, 7777); _listenr.init(endPoint, () => { return(SessionManager.Instance.Generate()); }); Console.WriteLine("Listening..."); //FlushRoom(); JobTimer.Instance.Push(FlushRoom); while (true) { JobTimer.Instance.Flush(); } }