std::string type() function taken out of all filter classes again
[metaproxy-moved-to-github.git] / src / filter_frontend_net.hpp
index b30fabe..31becaa 100644 (file)
@@ -1,25 +1,33 @@
+/* $Id: filter_frontend_net.hpp,v 1.7 2005-10-31 09:40:18 marc Exp $
+   Copyright (c) 2005, Index Data.
+
+%LICENSE%
+ */
 
 #ifndef FILTER_FRONTEND_NET_HPP
 #define FILTER_FRONEND_NET_HPP
 
 #include <stdexcept>
+#include <vector>
 
 #include "filter.hpp"
 
 namespace yp2 {
-    class FilterFrontendNet : public yp2::Filter {
-    public:
-       FilterFrontendNet::FilterFrontendNet();
-       yp2::Package & process(yp2::Package & package) const;
-    private:
-        int m_no_threads;
-        std::string m_listen_address;
-        int m_listen_duration;
-    public:
-        /// set function - left val in assignment
-        std::string & listen_address();
-        int &listen_duration();
-    };
+    namespace filter {
+        class FrontendNet : public Base {
+        public:
+            FrontendNet::FrontendNet();
+            void process(yp2::Package & package) const;
+        private:
+            int m_no_threads;
+            std::vector<std::string> m_ports;
+            int m_listen_duration;
+        public:
+            /// set function - left val in assignment
+            std::vector<std::string> &ports();
+            int &listen_duration();
+        };
+    }
 }
 
 
@@ -28,6 +36,7 @@ namespace yp2 {
  * Local variables:
  * c-basic-offset: 4
  * indent-tabs-mode: nil
+ * c-file-style: "stroustrup"
  * End:
  * vim: shiftwidth=4 tabstop=8 expandtab
  */