|
Boost Users : |
Subject: Re: [Boost-users] ASIO: What is the proper way to upload a LARGE file?
From: michi7x7 (mailing-lists_at_[hidden])
Date: 2011-01-13 17:04:05
Hi,
why don't you just do something like this?
tcp::iostream net_stream(SERVER_ADDR, "12345");
std::ifstream fstream("file");
net_stream << fstream.rdbuf();
It's up to the stream-implementations to buffer the data appropriately then.
Regards,
michi7x7
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net