+ /**
+ * Construct a network service.
+ * \param address The address of the host.
+ * \param text The service information.
+ */
+ Service(const SocketAddress& address, const std::string& text);
+
+
+ /**
+ * Publish the service on the local network.
+ */
+ void publish();
+
+ void stop();
+
+
+ /**
+ * Get the host address.
+ * \return The address.
+ */
+ const SocketAddress& address() const
+ {
+ return mAddress;
+ }
+
+ /**
+ * Get the service information.
+ * \return The service information as a string.
+ */
+ const std::string& text() const
+ {
+ return mText;
+ }