I am using async_read with streambuf. However, I would like to limi开发者_运维知识库t the amount of data read to 4, so I can properly handle header before going to body.
I know it\'s not safe to manipulated streambuf while async_write working as stated by asio author on boost mailing list. What I want to know开发者_开发问答 is, is it safe to manipulated streambuf afte
I used to be a C++ expert a decade ago, but for the past 10 years I\'ve been programming Java. I just started a C++ project that uses a small third-party XML parser. The XML parser accepts an STL istr
Some days ago, I decided that it would be fun to write a streambuf subclass that would use mmap and read-ahead.
I have a Visual Studio 2008 C++ application using IStreams. I would like to use the IStream connection in a std::ostream. Something like this:
I have a Visual Studio 2008 C++ application where I would like to treat a stream as a set of iterators.
I\'m want to check for incoming data packages on the serial port, using boost.asio. Each data packet will start with a header that is one byte long, and will specify what type of the message has been
I have a project that requires me to insert a filter into a stream so that outgoing data will be modified according to the filter. After some research, it seems that what I want to do is create a filt
Text gets accumulates piecemeal before being sent to client. Now we use own class that allocates memory for each piece as char massive. (Anyway, works like char[][] + std::list<char*>).
I want to implement a simple class for logging from multiple threads. The idea there is, that each object that wants to log stuff, receives an ostream-object that it can write messages to using the us