Beispiel #1
0
        protected MITMClient(TcpClient client, bool start = false)
            : base(client)
        {
            MessageReceived += ClientOnMessageReceived;
            Server = new Client();
            Server.MessageReceived += ServerOnMessageReceived;

            if(start)
                Server.Start(SnifferConfig.Instance.DofusIP, SnifferConfig.Instance.DofusPort);
        }
Beispiel #2
0
 private void OnClientDisconnected(Client client)
 {
     foreach (var auth in Clients)
     {
         if (auth == client)
         {
             Clients.Remove(auth);
             return;
         }
     }
 }
Beispiel #3
0
 private void OnClientDisconnected(Client client)
 {
     foreach (var auth in Clients)
     {
         if (auth == client)
         {
             SyncClient c = (SyncClient) client;
             if (c.Identified)
             {
                 Logger.Warning("Game server with id {0} disconnected.", c.ServerId);
                 ServersTable.Load(c.ServerId).Status = ServerStatusEnum.OFFLINE;
             }
             Clients.Remove(auth);
             return;
         }
     }
 }