X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_frontend_net.hpp;h=2a68a91b7b7322af9011704f24b2f125cec0833e;hb=f26cca046b4879a78261ea436c3e21bb3b851b52;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..2a68a91 100644 --- a/src/filter_frontend_net.hpp +++ b/src/filter_frontend_net.hpp @@ -1,25 +1,36 @@ +/* $Id: filter_frontend_net.hpp,v 1.6 2005-10-29 22:23:36 marc Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #ifndef FILTER_FRONTEND_NET_HPP #define FILTER_FRONEND_NET_HPP #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 filter { + class FrontendNet : public Base { + public: + FrontendNet::FrontendNet(); + void process(yp2::Package & package) const; + const std::string type() const { + return "FrontendNet"; + }; + private: + int m_no_threads; + std::vector m_ports; + int m_listen_duration; + public: + /// set function - left val in assignment + std::vector &ports(); + int &listen_duration(); + }; + } } @@ -28,6 +39,7 @@ namespace yp2 { * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */