Hi, Is there a boost library available for serial communications (com port)? I could not find one based on the descriptions on the boost libraries page. Thanks, Jean
Is there a boost library available for serial communications (com
port)? I could not find one based on the descriptions
on the boost libraries page.
Boost::ASIO 1.1.1 supports serial ports. From the announcement, The major new features in this release are: * Support for serial ports. New classes have been included 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 (meaning you can use the free functions such as read(), write(), etc.) The serial port implementation also includes option classes for configuring the port: baud_rate, flow_control, parity, stop_bits and character_size. Thanks go to Rep Invariant Systems, Inc. for contributing the initial implementation which was integrated into asio to provide this facility. Boost::ASIO 1.1.1 is a development version (boost 1.35.0 ships ASIO 1.0.0) http://sourceforge.net/project/showfiles.php?group_id=122478&package_id= 134200&release_id=610981 ~Dan
Hi,
Thanks for the reply. I've installed the complete library, and based
on this page http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio.html
and headers I have on my computer it does not look liek it's supported
though...
On 8/1/08, Casimiro, Daniel C CIV NUWC NWPT
Is there a boost library available for serial communications (com port)? I could not find one based on the descriptions on the boost libraries page.
Boost::ASIO 1.1.1 supports serial ports. From the announcement,
The major new features in this release are:
* Support for serial ports.
New classes have been included 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 (meaning you can use the free functions such as read(), write(), etc.)
The serial port implementation also includes option classes for configuring the port: baud_rate, flow_control, parity, stop_bits and character_size.
Thanks go to Rep Invariant Systems, Inc. for contributing the initial implementation which was integrated into asio to provide this facility.
Boost::ASIO 1.1.1 is a development version (boost 1.35.0 ships ASIO 1.0.0) http://sourceforge.net/project/showfiles.php?group_id=122478&package_id= 134200&release_id=610981
~Dan _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Aug 1, 2008, at 5:16 PM, Jean-Sebastien Stoezel wrote:
Hi,
Thanks for the reply. I've installed the complete library, and based on this page http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio.html and headers I have on my computer it does not look liek it's supported though...
As Dan pointed out in his previous reply, it is only available in ASIO 1.1.1 which is not part of the 1.35 release of Boost... <quote> Boost::ASIO 1.1.1 is a development version (boost 1.35.0 ships ASIO 1.0.0) http://sourceforge.net/project/showfiles.php?group_id=122478&package_id= 134200&release_id=610981 </quote> Ciao, Andreas
Jean-Sebastien Stoezel wrote:
Hi,
Thanks for the reply. I've installed the complete library, and based on this page http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio.html and headers I have on my computer it does not look liek it's supported though...
See the docs for version 1.1.1, here (search the page for "serial"): http://asio.sourceforge.net/boost_asio_1_1_1/libs/asio/doc/html/boost_asio/r... For more information, you can search the asio-users mailing list archive. I'm having a bit of trouble with the search feature on that page. However, if you browse, you can find at least a half dozen messages on the subject, since 2008-04-03: http://sourceforge.net/mailarchive/forum.php?forum_name=asio-users As Dan suggested, you must separately install version 1.1.1. To repeat his link, you can find it here: http://sourceforge.net/project/showfiles.php?group_id=122478&package_id=134200&release_id=610981 Matt
participants (4)
-
Andreas Masur
-
Casimiro, Daniel C CIV NUWC NWPT
-
Jean-Sebastien Stoezel
-
Matt Gruenke