1.服务端 a. 支持多个用户接入,实现聊天室的基本功能 b. 使用epoll机制实现并发,增加效率 2. 客户端 a. 支持用户输入聊天消息 b. 显示其他用户输入的信息 c. 使用fork创建两个进程 子进程有两个功能: 等待用户输入聊天信息 将聊天信息写到管道(pipe),并发送给父进程 父进程有两个功能 使用epoll机制接受服务端发来的信息,并显示给用户,使用户看到其他用户的聊天信息 将子进程发给的聊天信息从管道(pipe)中读取, 并发送给服务端 C/S模型 服务端和客户端采用经典的…