32
33
g_resolver_set_default(Glib::unwrap(resolver));
36
#ifdef GLIBMM_EXCEPTIONS_ENABLED
37
Glib::ListHandle< Glib::RefPtr<InetAddress> > Resolver::lookup_by_name(const Glib::ustring& hostname)
39
Glib::ListHandle< Glib::RefPtr<InetAddress> > Resolver::lookup_by_name(const Glib::ustring& hostname, std::auto_ptr<Glib::Error>& error)
40
#endif //GLIBMM_EXCEPTIONS_ENABLED
43
Glib::ListHandle< Glib::RefPtr<InetAddress> > retvalue = Glib::ListHandle< Glib::RefPtr<InetAddress> >(g_resolver_lookup_by_name(gobj(), hostname.c_str(), 0, &(gerror)), Glib::OWNERSHIP_SHALLOW);
44
#ifdef GLIBMM_EXCEPTIONS_ENABLED
46
::Glib::Error::throw_exception(gerror);
49
error = ::Glib::Error::throw_exception(gerror);
50
#endif //GLIBMM_EXCEPTIONS_ENABLED
56
#ifdef GLIBMM_EXCEPTIONS_ENABLED
57
Glib::ustring Resolver::lookup_by_address(const Glib::RefPtr<InetAddress>& address)
59
Glib::ustring Resolver::lookup_by_address(const Glib::RefPtr<InetAddress>& address, std::auto_ptr<Glib::Error>& error)
60
#endif //GLIBMM_EXCEPTIONS_ENABLED
63
Glib::ustring retvalue = Glib::convert_return_gchar_ptr_to_ustring(g_resolver_lookup_by_address(gobj(), const_cast<GInetAddress*>(Glib::unwrap(address)), 0, &(gerror)));
64
#ifdef GLIBMM_EXCEPTIONS_ENABLED
66
::Glib::Error::throw_exception(gerror);
69
error = ::Glib::Error::throw_exception(gerror);
70
#endif //GLIBMM_EXCEPTIONS_ENABLED
76
#ifdef GLIBMM_EXCEPTIONS_ENABLED
77
ListHandle_SrvTarget Resolver::lookup_service(const Glib::ustring& service, const Glib::ustring& protocol, const Glib::ustring& domain)
79
ListHandle_SrvTarget Resolver::lookup_service(const Glib::ustring& service, const Glib::ustring& protocol, const Glib::ustring& domain, std::auto_ptr<Glib::Error>& error)
80
#endif //GLIBMM_EXCEPTIONS_ENABLED
83
ListHandle_SrvTarget retvalue = ListHandle_SrvTarget(g_resolver_lookup_service(gobj(), service.c_str(), protocol.c_str(), domain.c_str(), 0, &(gerror)), Glib::OWNERSHIP_SHALLOW);
84
#ifdef GLIBMM_EXCEPTIONS_ENABLED
86
::Glib::Error::throw_exception(gerror);
89
error = ::Glib::Error::throw_exception(gerror);
90
#endif //GLIBMM_EXCEPTIONS_ENABLED
97
Resolver::lookup_by_name_async(const Glib::ustring& hostname,
98
const SlotAsyncReady& slot,
99
const Glib::RefPtr<Cancellable>& cancellable)
101
SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
103
g_resolver_lookup_by_name_async (gobj(),
106
&SignalProxy_async_callback,
111
Resolver::lookup_by_name_async(const Glib::ustring& hostname,
112
const SlotAsyncReady& slot)
114
SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
116
g_resolver_lookup_by_name_async (gobj(),
119
&SignalProxy_async_callback,
124
Resolver::lookup_by_address_async(const Glib::RefPtr<InetAddress>& address,
125
const SlotAsyncReady& slot,
126
const Glib::RefPtr<Cancellable>& cancellable)
128
SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
130
g_resolver_lookup_by_address_async (gobj(),
133
&SignalProxy_async_callback,
138
Resolver::lookup_by_address_async(const Glib::RefPtr<InetAddress>& address,
139
const SlotAsyncReady& slot)
141
SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
143
g_resolver_lookup_by_address_async (gobj(),
146
&SignalProxy_async_callback,
151
Resolver::lookup_service_async(const Glib::ustring& service,
152
const Glib::ustring& protocol,
153
const Glib::ustring& domain,
154
const SlotAsyncReady& slot,
155
const Glib::RefPtr<Cancellable>& cancellable)
157
SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
159
g_resolver_lookup_service_async (gobj(),
164
&SignalProxy_async_callback,
169
Resolver::lookup_service_async(const Glib::ustring& service,
170
const Glib::ustring& protocol,
171
const Glib::ustring& domain,
172
const SlotAsyncReady& slot)
174
SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
176
g_resolver_lookup_service_async (gobj(),
181
&SignalProxy_async_callback,