发布时间:2013-08-30 00:55:32
1 三种机制主要API1.1 selectint select (int maxfdp1,fd_set *readset,fd_set *writeset, fd_set *exceptset,const struct timeval * timeout); //blocked some events occur, return -1 means error,0 means timeout, n means the num of fd with events occuring.void FD_ZERO (fd_set *fdset); // clear all.........【阅读全文】