摘要:
一、服务器端:1、指定IP地址和端口 开启监听 IPAddress ip = IPAddress.Parse(ServerIP);//配置监听IP地址和端口 tcpListener = new TcpListener(ip, ServerPort); //启动监听tcpListener.Start();2、接收到客户端请求,并编写处理函数Socket tempSocket = tcpListener.AcceptSocket();//接受挂起的连接请求clientSocket = tempSocket;byte[] buffer=new Byte[1024];clientSocket.Rece 阅读全文
posted @ 2013-02-25 12:14
loklook123
阅读(971)
评论(0)
推荐(0)

浙公网安备 33010602011771号