摘要:
The oldest solution that people still use for this problem is select(). The select() call takes three sets of fds (implemented as bit arrays): one for... 阅读全文
posted @ 2014-06-09 21:20
周卓
阅读(3225)
评论(0)
推荐(0)
摘要:
通过多线程或多进程可以减弱阻塞IO的负面作用。/* For sockaddr_in */#include /* For socket functions */#include #include #include #include #include #define MAX_LINE 16384char... 阅读全文
posted @ 2014-06-09 20:37
周卓
阅读(742)
评论(0)
推荐(0)
摘要:
An IO call issynchronousif, when you call it, it does not return until the operation is completed, or until enough time has passed that your network s... 阅读全文
posted @ 2014-06-09 17:07
周卓
阅读(2131)
评论(0)
推荐(0)

浙公网安备 33010602011771号