Thanks a lot for the fast answer.
I have another question about the boost::mutable_buffer since they are used to send and receive payload through the upd socket with the methods send_to and receive_from.
I'd like to know how can I assign the content of a mutable_buffer to a char * ?
I found the method buffer_cast (http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/reference/mutable_buffer/buffer_cast.html) but I don't really understand how to use it.
Thanks in advance for the help.
Johan
udp::resolver resolver(io_service);
udp::resolver::query query(udp::v4(), argv[1], "daytime");
udp::endpoint receiver_endpoint = *resolver.resolve(query);
udp::socket socket(io_service);
socket.open(udp::v4());
But, to send something else than a Daytime request, I need to know what are the avalaible option to put instead of "daytime" in this line :
udp::resolver::query query(udp::v4(), argv[1], "daytime");udp::resolver::query query(udp::v4(), "192.168.1.10", "8080");
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users