Fork me on GitHub
摘要: 阻塞IO 传统的阻塞IO listenfd = socket(); // 打开一个网络通信端口 bind(listenfd); // 绑定 listen(listenfd); // 监听 while(1) { connfd = accept(listenfd); // 阻塞建立连接 int n = 阅读全文
posted @ 2021-08-19 18:58 秋夜雨巷 阅读(1065) 评论(0) 推荐(1) 编辑