Boost logo

Boost Users :

Subject: Re: [Boost-users] How can I create a ip::tcp::iostream from a SOCKET descriptor?
From: Eric J. Holtman (eric_at_[hidden])
Date: 2009-12-21 12:11:24

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:
> 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.

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