Use namespace yp2::filter for filters .. Rename filters from
[metaproxy-moved-to-github.git] / src / filter_frontend_net.hpp
1
2 #ifndef FILTER_FRONTEND_NET_HPP
3 #define FILTER_FRONEND_NET_HPP
4
5 #include <stdexcept>
6 #include <vector>
7
8 #include "filter.hpp"
9
10 namespace yp2 {
11     namespace filter {
12         class FrontendNet : public Base {
13         public:
14             FrontendNet::FrontendNet();
15             void process(yp2::Package & package) const;
16         private:
17             int m_no_threads;
18             std::vector<std::string> m_ports;
19             int m_listen_duration;
20         public:
21             /// set function - left val in assignment
22             std::vector<std::string> &ports();
23             int &listen_duration();
24         };
25     }
26 }
27
28
29 #endif
30 /*
31  * Local variables:
32  * c-basic-offset: 4
33  * indent-tabs-mode: nil
34  * End:
35  * vim: shiftwidth=4 tabstop=8 expandtab
36  */