转自:http://www.2cto.com/kf/201206/134841.html 本例子写了个简单的TCP数据传送功能.没有使用BinaryWriter,BinaryReader,而是使用NetworkStream的Read和Write功能,同样这个也可以通过Socket的实现.发送端程序:[csharp]1. using System; 2. using System.Collections.Generic; 3. using System.Linq; 4. using System.…