Hi
I'm trying to create some code based on the code of the socket tutorial of the boost website.
The code to create a UDP socket which will send datagram is the following one :
boost::asio::io_service io_service;
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());
udp::resolver::query query(udp::v4(), argv[1], "daytime");