![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UDP
文章平均质量分 81
Jason-xie
这个作者很懒,什么都没留下…
展开
-
UDP Server Client Implementation in C for Unix/Linux
Here's a simple UDP Server Client Implementation in C for Unix/Linux. As UDP is a connection-less protocol, it is not reliable or we can say that we don't send acknowledgements for the packets sent转载 2013-12-08 09:20:29 · 998 阅读 · 0 评论 -
Socket通信中的多进程编程实例
1 需求描述: (1)Linux下编写。 (2)创建一个服务器、若干个客户端。 (3)用户可以通过客户端输入文字向服务器发送消息。 (4)服务器端接收到客户端发送的数据,将用户输入的内容在服务器上打印出来,并原样返回。 2 相关基础 2.1 套接字Socket通信编程 2.1.1 TCP/IP通信过程: 图2.1.1 TCP/IP通信转载 2013-12-08 11:06:16 · 886 阅读 · 0 评论 -
linux c 基于UDP的多人聊天程序
client.c #include #include #include #include #include #include #include #include #include #include #define N 128 typedef struct { char type; char name[32]; char text[N]; }MSG; int main(int argc转载 2013-12-08 16:13:16 · 5059 阅读 · 0 评论 -
udp 多线程客户端和单线程服务器端
具体功能: 客户端读取本地的文件,将内容发给服务器,服务器打印接收到的信息并返回当前服务器的时间,客户端接收到服务器发的消息,打印 客户端: #include #include #include #include #include #include #include #include #include #include #define MAX_THREAD 26原创 2013-12-20 10:53:30 · 4739 阅读 · 0 评论