static void Main(string[] args) { Console.WindowHeight = Console.LargestWindowHeight - 20; Console.WindowWidth = Console.LargestWindowWidth - 20; Helpers.Out.startLogger(); //START LOGING!! ConnectionManager.SocketManager man = new ConnectionManager.SocketManager(); man.init(9001, 1337, 10, new GamePacketParser(), true); man.connectionEvent += new ConnectionManager.SocketManager.ConnectionEvent(man_connectionEvent); man.initializeConnectionRequests(); string s; ipcon = new ClientConnectionManager("127.0.0.1", 9001); ipcon.OnConnectionChange += new ClientConnectionManager.connectionChanged(ipcon_OnConnectionChange); while((s = Console.ReadLine()) != "exit") { switch (s) { case "con": { ipcon.openConnection(); break; } case "p": { ipcon.processSyncedMessages(); break; } } } ipcon.Dispose(); man.destroy(); Out.stopLogger(); }
static void Main(string[] args) { Console.WindowHeight = Console.LargestWindowHeight - 20; Console.WindowWidth = Console.LargestWindowWidth - 20; Helpers.Out.startLogger(); //START LOGING!! ConnectionManager.SocketManager man = new ConnectionManager.SocketManager(); man.init(9001, 1337, 10, new GamePacketParser(), true); man.connectionEvent += new ConnectionManager.SocketManager.ConnectionEvent(man_connectionEvent); man.initializeConnectionRequests(); string s; ipcon = new ClientConnectionManager("127.0.0.1", 9001); ipcon.OnConnectionChange += new ClientConnectionManager.connectionChanged(ipcon_OnConnectionChange); while ((s = Console.ReadLine()) != "exit") { switch (s) { case "con": { ipcon.openConnection(); break; } case "p": { ipcon.processSyncedMessages(); break; } } } ipcon.Dispose(); man.destroy(); Out.stopLogger(); }