forked from jbagg/QtZeroConf
Add txt records to service publication.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user