示例#1
0
 private void Clear()
 {
     mHttpRequests.Clear();
     mRequestStack.Clear();
     if (mCommonHttpConnect != null)
     {
         mCommonHttpConnect.Release();
     }
     if (mCombinedHttpConnect != null)
     {
         mCombinedHttpConnect.Release();
     }
     // if (mImageHttpConnect != null)
     //  mImageHttpConnect.Release2();
     // mCatchingImage = false;
     mRetryTimes        = 0;
     mRetryCombineTimes = 0;
 }
示例#2
0
    // void SendBugReport(ReportBugRequest _request)
    // {
    //  mCurRequestSerialId++; if (mCurRequestSerialId == int.MaxValue) mCurRequestSerialId = 1;
    //  _request.serialId = mCurRequestSerialId;

    //  if (mReportBugHttpConnect == null)
    //  {
    //      mReportBugHttpConnect = new CombinedHttpConnect();
    //  }
    //  else
    //  {
    //      mReportBugHttpConnect.Release();
    //  }

    //  List<NetRequest> requests = new List<NetRequest>();
    //  requests.Add(_request);
    //  mReportBugHttpConnect.Initial(requests, int.MaxValue);
    //  mReportBugHttpConnect.Connect();
    // }


    void HandlerSpecialHttpConnect()
    {
        if (mReportBugHttpConnect != null)
        {
            if (mReportBugHttpConnect.IsGotResponse())
            {
                mReportBugHttpConnect.Release();
                mReportBugHttpConnect = null;
            }
        }
        // if (mUploadReplayHttpConnect != null)
        // {
        //  if (mUploadReplayHttpConnect.IsGotResponse())
        //  {
        //      mUploadReplayHttpConnect.Release();
        //      mUploadReplayHttpConnect = null;
        //  }
        // }
    }