title: How many bytes can I write at once on a TCP socket?
body: <p>As the title says, is there a limit to the number of bytes that can be written at once on a connection-oriented socket?</p>
  
  <p>If I want to send a buffer of, for example, 1024 bytes, can I use a </p>
  
  <pre><code>write(tcp_socket, buffer, 1024);
  </code></pre>
  
  <p>or should I use multiple <code>write()</code> calls with a lower amount of bytes for each one?</p>