
4 Jan
2009
4 Jan
'09
3:48 p.m.
How to access COM port using BOOST library. I want to access COM3 port using boost.
I tried this boost::asio::ip::tcp::resolver::query query("localhost", "COM3");
COM ports aren't sockets. There's nothing in boost to support COM/serial ports yet. On windows you use CreateFile with ReadFile/WriteFile and on *nix you use the POSIX termios.h if I remember correctly. There are some portable libs around but not very good. Good luck. Philippe**