]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modules/m_spanningtree/link.h
...because every now and again, i have to do a massive commit.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / link.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2010 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         reference<ConfigTag> tag;
21         irc::string Name;
22         std::string IPAddr;
23         int Port;
24         std::string SendPass;
25         std::string RecvPass;
26         std::string Fingerprint;
27         std::string AllowMask;
28         bool HiddenFromStats;
29         std::string Hook;
30         int Timeout;
31         std::string Bind;
32         bool Hidden;
33         Link(ConfigTag* Tag) : tag(Tag) {}
34 };
35
36 class Autoconnect : public refcountbase
37 {
38  public:
39         reference<ConfigTag> tag;
40         std::vector<std::string> servers;
41         unsigned long Period;
42         time_t NextConnectTime;
43         /** Negative == inactive */
44         int position;
45         Autoconnect(ConfigTag* Tag) : tag(Tag) {}
46 };
47
48
49 #endif