Zirconi

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年4月16日

摘要: 尝试了一下在主进程只fork,子进程accept的结构,由于是测试用的小例子所以限定了用户数量为5个。 1 #include <unistd.h> 2 #include <pthread.h> 3 #include <sys/wait.h> 4 #include <sys/socket.h> 5 #include <netinet/in.h> 6 #include <arpa/inet.h> 7 #include <signal.h> 8 #include <errno.h> 9 #include 阅读全文
posted @ 2013-04-16 16:45 Zirconi 阅读(299) 评论(0) 推荐(0) 编辑