I\'m lead to believe that write() can only send data buffers of byte (i.e. signed char), so how do I send an array of long integers using the C write()
write()
Declare a character array. In each location of the array, store integer numbers, not characters. Then you just send that.
For example:
char tcp[100]; tcp[0] = 0; tcp[1] = 0xA; tcp[2] = 0xB; tcp[3] = 0xC; . . // Send the character array write(sock, tcp, sizeof(tcp));