达达泡泡堂

达达泡泡堂

Socket套接字UDP服务器Client

byte[] data = new byte[1024];//定义一个数组用来做数据的缓冲区 string input, stringData; IPEndPoint ipep = new IPE


Dada`  3123  2011-08-13 阅读全文

Socket套接字UDP服务器Server

int recv; byte[] data = new byte[1024]; IPEndPoint ipep = new IPEndPoint(IPAddress.Any, 9050);//定义


Dada`  3488  2011-08-05 阅读全文

Socket套接字TCP客户端Client

byte[] data = new byte[1024]; Socket newclient = new Socket(AddressFamily.InterNetwork, SocketType.


Dada`  3341  2011-08-05 阅读全文

Socket套接字TCP服务器Server

int recv;//用于表示客户端发送的信息长度 byte[] data = new byte[1024];//用于缓存客户端所发送的信息,通过socket传递的信息必须为字节数组 IPEndP


Dada`  3223  2011-08-04 阅读全文