title: header in socket programming
body: <p>I'm programming my first socket lines, and have accomplish to make a client server system that transfer messages between. The next step is to make a header sow the receiver know how much data the message is and how the message is to. How can I accomplish this?</p>
  
  <p>I want the header to contain two int:</p>
  
  <pre><code>int to_phone_number;
  int size;
  </code></pre>
  
  <p>How can is send a header ?  </p>
  
  <pre><code>send(sock, the_message, max_message_length, 0);
  </code></pre>