c: Close socket if enabling TCP_NODELAY fails
c: Use const char instead of char for string parameters of setters