mirror of
https://github.com/ksherlock/marignotti.git
synced 2024-12-21 23:29:36 +00:00
add comments.
This commit is contained in:
parent
7d93e491c1
commit
5851f2ff3e
@ -85,7 +85,14 @@ boolean readable(Entry *e)
|
|||||||
if (state == TCPSCLOSED || state > TCPSESTABLISHED)
|
if (state == TCPSCLOSED || state > TCPSESTABLISHED)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The receive low-water mark is the amount of data that must be
|
||||||
|
* in the socket receive buffer for select to return "readable."
|
||||||
|
* It defaults to 1 for TCP, UDP, and SCTP sockets.
|
||||||
|
*
|
||||||
|
* - UNIX Network Programming Volume 1, Third Edition, page 169
|
||||||
|
*
|
||||||
|
*/
|
||||||
if (e->sr.srRcvQueued >= e->_RCVLOWAT)
|
if (e->sr.srRcvQueued >= e->_RCVLOWAT)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user