service</span> <span class="identifier">io_service</span><span class="special">;</span>
</pre>
<p>
        We use an <a class="link" href="../reference/ip__udp/resolver.html" title="ip::udp::resolver">ip::udp::resolver</a>
        object to find the correct remote endpoint to use based on the host and service
        names. The query is restricted to return only IPv4 endpoints by the <a class="link" href="../reference/ip__udp/v4.html" title="ip::udp::v4">ip::udp::v4()</a> argument.
      </p>
<pre class="pr