+/* $Id: filter_frontend_net.hpp,v 1.14 2006-06-10 14:29:12 adam Exp $
+ Copyright (c) 2005-2006, Index Data.
+
+ See the LICENSE file for details
+ */
#ifndef FILTER_FRONTEND_NET_HPP
-#define FILTER_FRONEND_NET_HPP
+#define FILTER_FRONTEND_NET_HPP
+
+#include <boost/scoped_ptr.hpp>
#include <stdexcept>
+#include <vector>
#include "filter.hpp"
-namespace yp2 {
- class FilterFrontendNet : public yp2::Filter {
- public:
- FilterFrontendNet::FilterFrontendNet();
- yp2::Package & process(yp2::Package & package) const;
- private:
- int m_no_threads;
- std::string m_listen_address;
- int m_listen_duration;
- public:
- /// set function - left val in assignment
- std::string & listen_address();
- int &listen_duration();
- };
+namespace metaproxy_1 {
+ namespace filter {
+ class FrontendNet : public Base {
+ class Rep;
+ boost::scoped_ptr<Rep> m_p;
+ public:
+ FrontendNet();
+ ~FrontendNet();
+ void process(metaproxy_1::Package & package) const;
+ void configure(const xmlNode * ptr);
+ public:
+ /// set ports
+ std::vector<std::string> &ports();
+ // set liten duraction (number of seconcds to listen)
+ int &listen_duration();
+ };
+ }
}
+extern "C" {
+ extern struct metaproxy_1_filter_struct metaproxy_1_filter_frontend_net;
+}
#endif
/*
* Local variables:
* c-basic-offset: 4
* indent-tabs-mode: nil
+ * c-file-style: "stroustrup"
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
*/