boost asio: repeated reading to delimiter
17 Oct
2010
17 Oct
'10
11:05 p.m.
A very newbie question from a beginner user of boost::asio. I have used BSD socket interface a lot in the past, and would like to start using boost::asio for my networking code. I have a server that is providing data through a network socket. The data is a continuous stream of bytes, with different data elements separated from each other by a zero byte. Would reading into a streambuf with the help of async_read_until() be a good way of handling this situation? The code I am thinking of replacing uses select() to wait for arriving data, and then reads it into a circular buffer. Thanks.
5142
Age (days ago)
5142
Last active (days ago)
0 comments
1 participants
participants (1)
-
Cattus Cerebrum