摘要: IO多路复用 阻塞 IO 服务端为了处理客户端的连接和请求的数据,写了如下代码。 listenfd = socket(); // 打开一个网络通信端口 bind(listenfd); // 绑定 listen(listenfd); // 监听 while(1) { connfd = accept(l 阅读全文
posted @ 2022-03-17 20:41 TY520 阅读(151) 评论(0) 推荐(0) 编辑