RouterFleXML now reads XML simple config and make proper runtime
[metaproxy-moved-to-github.git] / src / filter_frontend_net.hpp
1 /* $Id: filter_frontend_net.hpp,v 1.11 2006-01-09 13:43:59 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             void configure(const xmlNode * ptr);
23         private:
24             int m_no_threads;
25             std::vector<std::string> m_ports;
26             int m_listen_duration;
27         public:
28             /// set function - left val in assignment
29             std::vector<std::string> &ports();
30             int &listen_duration();
31         };
32     }
33 }
34
35 extern "C" {
36     extern struct yp2_filter_struct yp2_filter_frontend_net;
37 }
38
39 #endif
40 /*
41  * Local variables:
42  * c-basic-offset: 4
43  * indent-tabs-mode: nil
44  * c-file-style: "stroustrup"
45  * End:
46  * vim: shiftwidth=4 tabstop=8 expandtab
47  */