/// <summary> /// Starts the connection for this client, prepares the message handler and sends HELLO to the client. /// </summary> public void StartConnection() { if (mConnection != null) { // Ping OK! mPonged = true; // Register request handlers mMessageHandler.RegisterGlobal(); mMessageHandler.RegisterPreLogin(); // Create data router and start waiting for data IonTcpConnection.RouteReceivedDataCallback dataRouter = new IonTcpConnection.RouteReceivedDataCallback(HandleConnectionData); mConnection.Start(dataRouter); } }