Boost Asio Serial Port Example
The basic_serial_port class template provides functionality that is common to all serial ports. Header: boost/asio/serial_port.hpp.
Boost.Asio includes classes for creating and manipulating serial ports in a portable manner. For example, a serial port may be opened using: serial_port port ( my_io_service, name ); where name is something like 'COM1' on Windows, and '/dev/ttyS0' on POSIX platforms. Once opened the serial port may be used as a stream. This means the objects can be used with any of the,,,, or free functions. The serial port implementation also includes option classes for configuring the port's baud rate, flow control type, parity, stop bits and character size.,,,,,,,,.
Extreme Makeover Home Edition Torrent. Serial ports are available on all POSIX platforms. For Windows, serial ports are only available at compile time when the I/O completion port backend is used (which is the default). A program may test for the macro BOOST_ASIO_HAS_SERIAL_PORTS to determine whether they are supported.