2012年7月12日

unix学习笔记<2> 多线程 udp聊天程序 简单实例

摘要: 1 /* client_udp.c: */ 2 #include <stdio.h> 3 #include <errno.h> 4 #include <sys/types.h> 5 #include <sys/socket.h> 6 #include <netinet/in.h> 7 #include <unistd.h> 8 #include <string.h> 9 10 #define MAX_BUF_SIZE 102411 struct sockaddr_in srvaddr,clientaddr;12 阅读全文

posted @ 2012-07-12 15:07 龙沙宝石 阅读(755) 评论(0) 推荐(0) 编辑

导航