X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fservice.hh;fp=src%2Fmoof%2Fservice.hh;h=c0ca674112b89921399e407c601a59ae9431cdfe;hp=6db1d964b1e47a76c0cfc2c77af0fb9962a8f374;hb=574af38ed616d1adfa5e6ce35f67cda1f707f89d;hpb=6c9943707d4f33035830eba0587a61a34eaecbc2 diff --git a/src/moof/service.hh b/src/moof/service.hh index 6db1d96..c0ca674 100644 --- a/src/moof/service.hh +++ b/src/moof/service.hh @@ -1,13 +1,11 @@ -/*] Copyright (c) 2009-2010, Charles McGarvey [************************** +/*] Copyright (c) 2009-2011, Charles McGarvey [***************************** **] All rights reserved. * -* vi:ts=4 sw=4 tw=75 -* * Distributable under the terms and conditions of the 2-clause BSD license; * see the file COPYING for a complete text of the license. * -**************************************************************************/ +*****************************************************************************/ #ifndef _MOOF_SERVICE_HH_ #define _MOOF_SERVICE_HH_ @@ -56,7 +54,6 @@ public: const std::string& name, const std::string& text); - /** * Publish the service on the network. */ @@ -67,7 +64,6 @@ public: */ void stop(); - /** * Get the host address. * \return The address. @@ -104,20 +100,17 @@ public: return text_; } - ~service(); - private: int handle_packet(socket_multiplexer& mux, - packet& packet, - const socket::address& address); + packet& packet, const socket::address& address); socket::address address_; - std::string type_; - std::string name_; - std::string text_; + std::string type_; + std::string name_; + std::string text_; }; @@ -138,22 +131,19 @@ public: * \param sockType The type of socket. */ explicit service_finder(const std::string& type, - int sockType = SOCK_STREAM); - + int sockType = SOCK_STREAM); const std::map& services() const { return services_; } - private: int handle_packet(socket_multiplexer& mux, - packet& packet, - const socket::address& address); + packet& packet, const socket::address& address); - std::string type_; + std::string type_; std::map services_; };