码迷,mamicode.com
首页 > 其他好文 > 详细

select 详解

时间:2019-04-01 14:13:15      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:RoCE   block   call   list   enabled   can   failed   connect   disable   

In summary, a socket will be identified in a particular set when select returns if:

readfds:
If listen has been called and a connection is pending, accept will succeed.
Data is available for reading (includes OOB data if SO_OOBINLINE is enabled).
Connection has been closed/reset/terminated.

writefds:
If processing a connect call (nonblocking), connection has succeeded.
Data can be sent.

exceptfds:
If processing a connect call (nonblocking), connection attempt failed.
OOB data is available for reading (only if SO_OOBINLINE is disabled).

select 详解

标签:RoCE   block   call   list   enabled   can   failed   connect   disable   

原文地址:https://www.cnblogs.com/mingzhang/p/10635948.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!