tcp: setNoDelay / setKeepAlive implementation