IBM AIX上 select返回值的 man

  if  a connect-based socket is specified in the readlist parameter and the connection  disconnects,

  the select subroutine returns successfully,but the recv subroutine on the socket will return a value of 0

  to indicate the socket connection has been closed

 

  也就是说 监听前或者 监听中  。socket连接 断开了,那么select返回正确。并且 recv返回0,

  来 指明  连接 断开了。

  所以 网上 那么博文 说的 返回值是可操作 文件描述符 个数。。仅仅 针对 linux 是对的。。~~

  只有 man,你 值得拥有。

  不得不说。linux和 UNIX 研究得越细,使用得越多,你才能发现,他们差别 太大。

  

相关文章:

  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-05-21
猜你喜欢
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
相关资源
相似解决方案