Netprog 2002 - Client/Server Issues
42
SO_LINGER usage
lBy default, calling close() on a TCP socket will return immediately. lThe closing process has no way of knowing whether or not the peer received all data. lSetting SO_LINGER means the closing process can determine that the peer machine has received the data (but not that the data has been read() !).