
21 Dec
2009
21 Dec
'09
5:11 p.m.
Igor R wrote:
It seems that ip::tcp::iostream doesn't have such a capability. But iostream is just a convenience wrapper. You can open a regular ip::tcp::socket with this overload: http://www.boost.org/doc/libs/1_41_0/doc/html/boost_asio/reference/basic_str... and then use synchronous i/o operations with asio::streambuf _______________________________________________
Aha. Thanks. I'll look into that. Looks like the asio may be overkill for me (looking at buffers and such). My internal protocol is pretty simple, though, so I might just fall back on using serialization to dump stuff into binary string buffers and then write that out to the socket directly, avoiding asio for now.