title: getting an error of "Service not found" in a async_resolve handler
body: <p>I have code that looks like the following:</p>
  
  <pre><code>//unrelated code snipped
  resolver.reset(new tcp::resolver(iosvc));
  tcp::resolver::query query(host, port);
  resolver-&gt;async_resolve(query,
      boost::bind(&amp;TCPTransport::handle_resolve, this,
        boost::asio::placeholders::error,
        boost::asio::placeholders::iterator));
  
  LOG4CXX_INFO(logger, "Attempting connection to at " &lt;&lt; host &lt;&lt; ":" &lt;&lt; port);
  //unrelated code snipped
  
  
  
  void TCPTransport::handle_resolve(const boost::system::error_code&amp; err,
    tcp::resolver::iterator endpoint_iterator)
  {
    if (err)
    {
      LOG4CXX_ERROR(logger, "Error: " &lt;&lt; err.message());
    }
    else
    {
      tcp::endpoint endpoint = *endpoint_iterator;
      if (!socket)
      {
        socket.reset(new tcp::socket(iosvc));
      }
      socket-&gt;async_connect(endpoint,
        boost::bind(&amp;TCPTransport::handle_connect, this,
          boost::asio::placeholders::error, ++endpoint_iterator));
    }
  }
  </code></pre>
  
  <p>When I run this code, with the appropriate gate and port of the server I know is up an running, I get the following text in my log file: Error: Service not found</p>
  
  <p>Can anyone provide some insight into what this error actually means?</p>