Boost logo

Boost Users :

Subject: Re: [Boost-users] asio guidance
From: Paul Dugas (paul_at_[hidden])
Date: 2010-02-28 12:48:51


On Sun, Feb 28, 2010 at 9:44 AM, Igor R <boost.lists_at_[hidden]> wrote:
>> I'm new to asio but it looks like what I may need given that I have to
>> support device connections via serial ports and sockets but I also need to retain the ability to read from files.  I'm wondering if anyone could suggest an approach to support all three comm schemes with the same packet reception logic.
>
> You can take a look at windows::random_access_handle reference and example:
> http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/reference/windows__random_access_handle.html
> http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/example/windows/transmit_file.cpp

Sorry, should have mentioned I'm not on Windows; Linux is the target.
The posix::stream_descriptor looked promising until I read the "but
not regular files" bit.

P


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net