
21 Dec
2009
21 Dec
'09
4:50 p.m.
I'm just stuck on finding that construction (or function) that will take an already opened SOCKET handle and wrap an iostream around it.
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