Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost.asio] reading data from serial port [newbie]
From: Igor R (boost.lists_at_[hidden])
Date: 2008-10-29 11:47:26

> boost::asio::io_service io;
> asio::serial_port(io,"COM7");
> boost::asio::serial_port::async_read_some(boost::asio::buffer(read_msg_,512),handler);
> return 0;

I never dealt with serial_port, but I guess you mean to define an
object, like this:

asio::serial_port thePort(io,"COM7");

...and then to call its member-function:


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at