Boost logo

Boost :

Subject: Re: [boost] How to access COM ports
From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2009-01-04 10:51:40


On Sun, Jan 4, 2009 at 4:48 PM, Philippe Vaucher
<philippe.vaucher_at_[hidden]> wrote:
>> 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.

Actually, yes. Boost.Asio does support serial ports:

http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/overview/serial_ports.html

But I've never used this feature, so I can't really help.

-- 
gpd

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