
24 Mar
2009
24 Mar
'09
8:07 p.m.
I see. The clients aren't going to be sending much of anything. They are mostly going to just be receiving data. Is there a particular sample that shows client/server with async_data read?
There're lots of examples that involve async. read/write: http://www.boost.org/doc/libs/1_38_0/doc/html/boost_asio/examples.html The most simple is async.chat client: http://www.boost.org/doc/libs/1_38_0/doc/html/boost_asio/example/chat/chat_c...
Does this mean the client will be polling or will be notified when there is data to read?
The handler that you pass to async_read is called by asio when the read operation is complete.