soket udp通信

shawn334542 37 0 RAR 2019-07-06 17:07:37

本程序是在linux下,基于socket的udp通信,实现客户端和服务器之间的通信。

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2019-07-06 17:07:37

服务器端向客户端发送总是失败! [root@localhost UDP]# ./udpserver bind success. RECV:buf=Hello sendto(): Invalid argument [root@localhost UDP]#

Generic placeholder image 卡了网匿名网友 2019-07-06 17:07:37

代码简洁有效,给初学的人很好的参考!