Socket模拟服务端运行代码:1:启动服务端监听的服务,并接受客户端的连接1.1创建SocketSocketlistenSocket=newSocket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);1.2绑定端口和ip地址IPAddressip=IPAddress.Parse(this.txtIp.Text);IPEndPointendPoint=newIPEndPoint(ip,int.Parse(this...
查看全文