Boost logo

Boost Users :

Subject: [Boost-users] [asio] usb howto
From: László Veréb (vereb.laszlo.86_at_[hidden])
Date: 2012-01-14 23:03:02


Hi All!
I would like to use the asio library to communicate through usb with some
devices.
I looked the documentation, and searched the internet. It was said that it
can be done, but I could not find any specific information.
I found a code for (old) serial ports, it mentioned the usb, but nothing
more. I think the important parts were:

boost::asio::serial_port port;
port.open(devname);
port.set_option(***);

where one can set these options

boost::asio::serial_port_base::baud_rate, parity, character_size,
flow_control, stop_bits

Are these option also available for usb ports? For example the data flows
(found by be) are not the same.

Thanks beforehand for your reply and help.
Laci



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