 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
l |
By default,
calling close() on a TCP
|
|
|
|
socket will
return immediately.
|
|
|
l |
The closing
process has no way of
|
|
|
|
knowing whether
or not the peer
|
|
|
|
received all
data.
|
|
|
l |
Setting
SO_LINGER means the closing
|
|
|
process can
determine that the peer
|
|
|
|
machine has
received the data (but not
|
|
|
that the data has
been read() !).
|
|