Exemple #1
0
 private void OnHello(Client client, HelloPacket packet)
 {
     client.State = _proxy.GetState(client, packet.Key);
     if (client.State.ConRealKey.Length != 0)
     {
         packet.Key = client.State.ConRealKey;
         client.State.ConRealKey = new byte[0];
     }
     client.Connect(packet);
     packet.Send = false;
 }
Exemple #2
0
 private void OnHelloPacket(Client client, HelloPacket packet)
 {
     this.m_currentGameId = packet.GameId;
     this.m_chests = new Dictionary<int, int[]>();
 }
Exemple #3
0
 /// <summary>
 /// Connects the client to the server in the resulting state lookup from the HelloPacket portal keye.
 /// </summary>
 /// <param name="state">Packet containing the portal key to be used for the lookuo</param>
 public void Connect(HelloPacket state)
 {
     _serverConnection = new TcpClient();
     _serverConnection.NoDelay = true;
     _serverConnection.BeginConnect(State.ConTargetAddress, State.ConTargetPort, ServerConnected, state);
 }