![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络编程
文章平均质量分 56
打个工而已
这个作者很懒,什么都没留下…
展开
-
recv() 阻塞&非阻塞
server.c#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <errno.h>#include <string.h>#include <sys/types.h>#include <sys/socket.h>#include <sys/time.h>#include <netinet/in.h>.原创 2022-03-07 20:28:23 · 9982 阅读 · 0 评论 -
setsockopt()函数
参考文献:setsockopt用法大全setsockopt函数功能及参数详解1.函数说明#include <sys/socket.h>int setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen);参数说明:(1) int sockfd: 很简单,socket句柄(2) int level:...原创 2022-02-10 19:16:02 · 14744 阅读 · 0 评论