引用unp解释socket在什么情况下可读?
来源:互联网 发布:潮流的网络名词灌水 编辑:程序博客网 时间:2024/06/10 16:32
A socket is ready for reading if any of the following four conditions is true:
a. The number of bytes of data in the socket receive buffer is greater than or
equal to the current size of the low-water mark for the socket receive buffer.
A read operation on the socket will not block and will return a value greater than 0
b. The read half of the connections is closed (i.e., A TCP connection that has received a FIN).
A read operation on the socket will not block and will return 0 (i.e., EOF)
c. The socket is a listening socket and the number of completed connection is nonzero.
An accept on the listening socket will normally not block, although we will describe a
d. A socket error is pending. A read operation on the socket will not block and will return
an error (-1) with errno set to the specific error condition
- 引用unp解释socket在什么情况下可读?
- socket 客户端在什么情况下需要bind
- 在什么情况下用new
- 静态类在什么情况下使用
- 《在什么情况下创建扩展点》
- 索引在什么情况下失去作用
- 复合索引在什么情况下使用
- IVM在什么情况下可以使用
- @responsebody一般在什么情况下使用
- properties配置文件在什么情况下不起作用
- layoutSubviews在什么情况下调用
- onNewIntent在什么情况下被调用
- 在什么情况下使用JAVA缓存
- $apply() 应该在什么情况下使用?
- 在什么情况下使用线程池
- layoutSubviews在什么情况下调用
- Android singleinstance在什么情况下使用
- mybatis resultMap 用在什么情况下?
- 寻找最大的K个数 (C语言实现)
- 2011.09.29-XML_Sax解析
- 向美国人学习礼貌语言!
- Java基础18天--03--对象(Date)
- 美国人生活中最常用的36句话!
- 引用unp解释socket在什么情况下可读?
- Ubuntu 配置电驴
- iOS5编程--官方例子代码的研究--3. TableViewSuite--1_SimpleTableView
- logic:iterate(还有人能在用struts标签)
- WCF学习笔记(七)WCF编程方式实现协议和终结点绑定
- 如何向 CrystalReportViewer 和 ReportDocument 传递参数
- c#调用Delphi DLL pchar类型的转换
- UBUNTU下面的电驴aMule下载中文文件名乱码 解决方法
- 注册CSDN很久,但还没做个人和贡献,实在抱歉。