What is the simplest way in C++ (an actual code example would be great) to establish/open a UDP unicast connection if I know the IP address and port?
The resolver/query/endpoint/iterator stuff seems a bit like overkill and at my level of understanding, so far a bit confusing.
First of all I’m new to Boost, but I have done some work with the Boost.Asio library.
There is an example here that uses resolvers etc.
http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/tutorial/tutdaytime4.html
If you wish to use an ip address that you already have, you can do something like this:
This is for TCP, but I expect you can do something similar for UDP.