![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
第13.14章 数据报文的发送和接收
周厚平
Linux + 安卓 = 标配
展开
-
udp连接单向传输 (只能是服务器向已连接的udp客户端单项发送数据)
server.c对于UDP套接字连接了客户端: 1.只能是客户端向服务端发数据 2.服务端不能像服务器发送数据(包括所有发送函数)#include <unistd.h>#include <stdio.h>#include <errno.h>#include <sys/types.h> /* See N...原创 2019-01-15 16:20:07 · 3335 阅读 · 1 评论 -
udp无连接双向通信
#include <unistd.h>#include <stdio.h>#include <errno.h>#include <sys/types.h> /* See NOTES */#include <sys/socket.h>#include <stdlib.h>#include <...原创 2019-01-15 16:23:52 · 1235 阅读 · 0 评论