2012年8月23日

I/O多路复用(一):用select实现的多客户聊天的服务器

摘要: 以下例子为用select实现的多客户聊天的服务器,客户端成功连接服务器之后,可以和其他客户进行群聊。服务器代码:#include <stdio.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <strings.h>#include <arpa/inet.h>#include <string.h>#include <sys/ioctl.h>#include <fcntl.h>voi 阅读全文

posted @ 2012-08-23 20:57 Chris-Lin 阅读(573) 评论(0) 推荐(0)

导航