摘要: Server端:using System;using System.Collections.Generic;using System.Text;using System.Net;using System.Net.Sockets;namespace Server{ class Program { static void Main(string[] args) { //用于表示客户端发送的信息的长度 int recvLenth; //用于缓存客户端所发送的信息,通过socket传递的信息必须为字节数组 byte[] data=new byte[1024]; //本机预使用的IP和端口 IPEndP 阅读全文
posted @ 2013-11-15 22:08 徐守威 阅读(923) 评论(0) 推荐(0) 编辑