X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Flink.h;h=5b9361fcdaad98922069e45bfcfc845ddb864792;hb=a9e8e1f03ace24e9dcb50299f8e66c5fd6b42850;hp=6883f7bbb7c2bd56c8abf2ba91ef50abdddc308f;hpb=b6dbd6caab62bc2c0d11ce5a45d511611eb9c2ef;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/link.h b/src/modules/m_spanningtree/link.h index 6883f7bbb..5b9361fcd 100644 --- a/src/modules/m_spanningtree/link.h +++ b/src/modules/m_spanningtree/link.h @@ -1,42 +1,52 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ +/* + * InspIRCd -- Internet Relay Chat Daemon * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team - * See: http://wiki.inspircd.org/Credits + * Copyright (C) 2007 Dennis Friis + * Copyright (C) 2007 Craig Edwards * - * This program is free but copyrighted software; see - * the file COPYING for details. + * This file is part of InspIRCd. InspIRCd is free software: you can + * redistribute it and/or modify it under the terms of the GNU General Public + * License as published by the Free Software Foundation, version 2. * - * --------------------------------------------------- + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ -#ifndef __LINK_H__ -#define __LINK_H__ -/** The Link class might as well be a struct, - * but this is C++ and we don't believe in structs (!). - * It holds the entire information of one - * tag from the main config file. We maintain a list - * of them, and populate the list on rehash/load. - */ -class Link : public classbase +#pragma once + +class Link : public refcountbase { public: - irc::string Name; + reference tag; + std::string Name; std::string IPAddr; - int Port; + unsigned int Port; std::string SendPass; std::string RecvPass; - std::string AllowMask; - unsigned long AutoConnect; - time_t NextConnectTime; + std::string Fingerprint; + std::vector AllowMasks; bool HiddenFromStats; - std::string FailOver; std::string Hook; - int Timeout; + unsigned int Timeout; std::string Bind; bool Hidden; + Link(ConfigTag* Tag) : tag(Tag) {} }; -#endif +class Autoconnect : public refcountbase +{ + public: + reference tag; + std::vector servers; + unsigned long Period; + time_t NextConnectTime; + /** Negative == inactive */ + int position; + Autoconnect(ConfigTag* Tag) : tag(Tag) {} +};