Implemented FilterFrontendNet which is a network server based on
[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
7 #include "filter.hpp"
8
9 namespace yp2 {
10     class FilterFrontendNet : public yp2::Filter {
11     public:
12         FilterFrontendNet::FilterFrontendNet();
13         yp2::Package & process(yp2::Package & package) const;
14     private:
15         int m_no_threads;
16         std::string m_listen_address;
17         int m_listen_duration;
18     public:
19         /// set function - left val in assignment
20         std::string & listen_address();
21         int &listen_duration();
22     };
23 }
24
25
26 #endif
27 /*
28  * Local variables:
29  * c-basic-offset: 4
30  * indent-tabs-mode: nil
31  * End:
32  * vim: shiftwidth=4 tabstop=8 expandtab
33  */