X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_frontend_net.hpp;h=0f6abe9c29e40d700327f42e318643bd8808e752;hb=63ea8aedbfd7dc56ab28dbc82c38b4458dcecb68;hp=d00945f11358474b9e038c31b03d1802138af146;hpb=cea1fb12604fd1ddbac6804b95c4aff078d30409;p=metaproxy-moved-to-github.git diff --git a/src/filter_frontend_net.hpp b/src/filter_frontend_net.hpp index d00945f..0f6abe9 100644 --- a/src/filter_frontend_net.hpp +++ b/src/filter_frontend_net.hpp @@ -1,33 +1,46 @@ +/* $Id: filter_frontend_net.hpp,v 1.9 2006-01-04 11:19:04 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #ifndef FILTER_FRONTEND_NET_HPP -#define FILTER_FRONEND_NET_HPP +#define FILTER_FRONTEND_NET_HPP #include +#include #include "filter.hpp" namespace yp2 { - class FilterFrontendNet : public yp2::Filter { - public: - FilterFrontendNet::FilterFrontendNet(); - void 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 { + class ZAssocServerChild; + public: + FrontendNet::FrontendNet(); + void process(yp2::Package & package) const; + 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(); + }; + } } +extern "C" { + extern const struct yp2_filter_struct yp2_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 */