From a62c272ea279d4970ed49e49427bf60560a7c49a Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 15 Apr 2004 00:25:07 +0000 Subject: Tons of linking tweaks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@592 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/connection.h | 6 +++++- include/inspircd.h | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/connection.h b/include/connection.h index 2dd11633b..ac76654f9 100644 --- a/include/connection.h +++ b/include/connection.h @@ -44,6 +44,10 @@ class ircd_connector : public classbase */ std::string servername; + /** Server 'GECOS' + */ + std::string description; + /** Server names of servers that this server is linked to * So for A->B->C, if this was the record for B it would contain A and C * whilever both servers are connected to B. @@ -110,7 +114,7 @@ class connection : public classbase bool CreateListener(char* host, int p); bool BeginLink(char* targethost, int port, char* password, char* servername); void TerminateLink(char* targethost); - bool SendPacket(char *message, char* host); + bool SendPacket(char *message, const char* host); bool RecvPacket(std::deque &messages, char* host); ircd_connector* FindHost(std::string host); bool AddIncoming(int fd,char* targethost); diff --git a/include/inspircd.h b/include/inspircd.h index d88e25a1f..cf3fd1459 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -117,3 +117,11 @@ void send_network_quit(const char* nick, const char* reason); void ChangeName(userrec* user, const char* gecos); void ChangeDisplayedHost(userrec* user, const char* host); +// mesh network functions + +void NetSendToCommon(userrec* u, chanrec* c, char* s); +void NetSendToAll(char* s); +void NetSendToOne(char* target,char* s); +void NetSendToAllExcept(char* target,char* s); + + -- cgit v1.2.3