X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ffilter_frontend_net.hpp;h=e6a3a6bacf9b314811bb1e3d08caf4b64a064d5b;hb=d15eeaaabd7e3f92ffe0215bd930bbc92b380e0f;hp=b30fabeb837bc9742fa11ce47a747ee8e8e4a019;hpb=57c1c4822f1de4d983c1aee3bc6059ad2600d991;p=metaproxy-moved-to-github.git diff --git a/src/filter_frontend_net.hpp b/src/filter_frontend_net.hpp index b30fabe..e6a3a6b 100644 --- a/src/filter_frontend_net.hpp +++ b/src/filter_frontend_net.hpp @@ -1,33 +1,48 @@ +/* $Id: filter_frontend_net.hpp,v 1.15 2007-01-25 14:05:54 adam Exp $ + Copyright (c) 2005-2007, Index Data. + + See the LICENSE file for details + */ #ifndef FILTER_FRONTEND_NET_HPP -#define FILTER_FRONEND_NET_HPP +#define FILTER_FRONTEND_NET_HPP + +#include #include +#include #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 m_p; + public: + FrontendNet(); + ~FrontendNet(); + void process(metaproxy_1::Package & package) const; + void configure(const xmlNode * ptr); + public: + /// set ports + std::vector &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 */