$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] How to access COM ports
From: Igor R (boost.lists_at_[hidden])
Date: 2009-01-03 12:30:18
> boost::asio::ip::tcp::resolver::query query("localhost", "9999");
> .........
> .....
>
> but how to do it for COM port
I never tried it, but it seems that you just pass your com-port name
to serial_port object, like this:
// UNTESTED
io_service io;
serial_port port(io, "com1);
or:
serial_port port(io);
port.open("com1");