title: linux unix sockets vs tcp sockets send buffer size
body: <p>I am comparing how many bytes a send call can transfer when a socket is tcp and when it is  unix socket.</p>
  
  <p>For unix domain socket the number is always 219264,but for TCP this number is much higher.Why is this difference? Both the programs are executed in the same machine</p>
  
  <p>Note:sockets are in non blocking mode</p>
  
  <p>checked the buffer size,these are the values</p>
  
  <p>unix domain socket</p>
  
  <pre><code>receive buffer size =212992
  send buffer size =212992
  </code></pre>
  
  <p>TCP socket</p>
  
  <pre><code>receive buffer size =1062000
  send buffer size =2626560
  </code></pre>
  
  <p>can someone explain me why is this difference?</p>