it's an easy task to send a string from one machine to another using sockets.
At the moment i'm using CAsyncSocket to do this and it works fine...
How would one send data such as a structure that is eg 1MB big?
Sending strings seems to be simple because they are not terribly long so you can allocate a buffer large enough.
I also want to receive data (approx 10MB) from a machine and write this data to a file .. do i take this data and store it in a buffer or can i write it straight to file?
Can anyone help?
At the moment i'm using CAsyncSocket to do this and it works fine...
How would one send data such as a structure that is eg 1MB big?
Sending strings seems to be simple because they are not terribly long so you can allocate a buffer large enough.
I also want to receive data (approx 10MB) from a machine and write this data to a file .. do i take this data and store it in a buffer or can i write it straight to file?
Can anyone help?