摘要
本文通过在服务器端程序中使用select函数管理所有的套接字,完成客户端连接和请求处理,实现了单线程并发echo回射实验,探究了单线程并发服务器的实现原理。
Sub-process is responsible for the connection and data processing. By using the select function in the server-side program to manage all the sockets, complete the client connection and request processing. Completed a single-threaded concurrent echo experiment. Explores the realization principle of single-threaded concurrent server.
出处
《数字通信世界》
2018年第1期21-23,共3页
Digital Communication World