title: TCP_NODELAY not found on Ubuntu
body: <p>I am trying to disable the <strong>Nagle's Algorithm</strong> with my TCP sockets on an Ubuntu Linux box by setting the <code>TCP_NODELAY</code> parameter.  For some reason, this constant is not defined in <code>&lt;sys/types.h&gt;</code> or <code>&lt;sys/socket.h&gt;</code>.  Has this constant been deprecated and then removed from Linux or am I just missing something?</p>
  <pre><code>bool Socket::setTCPNoDelay(bool enabled)
  {
  
      int flag = (enabled ? 1 : 0);
  
      if(setsockopt(m_sock,IPPROTO_TCP,TCP_NODELAY,(char *)&amp;flag,sizeof(flag)) == -1)
      {
           return false;
      }
  
      return true;
  }
  </code></pre>