摘要:
Socket处理发送和接收数据包,一个小实例:using System.Net.Sockets;Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);socket.Connect(ipUrl, port); //参数是接收的服务器ip地址和端口string strReq = "UserName=admin&PassWord=123456";byte[] cbReq = System.Text.Encoding.ASCII.GetBytes 阅读全文