
29 Oct
2008
29 Oct
'08
3:47 p.m.
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: thePort.async_read_some(...);