What is the best way for me to send and int[999999] accross a socket? When I just plug in the pointer to the array I get this error: Error 1 error C2664: 'send' : cannot convert parameter 2 from 'int (*)[999999]' to 'const char *'

Are you trying to send the entire array or one element?

Sockets deal in chars!

int ary[100];
// send one integer in the array
send( hSock, (char *)&ary[3], sizeof(int), 0 );

If sending the entire array, IT's TOO BIG!!!
However if sending in chunks

// Send 100 integers
send( hSock, (char *)ary, sizeof(int) * 100, 0 );
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.