摘要: 为了方便展示最基础的发送队列与接收队列直接上图展示对比: 阅读全文
posted @ 2024-06-05 20:25 周半仙 阅读(11) 评论(0) 推荐(0)
摘要: 基于c语言的UDP客户端、服务端二合一基础代码 示意图: 如果你只是单纯的接收广播以内的: /******************************************************************************************************* 阅读全文
posted @ 2024-06-05 20:13 周半仙 阅读(273) 评论(0) 推荐(0)
摘要: 基于c语言的TCP客户端、服务端基础代码 基本流程: 客户端: #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <errno.h> #include 阅读全文
posted @ 2024-06-05 20:04 周半仙 阅读(490) 评论(0) 推荐(1)