|
|||
|
|||
|
#include <protocolinterface.h>
Inheritance diagram for SpanningTreeProtocolInterface:


Public Member Functions | |
| SpanningTreeProtocolInterface (ModuleSpanningTree *mod, SpanningTreeUtilities *util, InspIRCd *Instance) | |
| virtual | ~SpanningTreeProtocolInterface () |
| virtual void | SendEncapsulatedData (parameterlist &encap) |
| Send an ENCAP message to one or more linked servers. | |
| virtual void | SendMetaData (void *target, TargetTypeFlags type, const std::string &key, const std::string &data) |
| Send metadata for an object to other linked servers. | |
| virtual void | SendTopic (Channel *channel, std::string &topic) |
| Send a topic change for a channel. | |
| virtual void | SendMode (const std::string &target, parameterlist &modedata) |
| Send mode changes for an object. | |
| virtual void | SendModeNotice (const std::string &modes, const std::string &text) |
| Send a notice to users with a given mode(s). | |
| virtual void | SendSNONotice (const std::string &snomask, const std::string &text) |
| Send a notice to users with a given snomask. | |
| virtual void | PushToClient (User *target, const std::string &rawline) |
| Send raw data to a remote client. | |
| virtual void | SendChannelPrivmsg (Channel *target, char status, const std::string &text) |
| Send a message to a channel. | |
| virtual void | SendChannelNotice (Channel *target, char status, const std::string &text) |
| Send a notice to a channel. | |
| virtual void | SendUserPrivmsg (User *target, const std::string &text) |
| Send a message to a user. | |
| virtual void | SendUserNotice (User *target, const std::string &text) |
| Send a notice to a user. | |
| virtual void | GetServerList (ProtoServerList &sl) |
| Fill a list of servers and information about them. | |
| virtual void | Introduce (User *u) |
| Send information about a user connection to linked servers. | |
Private Member Functions | |
| void | SendChannel (Channel *target, char status, const std::string &text) |
Private Attributes | |
| SpanningTreeUtilities * | Utils |
| ModuleSpanningTree * | Module |
Definition at line 7 of file protocolinterface.h.
|
||||||||||||||||
|
Definition at line 13 of file protocolinterface.h. |
|
|
Definition at line 14 of file protocolinterface.h. |
|
|
Fill a list of servers and information about them.
Reimplemented from ProtocolInterface. Definition at line 12 of file protocolinterface.cpp. References ProtoServer::gecos, TreeServer::GetName(), ProtoServer::latencyms, ProtoServer::opercount, ProtoServer::parentname, SpanningTreeUtilities::serverlist, ProtoServer::servername, ProtoServer::usercount, and Utils. |
|
|
Send information about a user connection to linked servers.
Reimplemented from ProtocolInterface. Definition at line 183 of file protocolinterface.cpp. References classbase::age, InspIRCd::Config, ConvToStr(), User::dhost, SpanningTreeUtilities::DoOneToMany(), SpanningTreeUtilities::FindServer(), User::FormatModes(), User::fullname, User::GetIPString(), ServerConfig::GetSID(), User::host, User::ident, IS_LOCAL, User::nick, User::server, ProtocolInterface::ServerInstance, TreeServer::SetUserCount(), User::signon, Utils, and User::uuid. |
|
||||||||||||
|
Send raw data to a remote client.
Reimplemented from ProtocolInterface. Definition at line 122 of file protocolinterface.cpp. References InspIRCd::Config, SpanningTreeUtilities::DoOneToOne(), ServerConfig::GetSID(), User::server, ProtocolInterface::ServerInstance, Utils, and User::uuid. |
|
||||||||||||||||
|
Definition at line 130 of file protocolinterface.cpp. References SpanningTreeUtilities::GetListOfServersForChannel(), Channel::name, Utils, and TreeSocket::WriteLine(). Referenced by SendChannelNotice(), and SendChannelPrivmsg(). |
|
||||||||||||||||
|
Send a notice to a channel.
Reimplemented from ProtocolInterface. Definition at line 152 of file protocolinterface.cpp. References InspIRCd::Config, ServerConfig::GetSID(), Channel::name, SendChannel(), and ProtocolInterface::ServerInstance. |
|
||||||||||||||||
|
Send a message to a channel.
Reimplemented from ProtocolInterface. Definition at line 147 of file protocolinterface.cpp. References InspIRCd::Config, ServerConfig::GetSID(), Channel::name, SendChannel(), and ProtocolInterface::ServerInstance. |
|
|
Send an ENCAP message to one or more linked servers. See the protocol documentation for the purpose of ENCAP.
Reimplemented from ProtocolInterface. Definition at line 29 of file protocolinterface.cpp. References InspIRCd::Config, SpanningTreeUtilities::DoOneToMany(), ServerConfig::GetSID(), ProtocolInterface::ServerInstance, and Utils. |
|
||||||||||||||||||||
|
Send metadata for an object to other linked servers.
Reimplemented from ProtocolInterface. Definition at line 34 of file protocolinterface.cpp. References InspIRCd::Config, SpanningTreeUtilities::DoOneToMany(), ServerConfig::GetSID(), ProtocolInterface::ServerInstance, TYPE_CHANNEL, TYPE_SERVER, TYPE_USER, and Utils. |
|
||||||||||||
|
Send mode changes for an object.
Reimplemented from ProtocolInterface. Definition at line 71 of file protocolinterface.cpp. References classbase::age, InspIRCd::Config, ConvToStr(), SpanningTreeUtilities::DoOneToMany(), InspIRCd::FindChan(), InspIRCd::FindNick(), ServerConfig::GetSID(), InspIRCd::Parser, ProtocolInterface::ServerInstance, TR_NICK, CommandParser::TranslateUIDs(), and Utils. |
|
||||||||||||
|
Send a notice to users with a given mode(s).
Reimplemented from ProtocolInterface. Definition at line 106 of file protocolinterface.cpp. References InspIRCd::Config, SpanningTreeUtilities::DoOneToMany(), ServerConfig::GetSID(), ProtocolInterface::ServerInstance, and Utils. |
|
||||||||||||
|
Send a notice to users with a given snomask.
Reimplemented from ProtocolInterface. Definition at line 114 of file protocolinterface.cpp. References InspIRCd::Config, SpanningTreeUtilities::DoOneToMany(), ServerConfig::GetSID(), ProtocolInterface::ServerInstance, and Utils. |
|
||||||||||||
|
Send a topic change for a channel.
Reimplemented from ProtocolInterface. Definition at line 59 of file protocolinterface.cpp. References InspIRCd::Config, ConvToStr(), SpanningTreeUtilities::DoOneToMany(), ServerConfig::GetSID(), Channel::name, ProtocolInterface::ServerInstance, ServerConfig::ServerName, InspIRCd::Time(), and Utils. |
|
||||||||||||
|
Send a notice to a user.
Reimplemented from ProtocolInterface. Definition at line 170 of file protocolinterface.cpp. References InspIRCd::Config, SpanningTreeUtilities::FindServer(), ServerConfig::GetSID(), TreeServer::GetSocket(), User::nick, User::server, ProtocolInterface::ServerInstance, Utils, and TreeSocket::WriteLine(). |
|
||||||||||||
|
Send a message to a user.
Reimplemented from ProtocolInterface. Definition at line 157 of file protocolinterface.cpp. References InspIRCd::Config, SpanningTreeUtilities::FindServer(), ServerConfig::GetSID(), TreeServer::GetSocket(), User::nick, User::server, ProtocolInterface::ServerInstance, Utils, and TreeSocket::WriteLine(). |
|
|
Definition at line 10 of file protocolinterface.h. |
|
|
Definition at line 9 of file protocolinterface.h. Referenced by GetServerList(), Introduce(), PushToClient(), SendChannel(), SendEncapsulatedData(), SendMetaData(), SendMode(), SendModeNotice(), SendSNONotice(), SendTopic(), SendUserNotice(), and SendUserPrivmsg(). |