File Information
Library: DNSSD/Avahi
Package: Implementation
Header: Poco/DNSSD/Avahi/AvahiResponderImpl.h
Description
The DNSSDResponderImpl implementation for Avahi.
Inheritance
Direct Base Classes: Poco::DNSSD::DNSSDResponderImpl, Poco::Runnable
All Base Classes: Poco::DNSSD::DNSSDResponderImpl, Poco::Runnable
Member Summary
Member Functions: addRecord, browser, createTXTRecord, describeError, lock, onClientStateChange, onGroupStateChange, registerService, removeRecord, reregisterServices, run, setupEntryGroup, start, stop, unlock, unregisterService, updateRecord
Inherited Functions: addRecord, browser, registerService, removeRecord, run, start, stop, unregisterService, updateRecord
Nested Classes
struct RecordInfo
struct ServiceInfo
Types
RecordVec
typedef std::vector < RecordInfo > RecordVec;
ScopedLock
typedef Poco::ScopedLock < AvahiResponderImpl > ScopedLock;
ServiceMap
typedef std::map < ServiceHandle, ServiceInfo > ServiceMap;
Enumerations
Anonymous
START_TIMEOUT = 5000
Constructors
AvahiResponderImpl
AvahiResponderImpl(
Poco::DNSSD::DNSSDResponder & owner
);
Creates the AvahiResponder, using the given owner.
Destructor
~AvahiResponderImpl
Destroys the AvahiResponderImpl.
Member Functions
addRecord
RecordHandle addRecord(
ServiceHandle serviceHandle,
const Record & record
);
browser
DNSSDBrowser & browser();
describeError
static const char * describeError(
int code
);
Returns a human-readable string describing the error.
lock
void lock();
onClientStateChange
void onClientStateChange(
AvahiClientState state
);
onGroupStateChange
void onGroupStateChange(
AvahiEntryGroup * avahiGroup,
AvahiEntryGroupState state
);
registerService
ServiceHandle registerService(
const Service & service,
int options
);
removeRecord
void removeRecord(
ServiceHandle serviceHandle,
RecordHandle & recordHandle
);
run
void run();
See also: Poco::Runnable::run()
start
void start();
See also: Poco::DNSSD::DNSSDResponderImpl::start()
stop
void stop();
See also: Poco::DNSSD::DNSSDResponderImpl::stop()
unlock
void unlock();
unregisterService
void unregisterService(
ServiceHandle & serviceHandle
);
updateRecord
void updateRecord(
ServiceHandle serviceHandle,
RecordHandle recordHandle,
const Record & record
);
createTXTRecord
static AvahiStringList * createTXTRecord(
const Service::Properties & properties
);
reregisterServices
void reregisterServices();
setupEntryGroup
void setupEntryGroup(
AvahiEntryGroup * avahiGroup,
const Service & service,
const RecordVec & records,
int options,
bool rename
);