FilterFrontendNet allows listening on multiple ports.
[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     class FilterFrontendNet : public yp2::Filter {
12     public:
13         FilterFrontendNet::FilterFrontendNet();
14         void process(yp2::Package & package) const;
15     private:
16         int m_no_threads;
17         std::vector<std::string> m_ports;
18         int m_listen_duration;
19     public:
20         /// set function - left val in assignment
21         std::vector<std::string> &ports();
22         int &listen_duration();
23     };
24 }
25
26
27 #endif
28 /*
29  * Local variables:
30  * c-basic-offset: 4
31  * indent-tabs-mode: nil
32  * End:
33  * vim: shiftwidth=4 tabstop=8 expandtab
34  */