c++ - How to set TCP_NODELAY on BSD socket on Solaris? -


I am trying to close the snake's algorithm for a BSD socket:

 < Code> setockopt (Newcast, IPPROTOCCP, TCP_NOAD, (four *) and flag, size flag);  

but the compiler claims TCP_NODELAY has not been seen before:

  Error: 'TCP_NOAD' undeclared (previously its Use Function)  

This is the complete list of files included in this file:

  #include & lt; Arpa / inet.h & gt; # Include & lt; Fcntl.h & gt; # Include & lt; Iostream & gt; # Include & lt; Netdb.h & gt; #include & lt; String & gt; # Include & lt; Sys / socket.h & gt; # Include & lt; Sys / types.h & gt; using namespace std;  

I also have the -lnsl and -locksocket linker options, but it will not just compile. Am I missing something?

All this is on Solaris 8 machine.

It looks like you #include & lt; Netinet / tcp.h & gt; - Where he defines TCP _...


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -