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? Regards, Michael Powell
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_po... michael -- Michael Caisse ciere consulting ciere.com
participants (2)
-
Michael Caisse
-
Michael Powell