摘要:
打开命名空间using System.Net;using System.Net.Sockets;服务端代码: 1 static void Main(string[] args) 2 { 3 int port = 2000; 4 string host = "127.0.0.1"; 5 6 IPAddress ip = IPAddress.Parse(host); 7 IPEndPoint ipe = new IPEndPoint(ip, port); 8 9 ... 阅读全文