File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 13601360\item Better solution would be to use \texttt {select } also for testing writing
13611361readiness. For this two buffers are required -- one for each direction of
13621362communication. Respective read descriptor will be present in the read set for
1363- \texttt {select } when the buffer is empty. The write descriptor will be in the
1364- write set when the buffer is non-empty.
1363+ \texttt {select } when the buffer is empty (or e.g. when the buffer contains
1364+ fragment of a message).
1365+ The write descriptor will be in the write set when the buffer is non-empty.
13651366\item \hlabel {WRITE_SELECT_C} \texttt {select } will put the process to sleep
13661367when the data is not read from the remote side if only testing write readiness.
13671368This can be simply simulated by a program that merely connects (TCP handshake)
You can’t perform that action at this time.
0 commit comments