envoyer int plus de prise, c, c++

J'ai des problèmes avec l'envoi d'un tableau d'entiers sur une socket.
le code ressemble à ceci

Programme 1 (en cours d'exécution sur windows)

int bmp_info_buff[3];

/* connecting and others */

/* Send informations about bitmap */
send(my_socket, (char*)bmp_info_buff, 3, 0);

Programme 2 (en cours d'exécution sur neutrino)

/*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("Size of bitmap: %d\nwidth: %d\nheight: %d\n", bmp_info_buff[0], bmp_info_buff[1], bmp_info_buff[2]);

Elle doit imprimer
La taille du bitmap: 64
largeur: 8
hauteur: 8

Taille du bitmap: 64
largeur: 6
hauteur: 4096
Que dois-je faire de mal?

OriginalL'auteur Lukasz | 2013-01-04