Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 private void OnHelloPacket(Client client, HelloPacket packet)
 {
     this.m_currentGameId = packet.GameId;
     this.m_chests = new Dictionary<int, int[]>();
 }
Ejemplo n.º 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);
 }