...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Provides serial port functionality.
template< typename SerialPortService = serial_port_service> class basic_serial_port : public basic_io_object< SerialPortService >, public serial_port_base
Name |
Description |
---|---|
The underlying implementation type of I/O object. |
|
A basic_serial_port is always the lowest layer. |
|
The native representation of a serial port. |
|
(Deprecated: Use native_handle_type.) The native representation of a serial port. |
|
The type of the service that will be used to provide I/O operations. |
Name |
Description |
---|---|
Assign an existing native serial port to the serial port. |
|
Start an asynchronous read. |
|
Start an asynchronous write. |
|
Construct a basic_serial_port without opening it. Construct and open a basic_serial_port. Construct a basic_serial_port on an existing native serial port. Move-construct a basic_serial_port from another. |
|
Cancel all asynchronous operations associated with the serial port. |
|
Close the serial port. |
|
Get the io_service associated with the object. |
|
Get an option from the serial port. |
|
Determine whether the serial port is open. |
|
Get a reference to the lowest layer. Get a const reference to the lowest layer. |
|
(Deprecated: Use native_handle().) Get the native serial port representation. |
|
Get the native serial port representation. |
|
Open the serial port using the specified device name. |
|
Move-assign a basic_serial_port from another. |
|
Read some data from the serial port. |
|
Send a break sequence to the serial port. |
|
Set an option on the serial port. |
|
Write some data to the serial port. |
Name |
Description |
---|---|
Get the underlying implementation of the I/O object. |
|
Get the service associated with the I/O object. |
Name |
Description |
---|---|
(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. |
|
(Deprecated: Use get_service().) The service associated with the I/O object. |
The basic_serial_port
class template
provides functionality that is common to all serial ports.
Distinct objects: Safe.
Shared objects: Unsafe.
Header: boost/asio/basic_serial_port.hpp
Convenience header: boost/asio.hpp