18#ifndef _LIBGNOMEVFSMM_DNS_SD_H
19#define _LIBGNOMEVFSMM_DNS_SD_H
24#include <libgnomevfs/gnome-vfs-dns-sd.h>
56typedef sigc::slot<void, BrowseHandle*, GnomeVFSDNSSDServiceStatus, const Service&>
BrowseSlot;
59#ifdef GLIBMM_EXCEPTIONS_ENABLED
62BrowseHandle*
browse(
const Glib::ustring& domain,
const Glib::ustring& type,
const BrowseSlot& slot, std::auto_ptr<Gnome::Vfs::exception>& error);
65#ifdef GLIBMM_EXCEPTIONS_ENABLED
81#ifdef GLIBMM_EXCEPTIONS_ENABLED
85ResolveHandle*
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);
89#ifdef GLIBMM_EXCEPTIONS_ENABLED
99#ifdef GLIBMM_EXCEPTIONS_ENABLED
100void browse_sync(
const Glib::ustring& domain,
const Glib::ustring& type,
int timeout_msec, std::list<Service>& services);
102void browse_sync(
const Glib::ustring& domain,
const Glib::ustring& type,
int timeout_msec, std::list<Service>& services, std::auto_ptr<Gnome::Vfs::exception>& error);
106#ifdef GLIBMM_EXCEPTIONS_ENABLED
107void 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);
110void 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);
116#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::ustring type
Definition: dns-sd.h:49
Glib::ustring domain
Definition: dns-sd.h:50
Glib::ustring name
Definition: dns-sd.h:48
ListHandleStrings get_default_browse_domains()
struct GnomeVFSDNSSDResolveHandle ResolveHandle
Definition: dns-sd.h:42
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)
void cancel_resolve(ResolveHandle *handle)
void browse_sync(const Glib::ustring &domain, const Glib::ustring &type, int timeout_msec, std::list< Service > &services)
ResolveHandle * resolve(const Glib::ustring &name, const Glib::ustring &type, const Glib::ustring &domain, int timeout, const ResolveSlot &slot)
std::map< Glib::ustring, Glib::ustring > ServiceOptions
Definition: dns-sd.h:71
Glib::ListHandle< Service > ListHandleServices
Definition: dns-sd.h:96
struct GnomeVFSDNSSDBrowseHandle BrowseHandle
Definition: dns-sd.h:41
BrowseHandle * browse(const Glib::ustring &domain, const Glib::ustring &type, const BrowseSlot &slot)
ListHandleStrings list_browse_domains_sync(const Glib::ustring &domain, int timeout_msec)
void stop_browse(BrowseHandle *handle)
sigc::slot< void, BrowseHandle *, GnomeVFSDNSSDServiceStatus, const Service & > BrowseSlot
For instance, void on_browse(BrowseHandle* handle, GnomeVFSDNSSDServiceStatus status,...
Definition: dns-sd.h:56
Glib::ListHandle< Glib::ustring > ListHandleStrings
Definition: dns-sd.h:114
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