Boost logo

Boost Users :

Subject: Re: [Boost-users] How can I create a ip::tcp::iostream from a SOCKET descriptor?
From: Igor R (boost.lists_at_[hidden])
Date: 2009-12-21 11:50:24

> 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:
and then use synchronous i/o operations with asio::streambuf

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at