1 /* This file is part of YAZ proxy
2 Copyright (C) 1998-2009 Index Data
4 YAZ proxy is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
9 YAZ proxy is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 #ifndef YAZPROXY_LIMIT_CONNECT_H
20 #define YAZPROXY_LIMIT_CONNECT_H
22 #include <yaz/yconfig.h>
23 #include <yazproxy/bw.h>
25 class YAZ_EXPORT LimitConnect {
29 void add_connect(const char *peername);
30 int get_total(const char *peername);
31 void cleanup(bool all);
32 void set_period(int sec);
38 Peer **lookup(const char *peername);
46 * indent-tabs-mode: nil
48 * vim: shiftwidth=4 tabstop=8 expandtab