在I/O复用模型的关键是熟练掌握select函数,该函数的原型是
int select(int maxfd, fd_set *readset, fd_set *writeset,
fd_set *exceptset, const struct timeval *timeout);
a)请详细解释select函数的参数的意义,以及执行结果。
b)如何利用select函数构造一个最简单的多协议服务器,同时提供TCP和UDP服务?画出进程结构图。
