title: Send int over socket in C/C++
body: <p>I have troubles with sending an array of ints over a socket.
  the code looks like this</p>
  <p>Program 1: (running on windows)</p>
  <pre class="lang-cpp prettyprint-override"><code>int bmp_info_buff[3];
  
  /* connecting and others */
  
  /* Send informations about bitmap */
  send(my_socket, (char*)bmp_info_buff, 3, 0);
  </code></pre>
  <p>Program 2: (running on neutrino)</p>
  <pre><code>/*buff to store bitmap information size, with, length */
  int bmp_info_buff[3];
  
  /* stuff */
  
  /* Read informations about bitmap */
  recv(my_connection, bmp_info_buff, 3, NULL);
  printf(&quot;Size of bitmap: %d\nwidth: %d\nheight: %d\n&quot;, bmp_info_buff[0], bmp_info_buff[1], bmp_info_buff[2]);
  </code></pre>
  <p>It should print
  Size of bitmap: 64<br>
  width: 8<br>
  height: 8<br></p>
  <p>Size of bitmap: 64<br>
  width: 6<br>
  height: 4096<br>
  What do I do wrong?</p>