Boost logo

Boost :

Subject: [boost] AT Commands Sample Needed
From: master master (master_4_master_at_[hidden])
Date: 2009-01-01 08:16:00

I need a basic example for sending AT commands to mobile. This will require serial communication on COM port. If any one can send me any example of it.. I want to do this using BOOST. By searching on GOOGLE I got this but this is not compiling. #include <iostream> #include <boost/asio.hpp> #include <boost/asio/serial_port.hpp> #include <boost/thread.hpp> #include <boost/system/error_code.hpp> #include <boost/system/system_error.hpp> #include <boost/bind.hpp> void handler(const boost::system::error_code& error) { std::cout << "read" << std::endl; } int main(int argc, char* argv[]) { using namespace std; using namespace boost; char read_msg_[512]; boost::asio::io_service io; asio::serial_port theport(io,"COM7"); theport.async_read_some(boost::asio::buffer(read_msg_),handler);; return 0; } Thank You 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! Go to

Boost list run by bdawes at, gregod at, cpdaniel at, john at