Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::asio and boost::statecharts newbie question
From: Igor R (boost.lists_at_[hidden])
Date: 2009-05-10 04:30:11


> Is there some way to cast or otherwise use the io_service
> that I have therein into a serial_port? In other words, I would rather not
> have to put the serial port handling code in the FSM (I'd rather 'refer' to
> it using the io_service if it is possible).

Single io_service processes a lot of asio objects like sockets,
timers, serial ports etc. Given an asio object, you can get its
io_service using get_io_service() method.


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