C# 获取 HttpWebResponse.GetResponseStream(); Socket

C# 获取 HttpWebResponse.GetResponseStream(); Socket

        private Socket GetPushSock(Stream pushStream)
        {
            var prop = pushStream.GetType().GetProperty("InternalSocket", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.GetProperty);
            return (Socket)prop.GetValue(pushStream, null);
        }

 

posted on 2013-05-17 16:16 RockyLOMO 阅读(...) 评论(...) 编辑 收藏

你可能感兴趣的:(C# 获取 HttpWebResponse.GetResponseStream(); Socket)