
11 Feb
2012
11 Feb
'12
2:04 p.m.
Il 02/09/2012 03:59 PM, Dario Ramos ha scritto:
I'm using boost::asio::serial_port to read and write to a serial port device. I do the reading inside a boost::thread to take advantage of RS-232 being full-duplex. My read calls are like this one:
BYTE b; read( m_SerialPort, boost::asio::buffer(&b,1) );
The best solution I'm aware of is to let boost handle the job and use async_read and async_write. -- Leo Cacciari Aliae nationes servitutem pati possunt populi romani est propria libertas