TCP_NODELAY option

Hi All,

I’m trying to use the TCP_NODELAY option in setsockopt() but the compiler
reported that it couldn’t find it. I then did a search and found it in
/usr/include/netinet/tcp.h. The help for setsockopt() does not say you have
to include this file, but I had to include it to make it compile. What
gives?

Jim

Jim Lambert <jlambert@futurex.com> wrote:

Hi Jim,

Hi All,

I’m trying to use the TCP_NODELAY option in setsockopt() but the compiler
reported that it couldn’t find it. I then did a search and found it in
/usr/include/netinet/tcp.h. The help for setsockopt() does not say you have
to include this file, but I had to include it to make it compile. What
gives?

Thanks for pointing this out :wink:, I’ll submit a PR on the issue, our docs
should contain this information.

Regards,

Marcin

Jim