22 Jan
2009
22 Jan
'09
4:32 p.m.
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");