59 QMap<QByteArray,QByteArray> result;
65 m_serviceLock(QMutex::Recursive),
67 m_discoveredLock(QMutex::Recursive),
68 m_discoveredServices()
77 const QMap<QByteArray, QByteArray> &, quint32)
95 void TorcBonjour::HostLookup(
const QHostInfo &)
99 void TorcBonjour::SuspendPriv(
bool)
void Deregister(quint32 Reference)
Cancel a Bonjour service registration or browse request.
static QByteArray MapToTxtRecord(const QMap< QByteArray, QByteArray > &Map)
Serialises a QMap into a Bonjour Txt record format.
void socketReadyRead(int Socket)
Read from a socket.
quint32 Browse(const QByteArray &Type, quint32 Reference=0)
Search for a service advertised via Bonjour.
QMutex * gBonjourLock
Lock around access to gBonjour.
static QMap< QByteArray, QByteArray > TxtRecordToMap(const QByteArray &TxtRecord)
Extracts a QMap from a properly formatted Bonjour Txt record.
static void TearDown(void)
Destroys the global TorcBonjour singleton.
quint32 Register(quint16 Port, const QByteArray &Type, const QByteArray &Name, const QMap< QByteArray, QByteArray > &TxtRecords, quint32 Reference=0)
TorcBonjour * gBonjour
Global TorcBonjour singleton.
static TorcBonjour * Instance(void)
Returns the global TorcBonjour singleton.
Advertises and searches for services via Bonjour (aka Zero Configuration Networking/Avahi) ...
static void Suspend(bool Suspend)
Suspends all Bonjour activities.