- 7
- 0
- 约7.75万字
- 约 14页
- 2016-12-23 发布于贵州
- 举报
Linux网络编程:用C语言实现的聊天程序(同步通信)通过TCP协议,用C语言实现的同步聊天程序,注释写的比较详细,个人觉得对字符串处理比较充分,能够正常编译运行,拿出来和大家分享一下!1、客户端源代码:[cpp] /zx824/article/details/7752894 \o view plainview plain/zx824/article/details/7752894 \o copycopy/zx824/article/details/7752894 \o printprint/zx824/article/details/7752894 \o ??#include?stdio.h?#include?stdlib.h?#include?string.h?#include?errno.h?#include?sys/socket.h?#include?arpa/inet.h?#include?netinet/in.h?#include?sys/types.h?#include?unistd.h??#define?BUFLEN?10?int?main(int?argc,?char?**argv)??{???int?sockfd;???struct?sockaddr_in?s_addr;???socklen_t?len;???unsigned?int?port;???char?
原创力文档

文档评论(0)