Socket接收大数据的方法

 byte[] buffer = new byte[BufferSize];
int bytesRead; // 读取的字节数
MemoryStream msStream = new MemoryStream();
do {
bytesRead = streamToClient.Read(buffer, , BufferSize);
msStream.Write(buffer, , bytesRead);
} while (bytesRead > ); buffer = msStream.GetBuffer();
上一篇:Win7+QTP10.0+IE9无法识别对象的解决方法


下一篇:python网络编程-udp