
10 May
2009
10 May
'09
8:30 a.m.
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.