]> Dogcows Code - chaz/yoink/blobdiff - src/moof/service.hh
remove some unused stlplus modules
[chaz/yoink] / src / moof / service.hh
index 6db1d964b1e47a76c0cfc2c77af0fb9962a8f374..c0ca674112b89921399e407c601a59ae9431cdfe 100644 (file)
@@ -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<std::string,service>& 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<std::string,service>   services_;
 };
 
This page took 0.019515 seconds and 4 git commands to generate.