|
Boost Users : |
From: Rob Desbois (rob.desbois_at_[hidden])
Date: 2008-01-18 13:58:08
Eric,
Thanks, that does help.
Are you able to comment on whether I 'should' be doing this as regards the
non-blocking and non-seekable nature of a serial port?
Thanks,
Rob
On Jan 18, 2008 6:46 PM, Eric MALENFANT <Eric.Malenfant_at_[hidden]>
wrote:
> Rob Desbois, le 18 janvier 2008 08:02:
> >
> > After trying to compile I realised that a SeekableDevice
> > provides read, write and seek functions, nothing else.
> > Am I seriously misunderstanding the point of boost::iostreams?
>
> A file_descriptor only implements the Device concept, it not an
> std::iostream.
> If you want an std::iostream, you wrap the Device in a
> boost::iostreams::stream which, as stated in its documentation: "performs
> i/o by delegating to a contained Device", and "derives from a specialization
> of std::basic_istream, std::basic_ostream or std::basic_iostream, depending
> on whether the underlying Device models Source, Sink or both."
>
> HTH,
>
>
> Éric Malenfant
> ---------------------------------------------
> If we were meant to fly, we wouldn't keep losing our luggage.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
-- Rob Desbois Eml: rob.desbois_at_[hidden] Tel: 07946 705987 "There's a whale there's a whale there's a whale fish" he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome.
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