Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending data over sockets in MS VisualC++

Status
Not open for further replies.

shanlon

Technical User
Dec 4, 2000
24
IE
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?
 
Hi,
I don't know this will solve your problem,
Use a file, and read value ( 1024 byte, for example ) from the file by ordering and send it end of the each reading.

Omer YESIL
Visual C++, SQL, TCP/IP, Delphi, Pascal, Assembler, 3D Studio Max.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top