Add txt records to service publication.

This commit is contained in:
Jonathan Bagg
2017-03-10 20:08:54 -05:00
parent acaa07db15
commit e4e4308942
6 changed files with 77 additions and 5 deletions
+3
View File
@@ -105,6 +105,9 @@ void mainWindow::startPublish()
if (publishEnabled)
return;
publishEnabled = 1;
zeroConf.addServiceTxtRecord("Qt", "the best!");
zeroConf.addServiceTxtRecord("ZeroConf is nice too");
zeroConf.startServicePublish(buildName().toUtf8(), "_qtzeroconf_test._tcp", "local", 11437);
}