
13 Jan
2011
13 Jan
'11
10:04 p.m.
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