TcpClient client = new TcpClient("10.10.10.10", 9999);
NetworkStream netStream = client.GetStream();
string strSendBuf = "id:112";
byte[] byteInfo = Encoding.UTF8.GetBytes(strSendBuf);
netStream.Write(byteInfo, 0, byteInfo.Length);
// 貌似在这里不能读取服务端的响应 但是我想获取服务端给的响应码流
。。。。。。
netStream.Close();
client.Close();