文档详情

C+Udp+Socket例子ServerClient+(接受返回).pdf

发布:2024-11-01约3.57千字共3页下载文档
文本预览下载声明

C#UdpSocket例子Server(接受返回)

Server:

staticvoidMain(string[]args){

intrecv;

byte[]data=newbyte[1024];

//构建TC服务器

//得到本机I,设置TC端口号

IPEndPointipep=newIPEndPoint(IPAddress.Any,8001);

显示全部
相似文档