How to access COM port using BOOST library. I want to access COM3 port using boost.

For socket port the below line works
....
........

boost::asio::ip::tcp::resolver::query query("localhost", "9999");
.........
.....

but how to do it for COM port

I tried this
....
.......
boost::asio::ip::tcp::resolver::query query("localhost", "COM3");
.........
.......
but it didn't worked.


 Another problem I am facing is that the network client should be platform-independent but if I use socket.h then it will not work on windows and if I use winsock then it will not run on linux/unix variants. Same for other header files like inet.h etc


Rahul

To create something exceptional

-Master4Master
"Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message
 and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email, and delete this message and any attachments from your system.
Virus Warning: Although I have taken reasonable precautions to ensure no viruses are present in this email, I cannot accept responsibility for any loss or damage arising from the use of this email or attachment."

Speak out for justice and peace,
even if your voice trembles.





Add more friends to your messenger and enjoy! Invite them now.