~ubuntu-branches/ubuntu/trusty/glibmm2.4/trusty

« back to all changes in this revision

Viewing changes to docs/reference/html/classGio_1_1Resolver.html

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-02-22 07:01:47 UTC
  • mfrom: (1.2.68)
  • Revision ID: package-import@ubuntu.com-20120222070147-mjn5l85oc48061da
Tags: 2.31.18-0ubuntu1
* New upstream release
* debian/watch: Look for unstable versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 <tbody>
15
15
 <tr style="height: 56px;">
16
16
  <td style="padding-left: 0.5em;">
17
 
   <div id="projectname">glibmm&#160;<span id="projectnumber">2.31.16</span></div>
 
17
   <div id="projectname">glibmm&#160;<span id="projectnumber">2.31.18</span></div>
18
18
  </td>
19
19
 </tr>
20
20
 </tbody>
126
126
<div class="textblock"><p>Asynchronous and cancellable DNS resolver. </p>
127
127
<p><a class="el" href="classGio_1_1Resolver.html" title="Asynchronous and cancellable DNS resolver.">Resolver</a> provides cancellable synchronous and asynchronous DNS resolution, for hostnames (<a class="el" href="classGio_1_1Resolver.html#abb5740225148191d2e93d7a6b12caf23" title="Synchronously reverse-resolves address to determine its associated hostname.">lookup_by_address()</a>, <a class="el" href="classGio_1_1Resolver.html#aea1576fa2684d9bca58a589098a8371e" title="Synchronously resolves hostname to determine its associated IP address(es).">lookup_by_name()</a> and their async variants) and SRV (service) records (<a class="el" href="classGio_1_1Resolver.html#aab5e246c4f14e55e079c8a280dd3de5b" title="Synchronously performs a DNS SRV lookup for the given service and protocol in the given domain and re...">lookup_service()</a>).</p>
128
128
<p><a class="el" href="classGio_1_1NetworkAddress.html" title="A SocketConnectable for resolving hostnames.">NetworkAddress</a> and <a class="el" href="classGio_1_1NetworkService.html" title="A GSocketConnectable for resolving SRV records.">NetworkService</a> provide wrappers around <a class="el" href="classGio_1_1Resolver.html" title="Asynchronous and cancellable DNS resolver.">Resolver</a> functionality that also implement <a class="el" href="classGio_1_1SocketConnectable.html" title="Interface for potential socket endpoints.">SocketConnectable</a>, making it easy to connect to a remote host/service.</p>
129
 
<dl class="since_2_24"><dt><b><a class="el" href="since_2_24.html#_since_2_24000026">Since glibmm 2.24:</a></b></dt><dd></dd></dl>
 
129
<dl class="since_2_24"><dt><b><a class="el" href="since_2_24.html#_since_2_24000028">Since glibmm 2.24:</a></b></dt><dd></dd></dl>
130
130
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
131
131
<a class="anchor" id="a91fb01b808b2e2d315d9ffc149f1f71e"></a><!-- doxytag: member="Gio::Resolver::~Resolver" ref="a91fb01b808b2e2d315d9ffc149f1f71e" args="()" -->
132
132
<div class="memitem">
247
247
<p>Synchronously reverse-resolves <em>address</em> to determine its associated hostname. </p>
248
248
<p>If the DNS resolution fails, <em>error</em> (if non-<code>0</code>) will be set to a value from <a class="el" href="classGio_1_1ResolverError.html">ResolverError</a>.</p>
249
249
<p>If <em>cancellable</em> is non-<code>0</code>, it can be used to cancel the operation, in which case <em>error</em> (if non-<code>0</code>) will be set to IO_ERROR_CANCELLED.</p>
250
 
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000078">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
 
250
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000079">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
251
251
<dl><dt><b>Parameters:</b></dt><dd>
252
252
  <table class="params">
253
253
    <tr><td class="paramname">address</td><td>The address to reverse-resolve. </td></tr>
384
384
 
385
385
<p>Retrieves the result of a previous call to g_resolver_lookup_by_address_async(). </p>
386
386
<p>If the DNS resolution failed, <em>error</em> (if non-<code>0</code>) will be set to a value from <a class="el" href="classGio_1_1ResolverError.html">ResolverError</a>. If the operation was cancelled, <em>error</em> will be set to IO_ERROR_CANCELLED.</p>
387
 
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000079">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
 
387
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000080">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
388
388
<dl><dt><b>Parameters:</b></dt><dd>
389
389
  <table class="params">
390
390
    <tr><td class="paramname">result</td><td>The result passed to your AsyncReadyCallback. </td></tr>
422
422
 
423
423
<p>Synchronously resolves <em>hostname</em> to determine its associated IP address(es). </p>
424
424
<p><em>hostname</em> may be an ASCII-only or UTF-8 hostname, or the textual form of an IP address (in which case this just becomes a wrapper around g_inet_address_new_from_string()).</p>
425
 
<p>On success, g_resolver_lookup_by_name() will return a List of <a class="el" href="classGio_1_1InetAddress.html" title="An IPv4/IPv6 address.">InetAddress</a>, sorted in order of preference. (That is, you should attempt to connect to the first address first, then the second if the first fails, etc.)</p>
 
425
<p>On success, g_resolver_lookup_by_name() will return a List of <a class="el" href="classGio_1_1InetAddress.html" title="An IPv4/IPv6 address.">InetAddress</a>, sorted in order of preference and guaranteed to not contain duplicates. That is, if using the result to connect to <em>hostname</em>, you should attempt to connect to the first address first, then the second if the first fails, etc. If you are using the result to listen on a socket, it is appropriate to add each result using e.g. g_socket_listener_add_address().</p>
426
426
<p>If the DNS resolution fails, <em>error</em> (if non-<code>0</code>) will be set to a value from <a class="el" href="classGio_1_1ResolverError.html">ResolverError</a>.</p>
427
427
<p>If <em>cancellable</em> is non-<code>0</code>, it can be used to cancel the operation, in which case <em>error</em> (if non-<code>0</code>) will be set to IO_ERROR_CANCELLED.</p>
428
428
<p>If you are planning to connect to a socket on the resolved IP address, it may be easier to create a <a class="el" href="classGio_1_1NetworkAddress.html" title="A SocketConnectable for resolving hostnames.">NetworkAddress</a> and use its <a class="el" href="classGio_1_1SocketConnectable.html" title="Interface for potential socket endpoints.">SocketConnectable</a> interface.</p>
429
 
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000076">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
 
429
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000077">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
430
430
<dl><dt><b>Parameters:</b></dt><dd>
431
431
  <table class="params">
432
432
    <tr><td class="paramname">hostname</td><td>The hostname to look up. </td></tr>
565
565
 
566
566
<p>Retrieves the result of a call to g_resolver_lookup_by_name_async(). </p>
567
567
<p>If the DNS resolution failed, <em>error</em> (if non-<code>0</code>) will be set to a value from <a class="el" href="classGio_1_1ResolverError.html">ResolverError</a>. If the operation was cancelled, <em>error</em> will be set to IO_ERROR_CANCELLED.</p>
568
 
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000077">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
 
568
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000078">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
569
569
<dl><dt><b>Parameters:</b></dt><dd>
570
570
  <table class="params">
571
571
    <tr><td class="paramname">result</td><td>The result passed to your AsyncReadyCallback. </td></tr>
619
619
<p>If the DNS resolution fails, <em>error</em> (if non-<code>0</code>) will be set to a value from <a class="el" href="classGio_1_1ResolverError.html">ResolverError</a>.</p>
620
620
<p>If <em>cancellable</em> is non-<code>0</code>, it can be used to cancel the operation, in which case <em>error</em> (if non-<code>0</code>) will be set to IO_ERROR_CANCELLED.</p>
621
621
<p>If you are planning to connect to the service, it is usually easier to create a <a class="el" href="classGio_1_1NetworkService.html" title="A GSocketConnectable for resolving SRV records.">NetworkService</a> and use its <a class="el" href="classGio_1_1SocketConnectable.html" title="Interface for potential socket endpoints.">SocketConnectable</a> interface.</p>
622
 
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000080">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
 
622
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000081">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
623
623
<dl><dt><b>Parameters:</b></dt><dd>
624
624
  <table class="params">
625
625
    <tr><td class="paramname">service</td><td>The service type to look up (eg, "ldap"). </td></tr>
806
806
 
807
807
<p>Retrieves the result of a previous call to g_resolver_lookup_service_async(). </p>
808
808
<p>If the DNS resolution failed, <em>error</em> (if non-<code>0</code>) will be set to a value from <a class="el" href="classGio_1_1ResolverError.html">ResolverError</a>. If the operation was cancelled, <em>error</em> will be set to IO_ERROR_CANCELLED.</p>
809
 
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000081">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
 
809
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000082">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
810
810
<dl><dt><b>Parameters:</b></dt><dd>
811
811
  <table class="params">
812
812
    <tr><td class="paramname">result</td><td>The result passed to your AsyncReadyCallback. </td></tr>
847
847
      </table>
848
848
</div>
849
849
<div class="memdoc">
850
 
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_reload()</code> </dd></dl>
 
850
<dl class="user"><dt><b>Slot Prototype:</b></dt><dd><code>void on_my_reload()</code></dd></dl>
 
851
<p>Emitted when the resolver notices that the system resolver configuration has changed. </p>
851
852
 
852
853
</div>
853
854
</div>
890
891
</div>
891
892
</div>
892
893
</div>
893
 
<hr class="footer"/><address class="footer"><small>Generated on Tue Feb 7 2012 10:24:14 for glibmm by&#160;
 
894
<hr class="footer"/><address class="footer"><small>Generated on Tue Feb 21 2012 15:17:59 for glibmm by&#160;
894
895
<a href="http://www.doxygen.org/index.html">
895
896
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
896
897
</body>