]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modules/m_spanningtree/link.h
Allow multiple autoconnects in a single <autoconnect> tag, fix infinite failover
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / link.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
6  * See: http://wiki.inspircd.org/Credits
7  *
8  * This program is free but copyrighted software; see
9  *            the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 #ifndef __LINK_H__
15 #define __LINK_H__
16
17 class Link : public refcountbase
18 {
19  public:
20         irc::string Name;
21         std::string IPAddr;
22         int Port;
23         std::string SendPass;
24         std::string RecvPass;
25         std::string Fingerprint;
26         std::string AllowMask;
27         bool HiddenFromStats;
28         std::string Hook;
29         int Timeout;
30         std::string Bind;
31         bool Hidden;
32 };
33
34 class Autoconnect : public refcountbase
35 {
36  public:
37         std::vector<std::string> servers;
38         unsigned long Period;
39         time_t NextConnectTime;
40         /** Negative == inactive */
41         int position;
42 };
43
44
45 #endif