|
Boost Users : |
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");
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net