X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Flink.h;h=797f108d86588ca3efe3f0495e66c3eb0073481e;hb=f293861ab70eab76ae0715a5f2c2769de332c779;hp=92fc8db9fad4dc4629f074a4a92f91316e765b4b;hpb=743f76d23f16609779ff94e70910a22be287966b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/link.h b/src/modules/m_spanningtree/link.h index 92fc8db9f..797f108d8 100644 --- a/src/modules/m_spanningtree/link.h +++ b/src/modules/m_spanningtree/link.h @@ -1,26 +1,55 @@ -#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. +/* + * InspIRCd -- Internet Relay Chat Daemon + * + * Copyright (C) 2007 Dennis Friis + * Copyright (C) 2007 Craig Edwards + * + * 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 . */ -class Link : public classbase + + +#ifndef M_SPANNINGTREE_LINK_H +#define M_SPANNINGTREE_LINK_H + +class Link : public refcountbase { public: + reference tag; irc::string Name; std::string IPAddr; int Port; std::string SendPass; std::string RecvPass; - unsigned long AutoConnect; - time_t NextConnectTime; + std::string Fingerprint; + std::string AllowMask; bool HiddenFromStats; - std::string FailOver; std::string Hook; int Timeout; + std::string Bind; + bool Hidden; + Link(ConfigTag* Tag) : tag(Tag) {} +}; + +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) {} }; #endif