Add publishExists() and browserExists() api calls.

This commit is contained in:
Jonathan Bagg
2017-10-09 21:25:58 -04:00
parent 2622544691
commit 8a9936a4a5
3 changed files with 48 additions and 0 deletions

View File

@@ -271,6 +271,14 @@ void QZeroConf::stopServicePublish(void)
}
}
bool QZeroConf::publishExists(void)
{
if (pri->group)
return true;
else
return false;
}
// http://www.zeroconf.org/rendezvous/txtrecords.html
void QZeroConf::addServiceTxtRecord(QString nameOnly)
@@ -314,3 +322,11 @@ void QZeroConf::stopBrowser(void)
{
pri->broswerCleanUp();
}
bool QZeroConf::browserExists(void)
{
if (pri->browser)
return true;
else
return false;
}