예제 #1
0
 // Token: 0x06000154 RID: 340 RVA: 0x0000C750 File Offset: 0x0000A950
 public void run()
 {
     try
     {
         while (Session_ME.connected)
         {
             Message message = this.readMessage();
             if (message == null)
             {
                 break;
             }
             try
             {
                 if ((int)message.command == -27)
                 {
                     this.getKey(message);
                 }
                 else
                 {
                     Session_ME.onRecieveMsg(message);
                 }
             }
             catch (Exception)
             {
                 Cout.println("LOI NHAN  MESS THU 1");
             }
             try
             {
                 Thread.Sleep(5);
             }
             catch (Exception)
             {
                 Cout.println("LOI NHAN  MESS THU 2");
             }
         }
     }
     catch (Exception ex)
     {
         Debug.Log("error read message!");
         Debug.Log(ex.Message.ToString());
     }
     if (Session_ME.connected)
     {
         if (Session_ME.messageHandler != null)
         {
             if (Session_ME.currentTimeMillis() - Session_ME.timeConnected > 500)
             {
                 Session_ME.messageHandler.onDisconnected(Session_ME.isMainSession);
             }
             else
             {
                 Session_ME.messageHandler.onConnectionFail(Session_ME.isMainSession);
             }
         }
         if (Session_ME.sc != null)
         {
             Session_ME.cleanNetwork();
         }
     }
 }
예제 #2
0
 // Token: 0x0600014B RID: 331 RVA: 0x000042D6 File Offset: 0x000024D6
 public void close()
 {
     Session_ME.cleanNetwork();
 }