Added 'sendfile' capability for client.
Check if return value of 'recv' is 0 (EOF or peer shutdown).
TCP_CORK: the application instructs the OS not to send any packets unless they are full, or the application signals the OS to send all pending data