Exemple #1
0
 public static void onAllError(PackResult ret)
 {
     Log.e("Network", "onAllError");
     SessionPackMgr.cleanAllTimeoutPoint(3);
     SessionPackMgr.markAllToNotSended(3);
     for (SessionPack pack = SessionPackMgr.getFirstNotSended(); pack != null; pack = SessionPackMgr.getFirstNotSended())
     {
         pack.mSendStatus = 6;
         onError(pack, ret);
     }
 }
Exemple #2
0
 public void onSendPackFailed(bool needReconnect, SessionPack sessionPack)
 {
     Log.e("Network", string.Concat(new object[] { "sender:onSendPackFailed, seq =", sessionPack.mSeqID, ", cmd =", sessionPack.mCmdID }));
     SessionPackMgr.cleanAllTimeoutPoint(sessionPack.mConnectMode);
     SessionPackMgr.markAllToNotSended(sessionPack.mConnectMode);
     if (SessionPackMgr.getAuthStatus() == 1)
     {
         SessionPackMgr.setAuthStatus(0);
     }
     Connector.onSendFailed(needReconnect, sessionPack.mConnectMode);
 }
Exemple #3
0
 public static void onApplicationActivated()
 {
     if (mRunStatus == 2)
     {
         SessionPackMgr.cleanAllTimeoutPoint(3);
         SessionPackMgr.markAllToNotSended(3);
         if (SessionPackMgr.getAuthStatus() == 1)
         {
             SessionPackMgr.setAuthStatus(0);
         }
         Connector.onPrepareSend(true);
         mRunStatus = 1;
     }
 }