摘要:
接上回,socket通信,server与多客户端通信的文章。搞一个先fork一堆子进程出来,再一起监听的server,client程序不变。#include<netinet/in.h>#include<sys/types.h>#include<sys/socket.h>#include<stdio.h>#include<stdlib.h>#include<string.h>#include<unistd.h>#include<sys/signal.h>#include<sys/wait.h&g 阅读全文