From 7e94a5f75a8896a6a540bfe0b24fabff6ddc5234 Mon Sep 17 00:00:00 2001 From: Jonathan Bagg Date: Fri, 10 Mar 2017 21:01:23 -0500 Subject: [PATCH] add service txt record info to README.md --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index efabc2b..8d70f83 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,17 @@ QZeroConf zeroConf; ``` It is recommend, but not required, that you connect a slot to QZeroConf's error() signal and servicePublished() signal. -3) Call startServicePublish() with the name, type, domain and port of your service. +3) If you want to add one or more txt records to the service, call +```c++ +zeroConf.addServiceTxtRecord("name", "value"); +``` +or +```c++ +zeroConf.addServiceTxtRecord("nameOnly"); +``` +before calling startServicePublish() + +4) Call startServicePublish() with the name, type, domain and port of your service. ```c++ zeroConf.startServicePublish("Test", "_test._tcp", "local", 12345);