All filters declare a yp2_filter_struct - used for both static and
[metaproxy-moved-to-github.git] / src / filter_frontend_net.hpp
1 /* $Id: filter_frontend_net.hpp,v 1.9 2006-01-04 11:19:04 adam Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5  */
6
7 #ifndef FILTER_FRONTEND_NET_HPP
8 #define FILTER_FRONTEND_NET_HPP
9
10 #include <stdexcept>
11 #include <vector>
12
13 #include "filter.hpp"
14
15 namespace yp2 {
16     namespace filter {
17         class FrontendNet : public Base {
18             class ZAssocServerChild;
19         public:
20             FrontendNet::FrontendNet();
21             void process(yp2::Package & package) const;
22         private:
23             int m_no_threads;
24             std::vector<std::string> m_ports;
25             int m_listen_duration;
26         public:
27             /// set function - left val in assignment
28             std::vector<std::string> &ports();
29             int &listen_duration();
30         };
31     }
32 }
33
34 extern "C" {
35     extern const struct yp2_filter_struct yp2_filter_frontend_net;
36 }
37
38 #endif
39 /*
40  * Local variables:
41  * c-basic-offset: 4
42  * indent-tabs-mode: nil
43  * c-file-style: "stroustrup"
44  * End:
45  * vim: shiftwidth=4 tabstop=8 expandtab
46  */