Go to the documentation of this file.
18 #ifndef _LIBGNOMEVFSMM_DNS_SD_H
19 #define _LIBGNOMEVFSMM_DNS_SD_H
24 #include <libgnomevfs/gnome-vfs-dns-sd.h>
56 typedef sigc::slot<void, BrowseHandle*, GnomeVFSDNSSDServiceStatus, const Service&>
BrowseSlot;
59 #ifdef GLIBMM_EXCEPTIONS_ENABLED
62 BrowseHandle*
browse(
const Glib::ustring& domain,
const Glib::ustring& type,
const BrowseSlot& slot, std::auto_ptr<Gnome::Vfs::exception>& error);
63 #endif //GLIBMM_EXCEPTIONS_ENABLED
65 #ifdef GLIBMM_EXCEPTIONS_ENABLED
69 #endif //GLIBMM_EXCEPTIONS_ENABLED
81 #ifdef GLIBMM_EXCEPTIONS_ENABLED
85 ResolveHandle*
resolve(
const Glib::ustring& name,
const Glib::ustring& type,
const Glib::ustring& domain,
86 int timeout,
const ResolveSlot& slot, std::auto_ptr<Gnome::Vfs::exception>& error);
87 #endif //GLIBMM_EXCEPTIONS_ENABLED
89 #ifdef GLIBMM_EXCEPTIONS_ENABLED
93 #endif //GLIBMM_EXCEPTIONS_ENABLED
99 #ifdef GLIBMM_EXCEPTIONS_ENABLED
100 void browse_sync(
const Glib::ustring& domain,
const Glib::ustring& type,
int timeout_msec, std::list<Service>& services);
102 void browse_sync(
const Glib::ustring& domain,
const Glib::ustring& type,
int timeout_msec, std::list<Service>& services, std::auto_ptr<Gnome::Vfs::exception>& error);
103 #endif //GLIBMM_EXCEPTIONS_ENABLED
106 #ifdef GLIBMM_EXCEPTIONS_ENABLED
107 void resolve_sync(
const Glib::ustring& name,
const Glib::ustring& type,
const Glib::ustring& domain,
108 int timeout_msec, Glib::ustring& host,
int& port,
ServiceOptions& options);
110 void resolve_sync(
const Glib::ustring& name,
const Glib::ustring& type,
const Glib::ustring& domain,
111 int timeout_msec, Glib::ustring& host,
int& port,
ServiceOptions& options, std::auto_ptr<Gnome::Vfs::exception>& error);
112 #endif //GLIBMM_EXCEPTIONS_ENABLED
116 #ifdef GLIBMM_EXCEPTIONS_ENABLED
120 #endif //GLIBMM_EXCEPTIONS_ENABLED
sigc::slot< void, BrowseHandle *, GnomeVFSDNSSDServiceStatus, const Service & > BrowseSlot
For instance, void on_browse(BrowseHandle* handle, GnomeVFSDNSSDServiceStatus status,...
Definition: dns-sd.h:56
Glib::ListHandle< Service > ListHandleServices
Definition: dns-sd.h:96
sigc::slot< void, ResolveHandle *, Result, const Service &, const Glib::ustring &, int, const ServiceOptions & > ResolveSlot
For instance, void on_resolve(ResolveHandle* handle, Result result, const Service& service,...
Definition: dns-sd.h:78
struct GnomeVFSDNSSDResolveHandle ResolveHandle
Definition: dns-sd.h:42
ListHandleStrings list_browse_domains_sync(const Glib::ustring &domain, int timeout_msec)
void stop_browse(BrowseHandle *handle)
Glib::ustring domain
Definition: dns-sd.h:50
Definition: exception.h:34
void cancel_resolve(ResolveHandle *handle)
std::map< Glib::ustring, Glib::ustring > ServiceOptions
Definition: dns-sd.h:71
void browse_sync(const Glib::ustring &domain, const Glib::ustring &type, int timeout_msec, std::list< Service > &services)
BrowseHandle * browse(const Glib::ustring &domain, const Glib::ustring &type, const BrowseSlot &slot)
ResolveHandle * resolve(const Glib::ustring &name, const Glib::ustring &type, const Glib::ustring &domain, int timeout, const ResolveSlot &slot)
void resolve_sync(const Glib::ustring &name, const Glib::ustring &type, const Glib::ustring &domain, int timeout_msec, Glib::ustring &host, int &port, ServiceOptions &options)
Glib::ustring type
Definition: dns-sd.h:49
Glib::ListHandle< Glib::ustring > ListHandleStrings
Definition: dns-sd.h:114
struct GnomeVFSDNSSDBrowseHandle BrowseHandle
Definition: dns-sd.h:41
Glib::ustring name
Definition: dns-sd.h:48
ListHandleStrings get_default_browse_domains()