摘要:
阅读本文前,请先参考:select,poll,epoll区别select用法 #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include <sys/select.h> int select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); int pselect(int n, fd_set *readfds, fd_set *writef 阅读全文