Boost logo

Boost :

Subject: Re: [boost] How to access COM ports
From: Philippe Vaucher (philippe.vaucher_at_[hidden])
Date: 2009-01-04 10:48:23


> How to access COM port using BOOST library. I want to access COM3 port
> using boost.
>
> I tried this
> boost::asio::ip::tcp::resolver::query query("localhost", "COM3");

COM ports aren't sockets. There's nothing in boost to support COM/serial
ports yet.

On windows you use CreateFile with ReadFile/WriteFile and on *nix you use
the POSIX termios.h if I remember correctly.
There are some portable libs around but not very good.

Good luck.
Philippe**


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk