metaproxy 1.22.1
filter_frontend_net.hpp
Go to the documentation of this file.
1/* This file is part of Metaproxy.
2 Copyright (C) Index Data
3
4Metaproxy is free software; you can redistribute it and/or modify it under
5the terms of the GNU General Public License as published by the Free
6Software Foundation; either version 2, or (at your option) any later
7version.
8
9Metaproxy is distributed in the hope that it will be useful, but WITHOUT ANY
10WARRANTY; without even the implied warranty of MERCHANTABILITY or
11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17*/
18
19#ifndef FILTER_FRONTEND_NET_HPP
20#define FILTER_FRONTEND_NET_HPP
21
22#include <boost/scoped_ptr.hpp>
23
24#include <stdexcept>
25#include <vector>
26
27#include <metaproxy/filter.hpp>
28
29namespace metaproxy_1 {
30 namespace filter {
31 class FrontendNet : public Base {
32 class PeerStat;
33 class Rep;
34 class Port;
35 class IP_Pattern;
36 class ZAssocServer;
37 class ZAssocChild;
39 class My_Timer_Thread;
40 boost::scoped_ptr<Rep> m_p;
41 public:
44 void process(metaproxy_1::Package & package) const;
45 void configure(const xmlNode * ptr, bool test_only,
46 const char *path);
47 void start() const;
48 void stop(int signo) const;
49 public:
51 void set_ports(std::vector<Port> &ports);
52 void set_ports(std::vector<std::string> &ports);
53 // set liten duraction (number of seconcds to listen)
54 void set_listen_duration(int d);
55 };
56 }
57}
58
59extern "C" {
60 extern struct metaproxy_1_filter_struct metaproxy_1_filter_frontend_net;
61}
62
63#endif
64/*
65 * Local variables:
66 * c-basic-offset: 4
67 * c-file-style: "Stroustrup"
68 * indent-tabs-mode: nil
69 * End:
70 * vim: shiftwidth=4 tabstop=8 expandtab
71 */
72
void process(metaproxy_1::Package &package) const
void set_ports(std::vector< Port > &ports)
set ports
void configure(const xmlNode *ptr, bool test_only, const char *path)
struct metaproxy_1_filter_struct metaproxy_1_filter_frontend_net