Example #1
0
 /// <summary>
 /// 刷新访问数据
 /// </summary>
 /// <param name="isRequest"></param>
 /// <param name="stream"></param>
 internal void SetStream(bool isRequest, Stream stream)
 {
     try
     {
         if (RawSocket == null)
         {
             RawSocket = SocketInfoProvider.GetRawSocketFromStream(stream);
         }
     }
     catch (Exception ex)
     {
         Exception = ex;
     }
 }
Example #2
0
 internal void SetRequest(HttpWebRequest requestInfo, HttpWebResponse response)
 {
     try
     {
         if (ServerIPAddressList == null)
         {
             ServerIPAddressList = SocketInfoProvider.GetRawSocketFromStream(requestInfo.ServicePoint);
         }
     }
     catch (Exception ex)
     {
         Exception = ex;
     }
 }