
17 Sep
2010
17 Sep
'10
7:02 p.m.
Zitat von Robert Ramey
For now I would suggest
d) Make your own stream buffer implementation which sends the raw data down the pipe.
you might find some inspiration for this here: https://svn.boost.org/svn/boost/sandbox/transaction/boost/transact/archive.h... https://svn.boost.org/svn/boost/sandbox/transaction/boost/transact/char_arch... it isn't a streambuf implementation but a Boost.Serialization archive that can write to any output iterator with a "char" valuetype. e.g. serialization_oarchive< char_oarchive< std::back_insert_iterator< std::vector<char> >
by writing an output iterator to a fixed-size network buffer you should be able to efficiently send your network message in chunks.