1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
<title>glibmm: Gio::Resolver Class Reference</title>
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
10
<!-- Generated by Doxygen 1.6.1 -->
11
<div class="navigation" id="top">
14
<li><a href="index.html"><span>Main Page</span></a></li>
15
<li><a href="pages.html"><span>Related Pages</span></a></li>
16
<li><a href="modules.html"><span>Modules</span></a></li>
17
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
18
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
19
<li><a href="examples.html"><span>Examples</span></a></li>
24
<li><a href="annotated.html"><span>Class List</span></a></li>
25
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
26
<li><a href="functions.html"><span>Class Members</span></a></li>
29
<div class="navpath"><a class="el" href="namespaceGio.html">Gio</a>::<a class="el" href="classGio_1_1Resolver.html">Resolver</a>
32
<div class="contents">
33
<h1>Gio::Resolver Class Reference</h1><!-- doxytag: class="Gio::Resolver" --><!-- doxytag: inherits="Glib::Object" -->
34
<p>Asynchronous and cancellable DNS resolver. <a href="#_details">More...</a></p>
36
<p>Inherits <a class="el" href="classGlib_1_1Object.html">Glib::Object</a>.</p>
37
<div class="dynheader">
38
Collaboration diagram for Gio::Resolver:</div>
39
<div class="dynsection">
40
<div class="center"><img src="classGio_1_1Resolver__coll__graph.png" border="0" usemap="#Gio_1_1Resolver_coll__map" alt="Collaboration graph"/></div>
41
<map name="Gio_1_1Resolver_coll__map" id="Gio_1_1Resolver_coll__map">
42
<area shape="rect" href="classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,155,111,181"/><area shape="rect" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces." alt="" coords="5,80,125,107"/></map>
43
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
45
<p><a href="classGio_1_1Resolver-members.html">List of all members.</a></p>
46
<table border="0" cellpadding="0" cellspacing="0">
47
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
48
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#a91fb01b808b2e2d315d9ffc149f1f71e">~Resolver</a> ()</td></tr>
49
<tr><td class="memItemLeft" align="right" valign="top">GResolver* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#a4d323772493d0cf739816c80f08398d2">gobj</a> ()</td></tr>
50
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a4d323772493d0cf739816c80f08398d2"></a><br/></td></tr>
51
<tr><td class="memItemLeft" align="right" valign="top">const GResolver* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#a77d572cc0c4a48c47ec06e9a5f2d02a9">gobj</a> () const </td></tr>
52
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a77d572cc0c4a48c47ec06e9a5f2d02a9"></a><br/></td></tr>
53
<tr><td class="memItemLeft" align="right" valign="top">GResolver* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#ae1cf170f1700985b286238d5f1dcbab2">gobj_copy</a> ()</td></tr>
54
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#ae1cf170f1700985b286238d5f1dcbab2"></a><br/></td></tr>
55
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ListHandle.html">Glib::ListHandle</a>< <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak"/>
56
< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#aea1576fa2684d9bca58a589098a8371e">lookup_by_name</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& hostname, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> >& cancellable)</td></tr>
57
<tr><td class="mdescLeft"> </td><td class="mdescRight">Synchronously resolves <em>hostname</em> to determine its associated IP address(es). <a href="#aea1576fa2684d9bca58a589098a8371e"></a><br/></td></tr>
58
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ListHandle.html">Glib::ListHandle</a>< <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak"/>
59
< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#a4aaf18d0bcc67d6d139d993b140a8b14">lookup_by_name</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& hostname)</td></tr>
60
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#a0130482bb442e3a006e06d57665c2318">lookup_by_name_async</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& hostname, const <a class="el" href="namespaceGio.html#aecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&<a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">slot</a>, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> >& cancellable)</td></tr>
61
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#ae38a0fc714443839c0bb3a0e40dcd082">lookup_by_name_async</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& hostname, const <a class="el" href="namespaceGio.html#aecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&<a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">slot</a>)</td></tr>
62
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ListHandle.html">Glib::ListHandle</a>< <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak"/>
63
< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#afaf6f9f003fd213ebecb893d60f14380">lookup_by_name_finish</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a> >& result)</td></tr>
64
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the result of a call to g_resolver_lookup_by_name_async(). <a href="#afaf6f9f003fd213ebecb893d60f14380"></a><br/></td></tr>
65
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#abb5740225148191d2e93d7a6b12caf23">lookup_by_address</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> >& address, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> >& cancellable)</td></tr>
66
<tr><td class="mdescLeft"> </td><td class="mdescRight">Synchronously reverse-resolves <em>address</em> to determine its associated hostname. <a href="#abb5740225148191d2e93d7a6b12caf23"></a><br/></td></tr>
67
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#a81f793a31c8ddaa2bf26361721c3fd1c">lookup_by_address</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> >& address)</td></tr>
68
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#a3bfd36d312e60b748df35089d5126b4f">lookup_by_address_async</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> >& address, const <a class="el" href="namespaceGio.html#aecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&<a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">slot</a>, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> >& cancellable)</td></tr>
69
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#a91d05a43f8083af54826fcb3303e0eba">lookup_by_address_async</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> >& address, const <a class="el" href="namespaceGio.html#aecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&<a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">slot</a>)</td></tr>
70
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#ae127e4682bfb20ef0b292e7b98460762">lookup_by_address_finish</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a> >& result)</td></tr>
71
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the result of a previous call to g_resolver_lookup_by_address_async(). <a href="#ae127e4682bfb20ef0b292e7b98460762"></a><br/></td></tr>
72
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ListHandle.html">ListHandle_SrvTarget</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#aab5e246c4f14e55e079c8a280dd3de5b">lookup_service</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& service, const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& protocol, const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& domain, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> >& cancellable)</td></tr>
73
<tr><td class="mdescLeft"> </td><td class="mdescRight">Synchronously performs a DNS SRV lookup for the given <em>service</em> and <em>protocol</em> in the given <em>domain</em> and returns an array of <a class="el" href="classGio_1_1SrvTarget.html" title="DNS SRV record target.">SrvTarget</a>. <a href="#aab5e246c4f14e55e079c8a280dd3de5b"></a><br/></td></tr>
74
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ListHandle.html">ListHandle_SrvTarget</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#a3b131a66a7a7bd3e89713384ff2f6be3">lookup_service</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& service, const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& protocol, const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& domain)</td></tr>
75
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#a49d103c02f6e0e8ad5d4e7abb1967ef0">lookup_service_async</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& service, const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& protocol, const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& domain, const <a class="el" href="namespaceGio.html#aecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&<a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">slot</a>, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> >& cancellable)</td></tr>
76
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#a58d46752ddd5305d811df4707c3ce4a7">lookup_service_async</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& service, const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& protocol, const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& domain, const <a class="el" href="namespaceGio.html#aecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&<a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">slot</a>)</td></tr>
77
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ListHandle.html">ListHandle_SrvTarget</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#aae68cb39415c9286474d92c7aeba2e47">lookup_service_finish</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a> >& result)</td></tr>
78
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the result of a previous call to g_resolver_lookup_service_async(). <a href="#aae68cb39415c9286474d92c7aeba2e47"></a><br/></td></tr>
79
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
80
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Resolver.html">Resolver</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#ac822ffe60ab0ce2acfdc85ccb908f6fc">get_default</a> ()</td></tr>
81
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#afbb1fb4f9edb0e553dbb61ca2437601c">set_default</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Resolver.html">Resolver</a> >& resolver)</td></tr>
82
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
83
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
85
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Resolver.html">Gio::Resolver</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Resolver.html#aa710fc39dacfe0e34730487741d84fb9">wrap</a> (GResolver* object, bool take_copy=false)</td></tr>
86
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#aa710fc39dacfe0e34730487741d84fb9"></a><br/></td></tr>
88
<hr/><a name="_details"></a><h2>Detailed Description</h2>
89
<p>Asynchronous and cancellable DNS resolver. </p>
90
<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...">lookup_service()</a>).</p>
91
<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>
92
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000060">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
93
<hr/><h2>Constructor & Destructor Documentation</h2>
94
<a class="anchor" id="a91fb01b808b2e2d315d9ffc149f1f71e"></a><!-- doxytag: member="Gio::Resolver::~Resolver" ref="a91fb01b808b2e2d315d9ffc149f1f71e" args="()" -->
96
<div class="memproto">
97
<table class="memname">
99
<td class="memname">virtual Gio::Resolver::~Resolver </td>
101
<td class="paramname"></td>
102
<td> ) </td>
103
<td><code> [virtual]</code></td>
111
<hr/><h2>Member Function Documentation</h2>
112
<a class="anchor" id="ac822ffe60ab0ce2acfdc85ccb908f6fc"></a><!-- doxytag: member="Gio::Resolver::get_default" ref="ac822ffe60ab0ce2acfdc85ccb908f6fc" args="()" -->
113
<div class="memitem">
114
<div class="memproto">
115
<table class="memname">
117
<td class="memname">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Resolver.html">Resolver</a>> Gio::Resolver::get_default </td>
119
<td class="paramname"></td>
120
<td> ) </td>
121
<td><code> [static]</code></td>
129
<a class="anchor" id="a77d572cc0c4a48c47ec06e9a5f2d02a9"></a><!-- doxytag: member="Gio::Resolver::gobj" ref="a77d572cc0c4a48c47ec06e9a5f2d02a9" args="() const " -->
130
<div class="memitem">
131
<div class="memproto">
132
<table class="memname">
134
<td class="memname">const GResolver* Gio::Resolver::gobj </td>
136
<td class="paramname"></td>
137
<td> ) </td>
138
<td> const<code> [inline]</code></td>
144
<p>Provides access to the underlying C GObject. </p>
146
<p>Reimplemented from <a class="el" href="classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>
150
<a class="anchor" id="a4d323772493d0cf739816c80f08398d2"></a><!-- doxytag: member="Gio::Resolver::gobj" ref="a4d323772493d0cf739816c80f08398d2" args="()" -->
151
<div class="memitem">
152
<div class="memproto">
153
<table class="memname">
155
<td class="memname">GResolver* Gio::Resolver::gobj </td>
157
<td class="paramname"></td>
158
<td> ) </td>
159
<td><code> [inline]</code></td>
165
<p>Provides access to the underlying C GObject. </p>
167
<p>Reimplemented from <a class="el" href="classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>
171
<a class="anchor" id="ae1cf170f1700985b286238d5f1dcbab2"></a><!-- doxytag: member="Gio::Resolver::gobj_copy" ref="ae1cf170f1700985b286238d5f1dcbab2" args="()" -->
172
<div class="memitem">
173
<div class="memproto">
174
<table class="memname">
176
<td class="memname">GResolver* Gio::Resolver::gobj_copy </td>
178
<td class="paramname"></td>
179
<td> ) </td>
186
<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>
190
<a class="anchor" id="a81f793a31c8ddaa2bf26361721c3fd1c"></a><!-- doxytag: member="Gio::Resolver::lookup_by_address" ref="a81f793a31c8ddaa2bf26361721c3fd1c" args="(const Glib::RefPtr< InetAddress > &address)" -->
191
<div class="memitem">
192
<div class="memproto">
193
<table class="memname">
195
<td class="memname"><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> Gio::Resolver::lookup_by_address </td>
197
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> >& </td>
198
<td class="paramname"> <em>address</em></td>
199
<td> ) </td>
208
<a class="anchor" id="abb5740225148191d2e93d7a6b12caf23"></a><!-- doxytag: member="Gio::Resolver::lookup_by_address" ref="abb5740225148191d2e93d7a6b12caf23" args="(const Glib::RefPtr< InetAddress > &address, const Glib::RefPtr< Cancellable > &cancellable)" -->
209
<div class="memitem">
210
<div class="memproto">
211
<table class="memname">
213
<td class="memname"><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> Gio::Resolver::lookup_by_address </td>
215
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> >& </td>
216
<td class="paramname"> <em>address</em>, </td>
219
<td class="paramkey"></td>
221
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> >& </td>
222
<td class="paramname"> <em>cancellable</em></td><td> </td>
227
<td></td><td></td><td></td>
233
<p>Synchronously reverse-resolves <em>address</em> to determine its associated hostname. </p>
234
<p>If the DNS resolution fails, <em>error</em> (if non-<code>0</code>) will be set to a value from ResolverError.</p>
235
<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>
236
<dl><dt><b>Parameters:</b></dt><dd>
237
<table border="0" cellspacing="2" cellpadding="0">
238
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>The address to reverse-resolve. </td></tr>
239
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a>, or <code>0</code>. </td></tr>
243
<dl class="return"><dt><b>Returns:</b></dt><dd>A hostname (either ASCII-only, or in ASCII-encoded form), or <code>0</code> on error.</dd></dl>
244
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000063">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
248
<a class="anchor" id="a91d05a43f8083af54826fcb3303e0eba"></a><!-- doxytag: member="Gio::Resolver::lookup_by_address_async" ref="a91d05a43f8083af54826fcb3303e0eba" args="(const Glib::RefPtr< InetAddress > &address, const SlotAsyncReady &slot)" -->
249
<div class="memitem">
250
<div class="memproto">
251
<table class="memname">
253
<td class="memname">void Gio::Resolver::lookup_by_address_async </td>
255
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> >& </td>
256
<td class="paramname"> <em>address</em>, </td>
259
<td class="paramkey"></td>
261
<td class="paramtype">const <a class="el" href="namespaceGio.html#aecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
262
<td class="paramname"> <em>slot</em></td><td> </td>
267
<td></td><td></td><td></td>
275
<a class="anchor" id="a3bfd36d312e60b748df35089d5126b4f"></a><!-- doxytag: member="Gio::Resolver::lookup_by_address_async" ref="a3bfd36d312e60b748df35089d5126b4f" args="(const Glib::RefPtr< InetAddress > &address, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable)" -->
276
<div class="memitem">
277
<div class="memproto">
278
<table class="memname">
280
<td class="memname">void Gio::Resolver::lookup_by_address_async </td>
282
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1InetAddress.html">InetAddress</a> >& </td>
283
<td class="paramname"> <em>address</em>, </td>
286
<td class="paramkey"></td>
288
<td class="paramtype">const <a class="el" href="namespaceGio.html#aecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
289
<td class="paramname"> <em>slot</em>, </td>
292
<td class="paramkey"></td>
294
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> >& </td>
295
<td class="paramname"> <em>cancellable</em></td><td> </td>
300
<td></td><td></td><td></td>
308
<a class="anchor" id="ae127e4682bfb20ef0b292e7b98460762"></a><!-- doxytag: member="Gio::Resolver::lookup_by_address_finish" ref="ae127e4682bfb20ef0b292e7b98460762" args="(const Glib::RefPtr< AsyncResult > &result)" -->
309
<div class="memitem">
310
<div class="memproto">
311
<table class="memname">
313
<td class="memname"><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> Gio::Resolver::lookup_by_address_finish </td>
315
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a> >& </td>
316
<td class="paramname"> <em>result</em></td>
317
<td> ) </td>
324
<p>Retrieves the result of a previous call to g_resolver_lookup_by_address_async(). </p>
325
<p>If the DNS resolution failed, <em>error</em> (if non-<code>0</code>) will be set to a value from ResolverError. If the operation was cancelled, <em>error</em> will be set to IO_ERROR_CANCELLED. </p>
326
<dl><dt><b>Parameters:</b></dt><dd>
327
<table border="0" cellspacing="2" cellpadding="0">
328
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>The result passed to your AsyncReadyCallback. </td></tr>
332
<dl class="return"><dt><b>Returns:</b></dt><dd>A hostname (either ASCII-only, or in ASCII-encoded form), or <code>0</code> on error.</dd></dl>
333
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000064">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
337
<a class="anchor" id="a4aaf18d0bcc67d6d139d993b140a8b14"></a><!-- doxytag: member="Gio::Resolver::lookup_by_name" ref="a4aaf18d0bcc67d6d139d993b140a8b14" args="(const Glib::ustring &hostname)" -->
338
<div class="memitem">
339
<div class="memproto">
340
<table class="memname">
342
<td class="memname"><a class="el" href="classGlib_1_1ListHandle.html">Glib::ListHandle</a>< <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1InetAddress.html">InetAddress</a>> > Gio::Resolver::lookup_by_name </td>
344
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
345
<td class="paramname"> <em>hostname</em></td>
346
<td> ) </td>
355
<a class="anchor" id="aea1576fa2684d9bca58a589098a8371e"></a><!-- doxytag: member="Gio::Resolver::lookup_by_name" ref="aea1576fa2684d9bca58a589098a8371e" args="(const Glib::ustring &hostname, const Glib::RefPtr< Cancellable > &cancellable)" -->
356
<div class="memitem">
357
<div class="memproto">
358
<table class="memname">
360
<td class="memname"><a class="el" href="classGlib_1_1ListHandle.html">Glib::ListHandle</a>< <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1InetAddress.html">InetAddress</a>> > Gio::Resolver::lookup_by_name </td>
362
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
363
<td class="paramname"> <em>hostname</em>, </td>
366
<td class="paramkey"></td>
368
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> >& </td>
369
<td class="paramname"> <em>cancellable</em></td><td> </td>
374
<td></td><td></td><td></td>
380
<p>Synchronously resolves <em>hostname</em> to determine its associated IP address(es). </p>
381
<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>
382
<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>
383
<p>If the DNS resolution fails, <em>error</em> (if non-<code>0</code>) will be set to a value from ResolverError.</p>
384
<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>
385
<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>
386
<dl><dt><b>Parameters:</b></dt><dd>
387
<table border="0" cellspacing="2" cellpadding="0">
388
<tr><td valign="top"></td><td valign="top"><em>hostname</em> </td><td>The hostname to look up. </td></tr>
389
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a>, or <code>0</code>. </td></tr>
393
<dl class="return"><dt><b>Returns:</b></dt><dd>A List of <a class="el" href="classGio_1_1InetAddress.html" title="An IPv4/IPv6 address.">InetAddress</a>, or <code>0</code> on error. You must unref each of the addresses and free the list when you are done with it. (You can use g_resolver_free_addresses() to do this.)</dd></dl>
394
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000061">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
398
<a class="anchor" id="ae38a0fc714443839c0bb3a0e40dcd082"></a><!-- doxytag: member="Gio::Resolver::lookup_by_name_async" ref="ae38a0fc714443839c0bb3a0e40dcd082" args="(const Glib::ustring &hostname, const SlotAsyncReady &slot)" -->
399
<div class="memitem">
400
<div class="memproto">
401
<table class="memname">
403
<td class="memname">void Gio::Resolver::lookup_by_name_async </td>
405
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
406
<td class="paramname"> <em>hostname</em>, </td>
409
<td class="paramkey"></td>
411
<td class="paramtype">const <a class="el" href="namespaceGio.html#aecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
412
<td class="paramname"> <em>slot</em></td><td> </td>
417
<td></td><td></td><td></td>
425
<a class="anchor" id="a0130482bb442e3a006e06d57665c2318"></a><!-- doxytag: member="Gio::Resolver::lookup_by_name_async" ref="a0130482bb442e3a006e06d57665c2318" args="(const Glib::ustring &hostname, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable)" -->
426
<div class="memitem">
427
<div class="memproto">
428
<table class="memname">
430
<td class="memname">void Gio::Resolver::lookup_by_name_async </td>
432
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
433
<td class="paramname"> <em>hostname</em>, </td>
436
<td class="paramkey"></td>
438
<td class="paramtype">const <a class="el" href="namespaceGio.html#aecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
439
<td class="paramname"> <em>slot</em>, </td>
442
<td class="paramkey"></td>
444
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> >& </td>
445
<td class="paramname"> <em>cancellable</em></td><td> </td>
450
<td></td><td></td><td></td>
458
<a class="anchor" id="afaf6f9f003fd213ebecb893d60f14380"></a><!-- doxytag: member="Gio::Resolver::lookup_by_name_finish" ref="afaf6f9f003fd213ebecb893d60f14380" args="(const Glib::RefPtr< AsyncResult > &result)" -->
459
<div class="memitem">
460
<div class="memproto">
461
<table class="memname">
463
<td class="memname"><a class="el" href="classGlib_1_1ListHandle.html">Glib::ListHandle</a>< <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1InetAddress.html">InetAddress</a>> > Gio::Resolver::lookup_by_name_finish </td>
465
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a> >& </td>
466
<td class="paramname"> <em>result</em></td>
467
<td> ) </td>
474
<p>Retrieves the result of a call to g_resolver_lookup_by_name_async(). </p>
475
<p>If the DNS resolution failed, <em>error</em> (if non-<code>0</code>) will be set to a value from ResolverError. If the operation was cancelled, <em>error</em> will be set to IO_ERROR_CANCELLED. </p>
476
<dl><dt><b>Parameters:</b></dt><dd>
477
<table border="0" cellspacing="2" cellpadding="0">
478
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>The result passed to your AsyncReadyCallback. </td></tr>
482
<dl class="return"><dt><b>Returns:</b></dt><dd>A List of <a class="el" href="classGio_1_1InetAddress.html" title="An IPv4/IPv6 address.">InetAddress</a>, or <code>0</code> on error. See g_resolver_lookup_by_name() for more details.</dd></dl>
483
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000062">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
487
<a class="anchor" id="a3b131a66a7a7bd3e89713384ff2f6be3"></a><!-- doxytag: member="Gio::Resolver::lookup_service" ref="a3b131a66a7a7bd3e89713384ff2f6be3" args="(const Glib::ustring &service, const Glib::ustring &protocol, const Glib::ustring &domain)" -->
488
<div class="memitem">
489
<div class="memproto">
490
<table class="memname">
492
<td class="memname"><a class="el" href="classGlib_1_1ListHandle.html">ListHandle_SrvTarget</a> Gio::Resolver::lookup_service </td>
494
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
495
<td class="paramname"> <em>service</em>, </td>
498
<td class="paramkey"></td>
500
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
501
<td class="paramname"> <em>protocol</em>, </td>
504
<td class="paramkey"></td>
506
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
507
<td class="paramname"> <em>domain</em></td><td> </td>
512
<td></td><td></td><td></td>
520
<a class="anchor" id="aab5e246c4f14e55e079c8a280dd3de5b"></a><!-- doxytag: member="Gio::Resolver::lookup_service" ref="aab5e246c4f14e55e079c8a280dd3de5b" args="(const Glib::ustring &service, const Glib::ustring &protocol, const Glib::ustring &domain, const Glib::RefPtr< Cancellable > &cancellable)" -->
521
<div class="memitem">
522
<div class="memproto">
523
<table class="memname">
525
<td class="memname"><a class="el" href="classGlib_1_1ListHandle.html">ListHandle_SrvTarget</a> Gio::Resolver::lookup_service </td>
527
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
528
<td class="paramname"> <em>service</em>, </td>
531
<td class="paramkey"></td>
533
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
534
<td class="paramname"> <em>protocol</em>, </td>
537
<td class="paramkey"></td>
539
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
540
<td class="paramname"> <em>domain</em>, </td>
543
<td class="paramkey"></td>
545
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> >& </td>
546
<td class="paramname"> <em>cancellable</em></td><td> </td>
551
<td></td><td></td><td></td>
557
<p>Synchronously performs a DNS SRV lookup for the given <em>service</em> and <em>protocol</em> in the given <em>domain</em> and returns an array of <a class="el" href="classGio_1_1SrvTarget.html" title="DNS SRV record target.">SrvTarget</a>. </p>
558
<p><em>domain</em> may be an ASCII-only or UTF-8 hostname. Note also that the <em>service</em> and <em>protocol</em> arguments <emphasis>do not</emphasis> include the leading underscore that appears in the actual DNS entry.</p>
559
<p>On success, g_resolver_lookup_service() will return a List of <a class="el" href="classGio_1_1SrvTarget.html" title="DNS SRV record target.">SrvTarget</a>, sorted in order of preference. (That is, you should attempt to connect to the first target first, then the second if the first fails, etc.)</p>
560
<p>If the DNS resolution fails, <em>error</em> (if non-<code>0</code>) will be set to a value from ResolverError.</p>
561
<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>
562
<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>
563
<dl><dt><b>Parameters:</b></dt><dd>
564
<table border="0" cellspacing="2" cellpadding="0">
565
<tr><td valign="top"></td><td valign="top"><em>service</em> </td><td>The service type to look up (eg, "ldap"). </td></tr>
566
<tr><td valign="top"></td><td valign="top"><em>protocol</em> </td><td>The networking protocol to use for <em>service</em> (eg, "tcp"). </td></tr>
567
<tr><td valign="top"></td><td valign="top"><em>domain</em> </td><td>The DNS domain to look up the service in. </td></tr>
568
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a>, or <code>0</code>. </td></tr>
572
<dl class="return"><dt><b>Returns:</b></dt><dd>A List of <a class="el" href="classGio_1_1SrvTarget.html" title="DNS SRV record target.">SrvTarget</a>, or <code>0</code> on error. You must free each of the targets and the list when you are done with it. (You can use g_resolver_free_targets() to do this.)</dd></dl>
573
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000065">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
577
<a class="anchor" id="a58d46752ddd5305d811df4707c3ce4a7"></a><!-- doxytag: member="Gio::Resolver::lookup_service_async" ref="a58d46752ddd5305d811df4707c3ce4a7" args="(const Glib::ustring &service, const Glib::ustring &protocol, const Glib::ustring &domain, const SlotAsyncReady &slot)" -->
578
<div class="memitem">
579
<div class="memproto">
580
<table class="memname">
582
<td class="memname">void Gio::Resolver::lookup_service_async </td>
584
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
585
<td class="paramname"> <em>service</em>, </td>
588
<td class="paramkey"></td>
590
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
591
<td class="paramname"> <em>protocol</em>, </td>
594
<td class="paramkey"></td>
596
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
597
<td class="paramname"> <em>domain</em>, </td>
600
<td class="paramkey"></td>
602
<td class="paramtype">const <a class="el" href="namespaceGio.html#aecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
603
<td class="paramname"> <em>slot</em></td><td> </td>
608
<td></td><td></td><td></td>
616
<a class="anchor" id="a49d103c02f6e0e8ad5d4e7abb1967ef0"></a><!-- doxytag: member="Gio::Resolver::lookup_service_async" ref="a49d103c02f6e0e8ad5d4e7abb1967ef0" args="(const Glib::ustring &service, const Glib::ustring &protocol, const Glib::ustring &domain, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable)" -->
617
<div class="memitem">
618
<div class="memproto">
619
<table class="memname">
621
<td class="memname">void Gio::Resolver::lookup_service_async </td>
623
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
624
<td class="paramname"> <em>service</em>, </td>
627
<td class="paramkey"></td>
629
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
630
<td class="paramname"> <em>protocol</em>, </td>
633
<td class="paramkey"></td>
635
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
636
<td class="paramname"> <em>domain</em>, </td>
639
<td class="paramkey"></td>
641
<td class="paramtype">const <a class="el" href="namespaceGio.html#aecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
642
<td class="paramname"> <em>slot</em>, </td>
645
<td class="paramkey"></td>
647
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Cancellable.html">Cancellable</a> >& </td>
648
<td class="paramname"> <em>cancellable</em></td><td> </td>
653
<td></td><td></td><td></td>
661
<a class="anchor" id="aae68cb39415c9286474d92c7aeba2e47"></a><!-- doxytag: member="Gio::Resolver::lookup_service_finish" ref="aae68cb39415c9286474d92c7aeba2e47" args="(const Glib::RefPtr< AsyncResult > &result)" -->
662
<div class="memitem">
663
<div class="memproto">
664
<table class="memname">
666
<td class="memname"><a class="el" href="classGlib_1_1ListHandle.html">ListHandle_SrvTarget</a> Gio::Resolver::lookup_service_finish </td>
668
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a> >& </td>
669
<td class="paramname"> <em>result</em></td>
670
<td> ) </td>
677
<p>Retrieves the result of a previous call to g_resolver_lookup_service_async(). </p>
678
<p>If the DNS resolution failed, <em>error</em> (if non-<code>0</code>) will be set to a value from ResolverError. If the operation was cancelled, <em>error</em> will be set to IO_ERROR_CANCELLED. </p>
679
<dl><dt><b>Parameters:</b></dt><dd>
680
<table border="0" cellspacing="2" cellpadding="0">
681
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>The result passed to your AsyncReadyCallback. </td></tr>
685
<dl class="return"><dt><b>Returns:</b></dt><dd>A List of <a class="el" href="classGio_1_1SrvTarget.html" title="DNS SRV record target.">SrvTarget</a>, or <code>0</code> on error. See g_resolver_lookup_service() for more details.</dd></dl>
686
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000066">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
690
<a class="anchor" id="afbb1fb4f9edb0e553dbb61ca2437601c"></a><!-- doxytag: member="Gio::Resolver::set_default" ref="afbb1fb4f9edb0e553dbb61ca2437601c" args="(const Glib::RefPtr< Resolver > &resolver)" -->
691
<div class="memitem">
692
<div class="memproto">
693
<table class="memname">
695
<td class="memname">static void Gio::Resolver::set_default </td>
697
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Resolver.html">Resolver</a> >& </td>
698
<td class="paramname"> <em>resolver</em></td>
699
<td> ) </td>
700
<td><code> [static]</code></td>
708
<hr/><h2>Friends And Related Function Documentation</h2>
709
<a class="anchor" id="aa710fc39dacfe0e34730487741d84fb9"></a><!-- doxytag: member="Gio::Resolver::wrap" ref="aa710fc39dacfe0e34730487741d84fb9" args="(GResolver *object, bool take_copy=false)" -->
710
<div class="memitem">
711
<div class="memproto">
712
<table class="memname">
714
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Resolver.html">Gio::Resolver</a> > wrap </td>
716
<td class="paramtype">GResolver * </td>
717
<td class="paramname"> <em>object</em>, </td>
720
<td class="paramkey"></td>
722
<td class="paramtype">bool </td>
723
<td class="paramname"> <em>take_copy</em> = <code>false</code></td><td> </td>
728
<td></td><td></td><td><code> [related]</code></td>
734
<p>A <a class="el" href="namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
735
<dl><dt><b>Parameters:</b></dt><dd>
736
<table border="0" cellspacing="2" cellpadding="0">
737
<tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>The C instance. </td></tr>
738
<tr><td valign="top"></td><td valign="top"><em>take_copy</em> </td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
742
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
746
<hr/>The documentation for this class was generated from the following file:<ul>
747
<li>giomm/resolver.h</li>
750
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Sep 1 23:21:18 2009 for glibmm by 
751
<a href="http://www.doxygen.org/index.html">
752
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>