Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] Serial and TCP I/O
From: Michael Caisse (mcaisse-lists_at_[hidden])
Date: 2013-06-19 13:09:05


On 06/19/2013 07:29 AM, Michael Powell wrote:
> Hello,
>
> I have an application that I'd like to leverage some common code if at
> all possible (and/or necessary), using concepts of client/server,
> reader/writer, and so on.
>
> Probably also TCP/IP and/or Serial, although I gather Asio has a
> serial class ready to go out of the box? Serial is pretty much a "no
> brainer", can be a server, but to talk to devices in our use case,
> always the client, can be either reader or writer or both.
>
> The key question here is, do we need a separate io_service for serial
> as well as for TCP?
>

A single io_service is fine. Yes, Asio support serial out-of-the-box:

<http://www.boost.org/doc/libs/1_53_0/doc/html/boost_asio/reference/serial_port.html>

michael

-- 
Michael Caisse
ciere consulting
ciere.com

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