public void Run(Login.Protocol protocol, string host, int port, string username, int authtoken) { App.protocol = protocol; // Create client and start actor system if (protocol == GameMachine.Login.Protocol.UDP) { client = new AsyncUdpClient(host, port, username, authtoken); } else { client = new AsyncTcpClient(host, port, username, authtoken); } client.Start(); ConnectLoop(); }