From 4e9f3d169285127e60dc9e0437925c90600bfe05 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 25 May 2005 22:01:10 +0000 Subject: Added parameters git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1522 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/man/man3/Admin.3 | 2 +- docs/man/man3/BanItem.3 | 2 +- docs/man/man3/ConfigReader.3 | 2 +- docs/man/man3/ConnectClass.3 | 2 +- docs/man/man3/DNS.3 | 2 +- docs/man/man3/ELine.3 | 2 +- docs/man/man3/Event.3 | 2 +- docs/man/man3/ExemptItem.3 | 2 +- docs/man/man3/ExtMode.3 | 2 +- docs/man/man3/Extensible.3 | 44 +- docs/man/man3/FileReader.3 | 2 +- docs/man/man3/GLine.3 | 2 +- docs/man/man3/HostItem.3 | 2 +- docs/man/man3/InviteItem.3 | 2 +- docs/man/man3/Invited.3 | 2 +- docs/man/man3/KLine.3 | 2 +- docs/man/man3/ModeParameter.3 | 2 +- docs/man/man3/Module.3 | 2 +- docs/man/man3/ModuleFactory.3 | 2 +- docs/man/man3/ModuleMessage.3 | 2 +- docs/man/man3/QLine.3 | 2 +- docs/man/man3/Request.3 | 2 +- docs/man/man3/Server.3 | 2 +- docs/man/man3/Version.3 | 2 +- docs/man/man3/WhoWasUser.3 | 2 +- docs/man/man3/XLine.3 | 2 +- docs/man/man3/ZLine.3 | 2 +- docs/man/man3/base.h.3 | 2 +- docs/man/man3/channels.cpp.3 | 6 +- docs/man/man3/channels.h.3 | 2 +- docs/man/man3/chanrec.3 | 2 +- docs/man/man3/classbase.3 | 2 +- docs/man/man3/command_t.3 | 2 +- docs/man/man3/commands.h.3 | 9 +- docs/man/man3/connection.3 | 2 +- docs/man/man3/connection.h.3 | 10 +- docs/man/man3/ctables.h.3 | 2 +- docs/man/man3/dns.h.3 | 2 +- docs/man/man3/dns_ip4list.3 | 2 +- docs/man/man3/hashcomp.h.3 | 2 +- docs/man/man3/irc.3 | 2 +- docs/man/man3/irc_InAddr_HashComp.3 | 2 +- docs/man/man3/irc_StrHashComp.3 | 2 +- docs/man/man3/irc_irc_char_traits.3 | 2 +- docs/man/man3/ircd_connector.3 | 4 +- docs/man/man3/message.h.3 | 2 +- docs/man/man3/mode.h.3 | 2 +- docs/man/man3/modules.cpp.3 | 2 +- docs/man/man3/modules.h.3 | 2 +- docs/man/man3/nspace.3 | 2 +- docs/man/man3/nspace_nspace_hash_ in_addr _.3 | 2 +- docs/man/man3/nspace_nspace_hash_ string _.3 | 2 +- docs/man/man3/serverrec.3 | 797 ++++++++++--------- docs/man/man3/servers.cpp.3 | 88 +- docs/man/man3/servers.h.3 | 2 +- docs/man/man3/std.3 | 2 +- docs/man/man3/std_char_traits.3 | 2 +- docs/man/man3/ucrec.3 | 2 +- docs/man/man3/userrec.3 | 2 +- docs/man/man3/users.cpp.3 | 2 +- docs/man/man3/users.h.3 | 2 +- docs/man/man3/xline.h.3 | 2 +- docs/module-doc/annotated.html | 2 +- docs/module-doc/base_8h-source.html | 20 +- docs/module-doc/base_8h.html | 2 +- docs/module-doc/channels_8cpp-source.html | 2 +- docs/module-doc/channels_8cpp.html | 10 +- docs/module-doc/channels_8h-source.html | 2 +- docs/module-doc/channels_8h.html | 2 +- docs/module-doc/classAdmin-members.html | 2 +- docs/module-doc/classAdmin.html | 2 +- docs/module-doc/classBanItem-members.html | 2 +- docs/module-doc/classBanItem.html | 2 +- docs/module-doc/classConfigReader-members.html | 2 +- docs/module-doc/classConfigReader.html | 2 +- docs/module-doc/classConnectClass-members.html | 2 +- docs/module-doc/classConnectClass.html | 2 +- docs/module-doc/classDNS-members.html | 2 +- docs/module-doc/classDNS.html | 2 +- docs/module-doc/classELine-members.html | 2 +- docs/module-doc/classELine.html | 2 +- docs/module-doc/classEvent-members.html | 2 +- docs/module-doc/classEvent.html | 2 +- docs/module-doc/classExemptItem-members.html | 2 +- docs/module-doc/classExemptItem.html | 2 +- docs/module-doc/classExtMode-members.html | 2 +- docs/module-doc/classExtMode.html | 2 +- docs/module-doc/classExtensible-members.html | 2 +- docs/module-doc/classExtensible.html | 29 +- docs/module-doc/classFileReader-members.html | 2 +- docs/module-doc/classFileReader.html | 2 +- docs/module-doc/classGLine-members.html | 2 +- docs/module-doc/classGLine.html | 2 +- docs/module-doc/classHostItem-members.html | 2 +- docs/module-doc/classHostItem.html | 2 +- docs/module-doc/classInviteItem-members.html | 2 +- docs/module-doc/classInviteItem.html | 2 +- docs/module-doc/classInvited-members.html | 2 +- docs/module-doc/classInvited.html | 2 +- docs/module-doc/classKLine-members.html | 2 +- docs/module-doc/classKLine.html | 2 +- docs/module-doc/classModeParameter-members.html | 2 +- docs/module-doc/classModeParameter.html | 2 +- docs/module-doc/classModule-members.html | 2 +- docs/module-doc/classModule.html | 2 +- docs/module-doc/classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 2 +- docs/module-doc/classModuleMessage-members.html | 2 +- docs/module-doc/classModuleMessage.html | 2 +- docs/module-doc/classQLine-members.html | 2 +- docs/module-doc/classQLine.html | 2 +- docs/module-doc/classRequest-members.html | 2 +- docs/module-doc/classRequest.html | 2 +- docs/module-doc/classServer-members.html | 2 +- docs/module-doc/classServer.html | 2 +- docs/module-doc/classVersion-members.html | 2 +- docs/module-doc/classVersion.html | 2 +- docs/module-doc/classWhoWasUser-members.html | 2 +- docs/module-doc/classWhoWasUser.html | 2 +- docs/module-doc/classXLine-members.html | 2 +- docs/module-doc/classXLine.html | 2 +- docs/module-doc/classZLine-members.html | 2 +- docs/module-doc/classZLine.html | 2 +- docs/module-doc/classchanrec-members.html | 2 +- docs/module-doc/classchanrec.html | 2 +- docs/module-doc/classclassbase-members.html | 2 +- docs/module-doc/classclassbase.html | 2 +- docs/module-doc/classcommand__t-members.html | 2 +- docs/module-doc/classcommand__t.html | 2 +- docs/module-doc/classconnection-members.html | 2 +- docs/module-doc/classconnection.html | 10 +- docs/module-doc/classes.html | 2 +- docs/module-doc/classircd__connector-members.html | 2 +- docs/module-doc/classircd__connector.html | 24 +- docs/module-doc/classserverrec-members.html | 2 +- docs/module-doc/classserverrec.html | 843 ++++++++++---------- docs/module-doc/classstd_1_1char__traits.html | 2 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 2 +- docs/module-doc/classuserrec-members.html | 2 +- docs/module-doc/classuserrec.html | 2 +- docs/module-doc/commands_8h-source.html | 6 +- docs/module-doc/commands_8h.html | 45 +- docs/module-doc/connection_8h-source.html | 2 +- docs/module-doc/connection_8h.html | 12 +- docs/module-doc/ctables_8h-source.html | 2 +- docs/module-doc/ctables_8h.html | 2 +- docs/module-doc/dns_8h-source.html | 2 +- docs/module-doc/dns_8h.html | 2 +- docs/module-doc/files.html | 2 +- docs/module-doc/functions.html | 2 +- docs/module-doc/functions_func.html | 2 +- docs/module-doc/functions_vars.html | 2 +- docs/module-doc/globals.html | 23 +- docs/module-doc/globals_defs.html | 2 +- docs/module-doc/globals_func.html | 16 +- docs/module-doc/globals_type.html | 2 +- docs/module-doc/globals_vars.html | 12 +- docs/module-doc/graph_legend.html | 2 +- docs/module-doc/hashcomp_8h-source.html | 2 +- docs/module-doc/hashcomp_8h.html | 2 +- docs/module-doc/hierarchy.html | 2 +- docs/module-doc/inherits.html | 2 +- docs/module-doc/main.html | 2 +- docs/module-doc/message_8h-source.html | 2 +- docs/module-doc/message_8h.html | 2 +- docs/module-doc/mode_8h-source.html | 2 +- docs/module-doc/mode_8h.html | 2 +- docs/module-doc/modules_8cpp-source.html | 2 +- docs/module-doc/modules_8cpp.html | 4 +- docs/module-doc/modules_8h-source.html | 2 +- docs/module-doc/modules_8h.html | 4 +- docs/module-doc/namespaceirc.html | 2 +- docs/module-doc/namespacemembers.html | 2 +- docs/module-doc/namespacemembers_type.html | 2 +- docs/module-doc/namespacenspace.html | 2 +- docs/module-doc/namespaces.html | 2 +- docs/module-doc/namespacestd.html | 2 +- docs/module-doc/servers_8cpp-source.html | 885 +++++++++++---------- docs/module-doc/servers_8cpp.html | 172 +++- docs/module-doc/servers_8h-source.html | 2 +- docs/module-doc/servers_8h.html | 2 +- docs/module-doc/structdns__ip4list-members.html | 2 +- docs/module-doc/structdns__ip4list.html | 2 +- .../structirc_1_1InAddr__HashComp-members.html | 2 +- docs/module-doc/structirc_1_1InAddr__HashComp.html | 2 +- .../structirc_1_1StrHashComp-members.html | 2 +- docs/module-doc/structirc_1_1StrHashComp.html | 2 +- .../structirc_1_1irc__char__traits-members.html | 2 +- .../module-doc/structirc_1_1irc__char__traits.html | 2 +- ..._1nspace_1_1hash_3_01in__addr_01_4-members.html | 2 +- ...nspace_1_1nspace_1_1hash_3_01in__addr_01_4.html | 2 +- ..._1_1nspace_1_1hash_3_01string_01_4-members.html | 2 +- ...ctnspace_1_1nspace_1_1hash_3_01string_01_4.html | 2 +- docs/module-doc/users_8cpp-source.html | 2 +- docs/module-doc/users_8cpp.html | 2 +- docs/module-doc/users_8h-source.html | 2 +- docs/module-doc/users_8h.html | 2 +- docs/module-doc/xline_8h-source.html | 2 +- docs/module-doc/xline_8h.html | 2 +- 200 files changed, 1933 insertions(+), 1494 deletions(-) (limited to 'docs') diff --git a/docs/man/man3/Admin.3 b/docs/man/man3/Admin.3 index 416575798..18bd6a944 100644 --- a/docs/man/man3/Admin.3 +++ b/docs/man/man3/Admin.3 @@ -1,4 +1,4 @@ -.TH "Admin" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "Admin" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/BanItem.3 b/docs/man/man3/BanItem.3 index 1df522d83..a2e234890 100644 --- a/docs/man/man3/BanItem.3 +++ b/docs/man/man3/BanItem.3 @@ -1,4 +1,4 @@ -.TH "BanItem" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "BanItem" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ConfigReader.3 b/docs/man/man3/ConfigReader.3 index db2f5d282..3d7241239 100644 --- a/docs/man/man3/ConfigReader.3 +++ b/docs/man/man3/ConfigReader.3 @@ -1,4 +1,4 @@ -.TH "ConfigReader" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "ConfigReader" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ConnectClass.3 b/docs/man/man3/ConnectClass.3 index 23662d063..6ac15ba75 100644 --- a/docs/man/man3/ConnectClass.3 +++ b/docs/man/man3/ConnectClass.3 @@ -1,4 +1,4 @@ -.TH "ConnectClass" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "ConnectClass" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/DNS.3 b/docs/man/man3/DNS.3 index f5b6d1c9d..294c788b1 100644 --- a/docs/man/man3/DNS.3 +++ b/docs/man/man3/DNS.3 @@ -1,4 +1,4 @@ -.TH "DNS" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "DNS" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ELine.3 b/docs/man/man3/ELine.3 index b68821320..df7d4f4a7 100644 --- a/docs/man/man3/ELine.3 +++ b/docs/man/man3/ELine.3 @@ -1,4 +1,4 @@ -.TH "ELine" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "ELine" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Event.3 b/docs/man/man3/Event.3 index 66edc1d3d..d546cadcc 100644 --- a/docs/man/man3/Event.3 +++ b/docs/man/man3/Event.3 @@ -1,4 +1,4 @@ -.TH "Event" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "Event" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ExemptItem.3 b/docs/man/man3/ExemptItem.3 index aa5258002..1f1827758 100644 --- a/docs/man/man3/ExemptItem.3 +++ b/docs/man/man3/ExemptItem.3 @@ -1,4 +1,4 @@ -.TH "ExemptItem" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "ExemptItem" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ExtMode.3 b/docs/man/man3/ExtMode.3 index 236e8cd8a..d6135fc14 100644 --- a/docs/man/man3/ExtMode.3 +++ b/docs/man/man3/ExtMode.3 @@ -1,4 +1,4 @@ -.TH "ExtMode" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "ExtMode" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Extensible.3 b/docs/man/man3/Extensible.3 index d36912f60..2018cd126 100644 --- a/docs/man/man3/Extensible.3 +++ b/docs/man/man3/Extensible.3 @@ -1,4 +1,4 @@ -.TH "Extensible" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "Extensible" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -49,13 +49,49 @@ Definition at line 50 of file base.h. .PP .SS "bool Extensible::Extend (std::string key, char * p)" .PP -Extend an Extensible class. You must provide a key to store the data as, and a void* to the data (typedef VoidPointer) The data will be inserted into the map. If the data already exists, you may not insert it twice, \fBExtensible::Extend\fP will return false in this case. On successful extension, Extend returns true. +Extend an Extensible class. \fBParameters:\fP +.RS 4 +\fIkey\fP The key parameter is an arbitary string which identifies the extension data +.br +\fIp\fP This parameter is a pointer to any data you wish to associate with the object +.RE +.PP +You must provide a key to store the data as, and a void* to the data (typedef VoidPointer) The data will be inserted into the map. If the data already exists, you may not insert it twice, \fBExtensible::Extend\fP will return false in this case. +.PP +\fBReturns:\fP +.RS 4 +Returns true on success, false if otherwise +.RE +.PP + .SS "char* Extensible::GetExt (std::string key)" .PP -Get an extension item. You must provide a key name, which is case sensitive. If you provide a non-existent key name, the function returns NULL, otherwise a pointer to the item referenced by the key is returned. +Get an extension item. \fBParameters:\fP +.RS 4 +\fIkey\fP The key parameter is an arbitary string which identifies the extension data +.RE +.PP +\fBReturns:\fP +.RS 4 +If you provide a non-existent key name, the function returns NULL, otherwise a pointer to the item referenced by the key is returned. +.RE +.PP + .SS "bool Extensible::Shrink (std::string key)" .PP -Shrink an Extensible class. You must provide a key name. The given key name will be removed from the classes data. If you provide a nonexistent key (case is important) then the function will return false. Returns true on success. +Shrink an Extensible class. \fBParameters:\fP +.RS 4 +\fIkey\fP The key parameter is an arbitary string which identifies the extension data +.RE +.PP +You must provide a key name. The given key name will be removed from the classes data. If you provide a nonexistent key (case is important) then the function will return false. +.PP +\fBReturns:\fP +.RS 4 +Returns true on success. +.RE +.PP + .SH "Member Data Documentation" .PP .SS "std::map \fBExtensible::Extension_Items\fP\fC [private]\fP" diff --git a/docs/man/man3/FileReader.3 b/docs/man/man3/FileReader.3 index f791a880e..cc8235c1a 100644 --- a/docs/man/man3/FileReader.3 +++ b/docs/man/man3/FileReader.3 @@ -1,4 +1,4 @@ -.TH "FileReader" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "FileReader" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/GLine.3 b/docs/man/man3/GLine.3 index 8a8523190..34bb1379c 100644 --- a/docs/man/man3/GLine.3 +++ b/docs/man/man3/GLine.3 @@ -1,4 +1,4 @@ -.TH "GLine" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "GLine" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/HostItem.3 b/docs/man/man3/HostItem.3 index 7d151b18d..a63fe8ca3 100644 --- a/docs/man/man3/HostItem.3 +++ b/docs/man/man3/HostItem.3 @@ -1,4 +1,4 @@ -.TH "HostItem" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "HostItem" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/InviteItem.3 b/docs/man/man3/InviteItem.3 index a38f1bd5f..43b4cb657 100644 --- a/docs/man/man3/InviteItem.3 +++ b/docs/man/man3/InviteItem.3 @@ -1,4 +1,4 @@ -.TH "InviteItem" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "InviteItem" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Invited.3 b/docs/man/man3/Invited.3 index 87fb6a718..d5f91d73f 100644 --- a/docs/man/man3/Invited.3 +++ b/docs/man/man3/Invited.3 @@ -1,4 +1,4 @@ -.TH "Invited" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "Invited" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/KLine.3 b/docs/man/man3/KLine.3 index 076be1032..53785dc8c 100644 --- a/docs/man/man3/KLine.3 +++ b/docs/man/man3/KLine.3 @@ -1,4 +1,4 @@ -.TH "KLine" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "KLine" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ModeParameter.3 b/docs/man/man3/ModeParameter.3 index bd6f50b0e..c690c33c5 100644 --- a/docs/man/man3/ModeParameter.3 +++ b/docs/man/man3/ModeParameter.3 @@ -1,4 +1,4 @@ -.TH "ModeParameter" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "ModeParameter" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Module.3 b/docs/man/man3/Module.3 index eab4669bb..2169fd28b 100644 --- a/docs/man/man3/Module.3 +++ b/docs/man/man3/Module.3 @@ -1,4 +1,4 @@ -.TH "Module" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "Module" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ModuleFactory.3 b/docs/man/man3/ModuleFactory.3 index 779bd0e86..46e42232e 100644 --- a/docs/man/man3/ModuleFactory.3 +++ b/docs/man/man3/ModuleFactory.3 @@ -1,4 +1,4 @@ -.TH "ModuleFactory" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "ModuleFactory" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ModuleMessage.3 b/docs/man/man3/ModuleMessage.3 index 4d4080144..fe20514cf 100644 --- a/docs/man/man3/ModuleMessage.3 +++ b/docs/man/man3/ModuleMessage.3 @@ -1,4 +1,4 @@ -.TH "ModuleMessage" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "ModuleMessage" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/QLine.3 b/docs/man/man3/QLine.3 index 9e71ad7a0..af16527a4 100644 --- a/docs/man/man3/QLine.3 +++ b/docs/man/man3/QLine.3 @@ -1,4 +1,4 @@ -.TH "QLine" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "QLine" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Request.3 b/docs/man/man3/Request.3 index f836f2662..84b7c3f8f 100644 --- a/docs/man/man3/Request.3 +++ b/docs/man/man3/Request.3 @@ -1,4 +1,4 @@ -.TH "Request" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "Request" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Server.3 b/docs/man/man3/Server.3 index 87891e19e..db0f29ac6 100644 --- a/docs/man/man3/Server.3 +++ b/docs/man/man3/Server.3 @@ -1,4 +1,4 @@ -.TH "Server" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "Server" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Version.3 b/docs/man/man3/Version.3 index aeea8964f..448ab5904 100644 --- a/docs/man/man3/Version.3 +++ b/docs/man/man3/Version.3 @@ -1,4 +1,4 @@ -.TH "Version" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "Version" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/WhoWasUser.3 b/docs/man/man3/WhoWasUser.3 index 8e60d5b21..acda325ea 100644 --- a/docs/man/man3/WhoWasUser.3 +++ b/docs/man/man3/WhoWasUser.3 @@ -1,4 +1,4 @@ -.TH "WhoWasUser" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "WhoWasUser" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/XLine.3 b/docs/man/man3/XLine.3 index 3745f1f06..dfec61ad4 100644 --- a/docs/man/man3/XLine.3 +++ b/docs/man/man3/XLine.3 @@ -1,4 +1,4 @@ -.TH "XLine" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "XLine" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ZLine.3 b/docs/man/man3/ZLine.3 index 9a0d1a77a..958a51291 100644 --- a/docs/man/man3/ZLine.3 +++ b/docs/man/man3/ZLine.3 @@ -1,4 +1,4 @@ -.TH "ZLine" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "ZLine" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/base.h.3 b/docs/man/man3/base.h.3 index cab63c1bb..2451eaec9 100644 --- a/docs/man/man3/base.h.3 +++ b/docs/man/man3/base.h.3 @@ -1,4 +1,4 @@ -.TH "base.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "base.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/channels.cpp.3 b/docs/man/man3/channels.cpp.3 index dfcb792ac..ce1ab31a4 100644 --- a/docs/man/man3/channels.cpp.3 +++ b/docs/man/man3/channels.cpp.3 @@ -1,4 +1,4 @@ -.TH "channels.cpp" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "channels.cpp" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -259,6 +259,8 @@ Definition at line 83 of file channels.cpp. .SS "\fBserverrec\fP* \fBme\fP[32]" .PP Definition at line 97 of file channels.cpp. +.PP +Referenced by IsRoutable(). .SS "int \fBMODCOUNT\fP = -1" .PP Definition at line 1016 of file modules.cpp. @@ -317,7 +319,7 @@ Definition at line 81 of file channels.cpp. .PP Definition at line 101 of file channels.cpp. .PP -Referenced by serverrec::serverrec(), and userrec::userrec(). +Referenced by serverrec::FlushWriteBuffers(), serverrec::serverrec(), and userrec::userrec(). .SS "int \fBWHOWAS_MAX\fP" .PP Definition at line 79 of file channels.cpp. diff --git a/docs/man/man3/channels.h.3 b/docs/man/man3/channels.h.3 index 66b0c8044..34f89005e 100644 --- a/docs/man/man3/channels.h.3 +++ b/docs/man/man3/channels.h.3 @@ -1,4 +1,4 @@ -.TH "channels.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "channels.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/chanrec.3 b/docs/man/man3/chanrec.3 index 69ac8c35d..6042f7166 100644 --- a/docs/man/man3/chanrec.3 +++ b/docs/man/man3/chanrec.3 @@ -1,4 +1,4 @@ -.TH "chanrec" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "chanrec" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/classbase.3 b/docs/man/man3/classbase.3 index bdadeea07..ef6d05980 100644 --- a/docs/man/man3/classbase.3 +++ b/docs/man/man3/classbase.3 @@ -1,4 +1,4 @@ -.TH "classbase" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "classbase" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/command_t.3 b/docs/man/man3/command_t.3 index 17e768025..6ead6ef21 100644 --- a/docs/man/man3/command_t.3 +++ b/docs/man/man3/command_t.3 @@ -1,4 +1,4 @@ -.TH "command_t" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "command_t" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/commands.h.3 b/docs/man/man3/commands.h.3 index 5b95d45a8..f39d57305 100644 --- a/docs/man/man3/commands.h.3 +++ b/docs/man/man3/commands.h.3 @@ -1,4 +1,4 @@ -.TH "commands.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "commands.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -262,9 +262,16 @@ commands.h \- .RI "long \fBduration\fP (const char *str)" .br .RI "\fIOther useful functions. \fP" +.ti -1c +.RI "void \fBConnectServer\fP (char *servermask, \fBuserrec\fP *user)" +.br +.RI "\fI\fBServer\fP connect creation. \fP" .in -1c .SH "Function Documentation" .PP +.SS "void ConnectServer (char * servermask, \fBuserrec\fP * user)" +.PP +\fBServer\fP connect creation. .SS "long duration (const char * str)" .PP Other useful functions. Referenced by Server::AddELine(), Server::AddGLine(), Server::AddKLine(), Server::AddQLine(), Server::AddZLine(), and Server::CalcDuration(). diff --git a/docs/man/man3/connection.3 b/docs/man/man3/connection.3 index e492e0b8b..00f6667fe 100644 --- a/docs/man/man3/connection.3 +++ b/docs/man/man3/connection.3 @@ -1,4 +1,4 @@ -.TH "connection" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "connection" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/connection.h.3 b/docs/man/man3/connection.h.3 index b8ddeddf6..bb39452b8 100644 --- a/docs/man/man3/connection.h.3 +++ b/docs/man/man3/connection.h.3 @@ -1,4 +1,4 @@ -.TH "connection.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "connection.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -81,23 +81,21 @@ connection.h \- .SS "#define STATE_CONNECTED 1" .PP Definition at line 36 of file connection.h. -.PP -Referenced by serverrec::MeshCookie(). .SS "#define STATE_DISCONNECTED 0" .PP Definition at line 35 of file connection.h. .PP -Referenced by serverrec::BeginLink(), serverrec::FlushWriteBuffers(), serverrec::MeshCookie(), serverrec::RecvPacket(), and serverrec::SendPacket(). +Referenced by serverrec::BeginLink(), serverrec::FlushWriteBuffers(), IsRoutable(), serverrec::MeshCookie(), serverrec::RecvPacket(), and serverrec::SendPacket(). .SS "#define STATE_NOAUTH_INBOUND 3" .PP Definition at line 38 of file connection.h. .PP -Referenced by serverrec::AddIncoming(). +Referenced by serverrec::AddIncoming(), and serverrec::FlushWriteBuffers(). .SS "#define STATE_NOAUTH_OUTBOUND 4" .PP Definition at line 39 of file connection.h. .PP -Referenced by serverrec::BeginLink(), and serverrec::MeshCookie(). +Referenced by serverrec::BeginLink(), serverrec::FlushWriteBuffers(), and serverrec::MeshCookie(). .SS "#define STATE_SERVICES 5" .PP Definition at line 40 of file connection.h. diff --git a/docs/man/man3/ctables.h.3 b/docs/man/man3/ctables.h.3 index c13d28638..82f623cc7 100644 --- a/docs/man/man3/ctables.h.3 +++ b/docs/man/man3/ctables.h.3 @@ -1,4 +1,4 @@ -.TH "ctables.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "ctables.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/dns.h.3 b/docs/man/man3/dns.h.3 index a570c881a..89c841b4a 100644 --- a/docs/man/man3/dns.h.3 +++ b/docs/man/man3/dns.h.3 @@ -1,4 +1,4 @@ -.TH "dns.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "dns.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/dns_ip4list.3 b/docs/man/man3/dns_ip4list.3 index 00ed1737e..799018e42 100644 --- a/docs/man/man3/dns_ip4list.3 +++ b/docs/man/man3/dns_ip4list.3 @@ -1,4 +1,4 @@ -.TH "dns_ip4list" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "dns_ip4list" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/hashcomp.h.3 b/docs/man/man3/hashcomp.h.3 index 6fe823fe7..5736183a8 100644 --- a/docs/man/man3/hashcomp.h.3 +++ b/docs/man/man3/hashcomp.h.3 @@ -1,4 +1,4 @@ -.TH "hashcomp.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "hashcomp.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/irc.3 b/docs/man/man3/irc.3 index 2431dfda3..1d972fbd5 100644 --- a/docs/man/man3/irc.3 +++ b/docs/man/man3/irc.3 @@ -1,4 +1,4 @@ -.TH "irc" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "irc" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/irc_InAddr_HashComp.3 b/docs/man/man3/irc_InAddr_HashComp.3 index cf5d69b5a..64b936da9 100644 --- a/docs/man/man3/irc_InAddr_HashComp.3 +++ b/docs/man/man3/irc_InAddr_HashComp.3 @@ -1,4 +1,4 @@ -.TH "irc::InAddr_HashComp" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "irc::InAddr_HashComp" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/irc_StrHashComp.3 b/docs/man/man3/irc_StrHashComp.3 index 316b5ee4e..b77547f8f 100644 --- a/docs/man/man3/irc_StrHashComp.3 +++ b/docs/man/man3/irc_StrHashComp.3 @@ -1,4 +1,4 @@ -.TH "irc::StrHashComp" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "irc::StrHashComp" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/irc_irc_char_traits.3 b/docs/man/man3/irc_irc_char_traits.3 index 037a35707..403416ac6 100644 --- a/docs/man/man3/irc_irc_char_traits.3 +++ b/docs/man/man3/irc_irc_char_traits.3 @@ -1,4 +1,4 @@ -.TH "irc::irc_char_traits" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "irc::irc_char_traits" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ircd_connector.3 b/docs/man/man3/ircd_connector.3 index aae366a68..a4a0b6011 100644 --- a/docs/man/man3/ircd_connector.3 +++ b/docs/man/man3/ircd_connector.3 @@ -1,4 +1,4 @@ -.TH "ircd_connector" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "ircd_connector" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -257,7 +257,7 @@ Return the servername on this established connection. Referenced by serverrec::S Get the port number being used for this connection If the connection is outbound this will be the remote port otherwise it will be the local port, so it can always be gautanteed as open at the address given in \fBGetServerIP()\fP. .SS "int ircd_connector::GetState ()" .PP -Get the state flags for this connection. Referenced by serverrec::SendPacket(). +Get the state flags for this connection. Referenced by IsRoutable(), and serverrec::SendPacket(). .SS "std::string ircd_connector::GetVersionString ()" .PP This method returns the version string of the remote server. If the server has no version string an empty string is returned. diff --git a/docs/man/man3/message.h.3 b/docs/man/man3/message.h.3 index 9d9feb812..e5330d038 100644 --- a/docs/man/man3/message.h.3 +++ b/docs/man/man3/message.h.3 @@ -1,4 +1,4 @@ -.TH "message.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "message.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/mode.h.3 b/docs/man/man3/mode.h.3 index fdf3e5628..58435b0aa 100644 --- a/docs/man/man3/mode.h.3 +++ b/docs/man/man3/mode.h.3 @@ -1,4 +1,4 @@ -.TH "mode.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "mode.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/modules.cpp.3 b/docs/man/man3/modules.cpp.3 index 1048e84e1..c0861bcfb 100644 --- a/docs/man/man3/modules.cpp.3 +++ b/docs/man/man3/modules.cpp.3 @@ -1,4 +1,4 @@ -.TH "modules.cpp" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "modules.cpp" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/modules.h.3 b/docs/man/man3/modules.h.3 index d33285313..25b175296 100644 --- a/docs/man/man3/modules.h.3 +++ b/docs/man/man3/modules.h.3 @@ -1,4 +1,4 @@ -.TH "modules.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "modules.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace.3 b/docs/man/man3/nspace.3 index ef0f57177..372e1adfe 100644 --- a/docs/man/man3/nspace.3 +++ b/docs/man/man3/nspace.3 @@ -1,4 +1,4 @@ -.TH "nspace" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_nspace_hash_ in_addr _.3 b/docs/man/man3/nspace_nspace_hash_ in_addr _.3 index 3cb96ec0c..7b40764d7 100644 --- a/docs/man/man3/nspace_nspace_hash_ in_addr _.3 +++ b/docs/man/man3/nspace_nspace_hash_ in_addr _.3 @@ -1,4 +1,4 @@ -.TH "nspace::nspace::hash< in_addr >" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace::nspace::hash< in_addr >" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_nspace_hash_ string _.3 b/docs/man/man3/nspace_nspace_hash_ string _.3 index 4821ed0a5..b27f352d0 100644 --- a/docs/man/man3/nspace_nspace_hash_ string _.3 +++ b/docs/man/man3/nspace_nspace_hash_ string _.3 @@ -1,4 +1,4 @@ -.TH "nspace::nspace::hash< string >" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace::nspace::hash< string >" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/serverrec.3 b/docs/man/man3/serverrec.3 index 128d70f37..756987d57 100644 --- a/docs/man/man3/serverrec.3 +++ b/docs/man/man3/serverrec.3 @@ -1,4 +1,4 @@ -.TH "serverrec" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "serverrec" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -122,468 +122,507 @@ A class that defines the local server or a remote server. Definition at line 30 .PP .SS "serverrec::serverrec ()" .PP -Constructor. Definition at line 42 of file servers.cpp. +Constructor. Definition at line 46 of file servers.cpp. .PP References connectors, connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, pingtime, connection::signon, sync_soon, TIME, usercount, usercount_i, and version. .PP .nf -43 { -44 strlcpy(name,'',256); -45 pingtime = 0; -46 lastping = TIME; -47 usercount_i = usercount = opercount = version = 0; -48 hops_away = 1; -49 signon = TIME; -50 jupiter = false; -51 fd = 0; -52 sync_soon = false; -53 strlcpy(nickserv,'',NICKMAX); -54 connectors.clear(); -55 } +47 { +48 strlcpy(name,'',256); +49 pingtime = 0; +50 lastping = TIME; +51 usercount_i = usercount = opercount = version = 0; +52 hops_away = 1; +53 signon = TIME; +54 jupiter = false; +55 fd = 0; +56 sync_soon = false; +57 strlcpy(nickserv,'',NICKMAX); +58 connectors.clear(); +59 } .fi .SS "serverrec::serverrec (char * n, long ver, bool jupe)" .PP -Constructor which initialises some of the main variables. Definition at line 62 of file servers.cpp. +Constructor which initialises some of the main variables. Definition at line 66 of file servers.cpp. .PP References connectors, connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, connection::signon, sync_soon, TIME, usercount, usercount_i, and version. .PP .nf -63 { -64 strlcpy(name,n,256); -65 lastping = TIME; -66 usercount_i = usercount = opercount = 0; -67 version = ver; -68 hops_away = 1; -69 signon = TIME; -70 jupiter = jupe; -71 fd = 0; -72 sync_soon = false; -73 strlcpy(nickserv,'',NICKMAX); -74 connectors.clear(); -75 } +67 { +68 strlcpy(name,n,256); +69 lastping = TIME; +70 usercount_i = usercount = opercount = 0; +71 version = ver; +72 hops_away = 1; +73 signon = TIME; +74 jupiter = jupe; +75 fd = 0; +76 sync_soon = false; +77 strlcpy(nickserv,'',NICKMAX); +78 connectors.clear(); +79 } .fi .SS "serverrec::~\fBserverrec\fP ()" .PP -Destructor. Definition at line 58 of file servers.cpp. +Destructor. Definition at line 62 of file servers.cpp. .PP .nf -59 { -60 } +63 { +64 } .fi .SH "Member Function Documentation" .PP .SS "bool serverrec::AddIncoming (int fd, char * targethost, int sourceport)" .PP -Add an incoming connection to the connection pool. (reserved for core use) Definition at line 207 of file servers.cpp. +Add an incoming connection to the connection pool. (reserved for core use) Definition at line 212 of file servers.cpp. .PP References connectors, DEBUG, ircd_connector::SetDescriptor(), ircd_connector::SetHostAndPort(), ircd_connector::SetServerName(), ircd_connector::SetState(), and STATE_NOAUTH_INBOUND. .PP .nf -208 { -209 ircd_connector connector; -210 -211 // targethost has been turned into an ip... -212 // we dont want this as the server name. -213 connector.SetServerName(targethost); -214 connector.SetDescriptor(newfd); -215 connector.SetState(STATE_NOAUTH_INBOUND); -216 int flags = fcntl(newfd, F_GETFL, 0); -217 fcntl(newfd, F_SETFL, flags | O_NONBLOCK); -218 int sendbuf = 32768; -219 int recvbuf = 32768; -220 setsockopt(newfd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf)); -221 setsockopt(newfd,SOL_SOCKET,SO_RCVBUF,(const void *)&recvbuf,sizeof(sendbuf)); -222 connector.SetHostAndPort(targethost, sourceport); -223 connector.SetState(STATE_NOAUTH_INBOUND); -224 log(DEBUG,'serverrec::AddIncoming() Added connection: %s:%d',targethost,sourceport); -225 this->connectors.push_back(connector); -226 return true; -227 } +213 { +214 ircd_connector connector; +215 +216 // targethost has been turned into an ip... +217 // we dont want this as the server name. +218 connector.SetServerName(targethost); +219 connector.SetDescriptor(newfd); +220 connector.SetState(STATE_NOAUTH_INBOUND); +221 int flags = fcntl(newfd, F_GETFL, 0); +222 fcntl(newfd, F_SETFL, flags | O_NONBLOCK); +223 int sendbuf = 32768; +224 int recvbuf = 32768; +225 setsockopt(newfd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf)); +226 setsockopt(newfd,SOL_SOCKET,SO_RCVBUF,(const void *)&recvbuf,sizeof(sendbuf)); +227 connector.SetHostAndPort(targethost, sourceport); +228 connector.SetState(STATE_NOAUTH_INBOUND); +229 log(DEBUG,'serverrec::AddIncoming() Added connection: %s:%d',targethost,sourceport); +230 this->connectors.push_back(connector); +231 return true; +232 } .fi .SS "bool serverrec::BeginLink (char * targethost, int port, char * password, char * servername, int myport)" .PP -Begin an outbound link to another ircd at targethost. Definition at line 138 of file servers.cpp. +Begin an outbound link to another ircd at targethost. Definition at line 142 of file servers.cpp. .PP References connectors, connection::fd, FindHost(), ircd_connector::MakeOutboundConnection(), SendPacket(), ircd_connector::SetHostAndPort(), ircd_connector::SetServerName(), ircd_connector::SetState(), STATE_DISCONNECTED, and STATE_NOAUTH_OUTBOUND. .PP .nf -139 { -140 char connect[MAXBUF]; -141 -142 ircd_connector connector; -143 ircd_connector *cn = this->FindHost(servername); -144 +143 { +144 char connect[MAXBUF]; 145 -146 if (cn) -147 { -148 WriteOpers('CONNECT aborted: Server %s already exists',servername); -149 return false; -150 } -151 -152 -153 if (this->fd) -154 { -155 if (connector.MakeOutboundConnection(targethost,newport)) -156 { -157 // targethost has been turned into an ip... -158 // we dont want this as the server name. -159 connector.SetServerName(servername); -160 snprintf(connect,MAXBUF,'S %s %s %lu %s :%s',getservername().c_str(),password,(unsigned long)myport,GetRevision().c_str(),getserverdesc().c_str()); -161 connector.SetState(STATE_NOAUTH_OUTBOUND); -162 connector.SetHostAndPort(targethost, newport); -163 this->connectors.push_back(connector); -164 return this->SendPacket(connect, servername); -165 } -166 else -167 { -168 connector.SetState(STATE_DISCONNECTED); -169 WriteOpers('Could not create outbound connection to %s:%d',targethost,newport); -170 } -171 } -172 return false; -173 } +146 ircd_connector connector; +147 ircd_connector *cn = this->FindHost(servername); +148 +149 +150 if (cn) +151 { +152 WriteOpers('CONNECT aborted: Server %s already exists',servername); +153 return false; +154 } +155 +156 +157 if (this->fd) +158 { +159 if (connector.MakeOutboundConnection(targethost,newport)) +160 { +161 // targethost has been turned into an ip... +162 // we dont want this as the server name. +163 connector.SetServerName(servername); +164 snprintf(connect,MAXBUF,'S %s %s %lu %s :%s',getservername().c_str(),password,(unsigned long)myport,GetRevision().c_str(),getserverdesc().c_str()); +165 connector.SetState(STATE_NOAUTH_OUTBOUND); +166 connector.SetHostAndPort(targethost, newport); +167 this->connectors.push_back(connector); +168 // this packet isn't actually sent until the socket connects -- the STATE_NOAUTH_OUTBOUND state +169 // queues outbound data until the socket is polled as writeable (e.g. the connection is established) +170 return this->SendPacket(connect, servername); +171 } +172 else +173 { +174 connector.SetState(STATE_DISCONNECTED); +175 WriteOpers('Could not create outbound connection to %s:%d',targethost,newport); +176 } +177 } +178 return false; +179 } .fi .SS "bool serverrec::CreateListener (char * host, int p)" .PP -Create a listening socket on 'host' using port number 'p'. Definition at line 77 of file servers.cpp. +Create a listening socket on 'host' using port number 'p'. Definition at line 81 of file servers.cpp. .PP References connection::fd, MaxConn, and connection::port. .PP .nf -78 { -79 sockaddr_in host_address; -80 int flags; -81 in_addr addy; -82 int on = 0; -83 struct linger linger = { 0 }; -84 -85 this->port = p; -86 -87 fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); -88 if (fd <= 0) -89 { -90 return false; -91 } -92 -93 setsockopt(fd,SOL_SOCKET,SO_REUSEADDR,(const char*)&on,sizeof(on)); -94 linger.l_onoff = 1; -95 linger.l_linger = 1; -96 setsockopt(fd,SOL_SOCKET,SO_LINGER,(const char*)&linger,sizeof(linger)); -97 -98 // attempt to increase socket sendq and recvq as high as its possible -99 // to get them on linux. -100 int sendbuf = 32768; -101 int recvbuf = 32768; -102 setsockopt(fd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf)); -103 setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(const void *)&recvbuf,sizeof(sendbuf)); -104 -105 memset((void*)&host_address, 0, sizeof(host_address)); -106 -107 host_address.sin_family = AF_INET; +82 { +83 sockaddr_in host_address; +84 int flags; +85 in_addr addy; +86 int on = 0; +87 struct linger linger = { 0 }; +88 +89 this->port = p; +90 +91 fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); +92 if (fd <= 0) +93 { +94 return false; +95 } +96 +97 setsockopt(fd,SOL_SOCKET,SO_REUSEADDR,(const char*)&on,sizeof(on)); +98 linger.l_onoff = 1; +99 linger.l_linger = 1; +100 setsockopt(fd,SOL_SOCKET,SO_LINGER,(const char*)&linger,sizeof(linger)); +101 +102 // attempt to increase socket sendq and recvq as high as its possible +103 // to get them on linux. +104 int sendbuf = 32768; +105 int recvbuf = 32768; +106 setsockopt(fd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf)); +107 setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(const void *)&recvbuf,sizeof(sendbuf)); 108 -109 if (!strcmp(newhost,'')) -110 { -111 host_address.sin_addr.s_addr = htonl(INADDR_ANY); -112 } -113 else +109 memset((void*)&host_address, 0, sizeof(host_address)); +110 +111 host_address.sin_family = AF_INET; +112 +113 if (!strcmp(newhost,'')) 114 { -115 inet_aton(newhost,&addy); -116 host_address.sin_addr = addy; -117 } -118 -119 host_address.sin_port = htons(p); -120 -121 if (bind(fd,(sockaddr*)&host_address,sizeof(host_address))<0) -122 { -123 return false; -124 } -125 -126 // make the socket non-blocking -127 flags = fcntl(fd, F_GETFL, 0); -128 fcntl(fd, F_SETFL, flags | O_NONBLOCK); +115 host_address.sin_addr.s_addr = htonl(INADDR_ANY); +116 } +117 else +118 { +119 inet_aton(newhost,&addy); +120 host_address.sin_addr = addy; +121 } +122 +123 host_address.sin_port = htons(p); +124 +125 if (bind(fd,(sockaddr*)&host_address,sizeof(host_address))<0) +126 { +127 return false; +128 } 129 -130 this->port = p; -131 -132 listen(this->fd, MaxConn); +130 // make the socket non-blocking +131 flags = fcntl(fd, F_GETFL, 0); +132 fcntl(fd, F_SETFL, flags | O_NONBLOCK); 133 -134 return true; -135 } +134 this->port = p; +135 +136 listen(this->fd, MaxConn); +137 +138 return true; +139 } .fi .SS "\fBircd_connector\fP * serverrec::FindHost (std::string host)" .PP -Find the \fBircd_connector\fP oject related to a certain servername given in 'host'. Definition at line 237 of file servers.cpp. +Find the \fBircd_connector\fP oject related to a certain servername given in 'host'. Definition at line 242 of file servers.cpp. .PP References connectors. .PP -Referenced by BeginLink(), and SendPacket(). +Referenced by BeginLink(), IsRoutable(), and SendPacket(). .PP .nf -238 { -239 for (int i = 0; i < this->connectors.size(); i++) -240 { -241 if (this->connectors[i].GetServerName() == findhost) -242 { -243 return &this->connectors[i]; -244 } -245 } -246 return NULL; -247 } +243 { +244 for (int i = 0; i < this->connectors.size(); i++) +245 { +246 if (this->connectors[i].GetServerName() == findhost) +247 { +248 return &this->connectors[i]; +249 } +250 } +251 return NULL; +252 } .fi .SS "void serverrec::FlushWriteBuffers ()" .PP -Flushes all data waiting to be written for all of this server's connections. Definition at line 249 of file servers.cpp. +Flushes all data waiting to be written for all of this server's connections. Definition at line 284 of file servers.cpp. .PP -References connectors, and STATE_DISCONNECTED. +References connectors, has_been_netsplit, IsRoutable(), STATE_DISCONNECTED, STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND, and TIME. .PP .nf -250 { -251 for (int i = 0; i < this->connectors.size(); i++) -252 { -253 if (this->connectors[i].GetState() != STATE_DISCONNECTED) -254 { -255 if (!this->connectors[i].CheckPing()) -256 { -257 WriteOpers('*** Lost single connection to %s: Ping timeout',this->connectors[i].GetServerName().c_str()); -258 this->connectors[i].CloseConnection(); -259 this->connectors[i].SetState(STATE_DISCONNECTED); -260 } -261 } -262 if (this->connectors[i].HasBufferedOutput()) -263 { -264 if (!this->connectors[i].FlushWriteBuf()) -265 { -266 // if we're here the write() caused an error, we cannot proceed -267 WriteOpers('*** Lost single connection to %s, link inactive and retrying: %s',this->connectors[i].GetServerName().c_str(),this->connectors[i].GetWriteError().c_str()); -268 this->connectors[i].CloseConnection(); -269 this->connectors[i].SetState(STATE_DISCONNECTED); -270 } -271 } -272 } -273 } +285 { +286 for (int i = 0; i < this->connectors.size(); i++) +287 { +288 // don't try and ping a NOAUTH_OUTBOUND state, its not authed yet! +289 if ((this->connectors[i].GetState() == STATE_NOAUTH_OUTBOUND) && (TIME > this->connectors[i].age+30)) +290 { +291 // however if we reach this timer its connected timed out :) +292 WriteOpers('*** Connection to %s timed out',this->connectors[i].GetServerName().c_str()); +293 DoSplit(this->connectors[i].GetServerName().c_str()); +294 return; +295 } +296 else if ((this->connectors[i].GetState() == STATE_NOAUTH_INBOUND) && (TIME > this->connectors[i].age+30)) +297 { +298 WriteOpers('*** Connection from %s timed out',this->connectors[i].GetServerName().c_str()); +299 DoSplit(this->connectors[i].GetServerName().c_str()); +300 return; +301 } +302 else if (this->connectors[i].GetState() != STATE_DISCONNECTED) +303 { +304 if (!this->connectors[i].CheckPing()) +305 { +306 WriteOpers('*** Lost single connection to %s: Ping timeout',this->connectors[i].GetServerName().c_str()); +307 this->connectors[i].CloseConnection(); +308 this->connectors[i].SetState(STATE_DISCONNECTED); +309 if (!IsRoutable(this->connectors[i].GetServerName())) +310 { +311 WriteOpers('*** Server %s is no longer routable, disconnecting.',this->connectors[i].GetServerName().c_str()); +312 DoSplit(this->connectors[i].GetServerName().c_str()); +313 } +314 has_been_netsplit = true; +315 } +316 } +317 if (this->connectors[i].HasBufferedOutput()) +318 { +319 if (!this->connectors[i].FlushWriteBuf()) +320 { +321 // if we're here the write() caused an error, we cannot proceed +322 WriteOpers('*** Lost single connection to %s, link inactive and retrying: %s',this->connectors[i].GetServerName().c_str(),this->connectors[i].GetWriteError().c_str()); +323 this->connectors[i].CloseConnection(); +324 this->connectors[i].SetState(STATE_DISCONNECTED); +325 if (!IsRoutable(this->connectors[i].GetServerName())) +326 { +327 WriteOpers('*** Server %s is no longer routable, disconnecting.',this->connectors[i].GetServerName().c_str()); +328 DoSplit(this->connectors[i].GetServerName().c_str()); +329 } +330 has_been_netsplit = true; +331 } +332 } +333 } +334 } .fi .SS "bool serverrec::MeshCookie (char * targethost, int port, unsigned long cookie, char * servername)" .PP -Begin an outbound mesh link to another ircd on a network you are already an authenticated member of. Definition at line 176 of file servers.cpp. +Begin an outbound mesh link to another ircd on a network you are already an authenticated member of. Definition at line 182 of file servers.cpp. .PP -References connectors, connection::fd, ircd_connector::MakeOutboundConnection(), SendPacket(), ircd_connector::SetHostAndPort(), ircd_connector::SetServerName(), ircd_connector::SetState(), STATE_CONNECTED, STATE_DISCONNECTED, and STATE_NOAUTH_OUTBOUND. +References connectors, connection::fd, ircd_connector::MakeOutboundConnection(), SendPacket(), ircd_connector::SetHostAndPort(), ircd_connector::SetServerName(), ircd_connector::SetState(), STATE_DISCONNECTED, and STATE_NOAUTH_OUTBOUND. .PP .nf -177 { -178 char connect[MAXBUF]; -179 -180 ircd_connector connector; -181 -182 WriteOpers('Establishing meshed link to %s:%d',servername,newport); -183 -184 if (this->fd) -185 { -186 if (connector.MakeOutboundConnection(targethost,newport)) -187 { -188 // targethost has been turned into an ip... -189 // we dont want this as the server name. -190 connector.SetServerName(servername); -191 snprintf(connect,MAXBUF,'- %lu %s :%s',cookie,getservername().c_str(),getserverdesc().c_str()); -192 connector.SetState(STATE_NOAUTH_OUTBOUND); -193 connector.SetHostAndPort(targethost, newport); -194 connector.SetState(STATE_CONNECTED); -195 this->connectors.push_back(connector); -196 return this->SendPacket(connect, servername); -197 } -198 else -199 { -200 connector.SetState(STATE_DISCONNECTED); -201 WriteOpers('Could not create outbound connection to %s:%d',targethost,newport); +183 { +184 char connect[MAXBUF]; +185 +186 ircd_connector connector; +187 +188 WriteOpers('Establishing meshed link to %s:%d',servername,newport); +189 +190 if (this->fd) +191 { +192 if (connector.MakeOutboundConnection(targethost,newport)) +193 { +194 // targethost has been turned into an ip... +195 // we dont want this as the server name. +196 connector.SetServerName(servername); +197 snprintf(connect,MAXBUF,'- %lu %s :%s',cookie,getservername().c_str(),getserverdesc().c_str()); +198 connector.SetState(STATE_NOAUTH_OUTBOUND); +199 connector.SetHostAndPort(targethost, newport); +200 this->connectors.push_back(connector); +201 return this->SendPacket(connect, servername); 202 } -203 } -204 return false; -205 } +203 else +204 { +205 connector.SetState(STATE_DISCONNECTED); +206 WriteOpers('Could not create outbound connection to %s:%d',targethost,newport); +207 } +208 } +209 return false; +210 } .fi .SS "bool serverrec::RecvPacket (std::deque< std::string > & messages, char * host, std::deque< std::string > & sums)" .PP -Returns the next available packet and returns true if data is available. Writes the servername the data came from to 'host'. If no data is available this function returns false. This function will automatically close broken links and reroute pathways, generating split messages on the network. Definition at line 370 of file servers.cpp. +Returns the next available packet and returns true if data is available. Writes the servername the data came from to 'host'. If no data is available this function returns false. This function will automatically close broken links and reroute pathways, generating split messages on the network. Definition at line 431 of file servers.cpp. .PP -References already_have_sum(), connectors, DEBUG, and STATE_DISCONNECTED. +References already_have_sum(), connectors, DEBUG, has_been_netsplit, IsRoutable(), and STATE_DISCONNECTED. .PP .nf -371 { -372 char data[65536]; -373 memset(data, 0, 65536); -374 for (int i = 0; i < this->connectors.size(); i++) -375 { -376 if (this->connectors[i].GetState() != STATE_DISCONNECTED) -377 { -378 // returns false if the packet could not be sent (e.g. target host down) -379 int rcvsize = 0; -380 -381 // check if theres any data on this socket -382 // if not, continue onwards to the next. -383 pollfd polls; -384 polls.fd = this->connectors[i].GetDescriptor(); -385 polls.events = POLLIN; -386 int ret = poll(&polls,1,1); -387 if (ret <= 0) continue; -388 -389 rcvsize = recv(this->connectors[i].GetDescriptor(),data,65000,0); -390 data[rcvsize] = '\0'; -391 if (rcvsize == -1) -392 { -393 if (errno != EAGAIN) -394 { -395 log(DEBUG,'recv() failed for serverrec::RecvPacket(): %s',strerror(errno)); -396 log(DEBUG,'Disabling connector: %s',this->connectors[i].GetServerName().c_str()); -397 this->connectors[i].CloseConnection(); -398 this->connectors[i].SetState(STATE_DISCONNECTED); -399 } -400 } -401 int pushed = 0; -402 if (rcvsize > 0) -403 { -404 if (!this->connectors[i].AddBuffer(data)) -405 { -406 WriteOpers('*** Read buffer for %s exceeds maximum, closing connection!',this->connectors[i].GetServerName().c_str()); -407 this->connectors[i].CloseConnection(); -408 this->connectors[i].SetState(STATE_DISCONNECTED); -409 } -410 if (this->connectors[i].BufferIsComplete()) -411 { -412 this->connectors[i].ResetPing(); -413 while (this->connectors[i].BufferIsComplete()) -414 { -415 std::string text = this->connectors[i].GetBuffer(); -416 if (text != '') -417 { -418 if ((text[0] == ':') && (text.find(' ') != std::string::npos)) -419 { -420 std::string orig = text; -421 log(DEBUG,'Original: %s',text.c_str()); -422 std::string sum = text.substr(1,text.find(' ')-1); -423 text = text.substr(text.find(' ')+1,text.length()); -424 std::string possible_token = text.substr(1,text.find(' ')-1); -425 if (possible_token.length() > 1) -426 { -427 sums.push_back('*'); -428 text = orig; -429 log(DEBUG,'Non-mesh, non-tokenized string passed up the chain'); -430 } -431 else -432 { -433 log(DEBUG,'Packet sum: '%s'',sum.c_str()); -434 if ((already_have_sum(sum)) && (sum != '*')) -435 { -436 // we don't accept dupes -437 continue; -438 } -439 sums.push_back(sum.c_str()); -440 } -441 } -442 else sums.push_back('*'); -443 messages.push_back(text.c_str()); -444 strlcpy(recvhost,this->connectors[i].GetServerName().c_str(),160); -445 log(DEBUG,'serverrec::RecvPacket() %d:%s->%s',pushed++,recvhost,text.c_str()); -446 } -447 } -448 return true; -449 } -450 } -451 } -452 } -453 // nothing new yet -- message and host will be undefined -454 return false; -455 } +432 { +433 char data[65536]; +434 memset(data, 0, 65536); +435 for (int i = 0; i < this->connectors.size(); i++) +436 { +437 if (this->connectors[i].GetState() != STATE_DISCONNECTED) +438 { +439 // returns false if the packet could not be sent (e.g. target host down) +440 int rcvsize = 0; +441 +442 // check if theres any data on this socket +443 // if not, continue onwards to the next. +444 pollfd polls; +445 polls.fd = this->connectors[i].GetDescriptor(); +446 polls.events = POLLIN; +447 int ret = poll(&polls,1,1); +448 if (ret <= 0) continue; +449 +450 rcvsize = recv(this->connectors[i].GetDescriptor(),data,65000,0); +451 data[rcvsize] = '\0'; +452 if (rcvsize == -1) +453 { +454 if (errno != EAGAIN) +455 { +456 log(DEBUG,'recv() failed for serverrec::RecvPacket(): %s',strerror(errno)); +457 log(DEBUG,'Disabling connector: %s',this->connectors[i].GetServerName().c_str()); +458 this->connectors[i].CloseConnection(); +459 this->connectors[i].SetState(STATE_DISCONNECTED); +460 if (!IsRoutable(this->connectors[i].GetServerName())) +461 { +462 WriteOpers('*** Server %s is no longer routable, disconnecting.',this->connectors[i].GetServerName().c_str()); +463 DoSplit(this->connectors[i].GetServerName().c_str()); +464 } +465 has_been_netsplit = true; +466 } +467 } +468 int pushed = 0; +469 if (rcvsize > 0) +470 { +471 if (!this->connectors[i].AddBuffer(data)) +472 { +473 WriteOpers('*** Read buffer for %s exceeds maximum, closing connection!',this->connectors[i].GetServerName().c_str()); +474 this->connectors[i].CloseConnection(); +475 this->connectors[i].SetState(STATE_DISCONNECTED); +476 if (!IsRoutable(this->connectors[i].GetServerName())) +477 { +478 WriteOpers('*** Server %s is no longer routable, disconnecting.',this->connectors[i].GetServerName().c_str()); +479 DoSplit(this->connectors[i].GetServerName().c_str()); +480 } +481 has_been_netsplit = true; +482 } +483 if (this->connectors[i].BufferIsComplete()) +484 { +485 this->connectors[i].ResetPing(); +486 while (this->connectors[i].BufferIsComplete()) +487 { +488 std::string text = this->connectors[i].GetBuffer(); +489 if (text != '') +490 { +491 if ((text[0] == ':') && (text.find(' ') != std::string::npos)) +492 { +493 std::string orig = text; +494 log(DEBUG,'Original: %s',text.c_str()); +495 std::string sum = text.substr(1,text.find(' ')-1); +496 text = text.substr(text.find(' ')+1,text.length()); +497 std::string possible_token = text.substr(1,text.find(' ')-1); +498 if (possible_token.length() > 1) +499 { +500 sums.push_back('*'); +501 text = orig; +502 log(DEBUG,'Non-mesh, non-tokenized string passed up the chain'); +503 } +504 else +505 { +506 log(DEBUG,'Packet sum: '%s'',sum.c_str()); +507 if ((already_have_sum(sum)) && (sum != '*')) +508 { +509 // we don't accept dupes +510 continue; +511 } +512 sums.push_back(sum.c_str()); +513 } +514 } +515 else sums.push_back('*'); +516 messages.push_back(text.c_str()); +517 strlcpy(recvhost,this->connectors[i].GetServerName().c_str(),160); +518 log(DEBUG,'serverrec::RecvPacket() %d:%s->%s',pushed++,recvhost,text.c_str()); +519 } +520 } +521 return true; +522 } +523 } +524 } +525 } +526 // nothing new yet -- message and host will be undefined +527 return false; +528 } .fi .SS "bool serverrec::SendPacket (char * message, const char * host)" .PP -Send a message to a server by name, if the server is unavailable directly route the packet via another server If the server still cannot be reached after attempting to route the message remotely, returns false. Definition at line 275 of file servers.cpp. +Send a message to a server by name, if the server is unavailable directly route the packet via another server If the server still cannot be reached after attempting to route the message remotely, returns false. Definition at line 336 of file servers.cpp. .PP References ircd_connector::AddWriteBuf(), ircd_connector::CloseConnection(), connectors, DEBUG, FindHost(), ircd_connector::FlushWriteBuf(), ircd_connector::GetServerName(), ircd_connector::GetState(), ircd_connector::GetWriteError(), ircd_connector::SetState(), and STATE_DISCONNECTED. .PP Referenced by BeginLink(), and MeshCookie(). .PP .nf -276 { -277 if ((!message) || (!sendhost)) -278 return true; -279 -280 ircd_connector* cn = this->FindHost(sendhost); -281 -282 if (!strchr(message,'\n')) -283 { -284 strlcat(message,'\n',MAXBUF); -285 } -286 -287 if (cn) -288 { -289 log(DEBUG,'main: serverrec::SendPacket() sent '%s' to %s',message,cn->GetServerName().c_str()); -290 -291 if (cn->GetState() == STATE_DISCONNECTED) -292 { -293 // fix: can only route one hop to avoid a loop -294 if (strncmp(message,'R ',2)) -295 { -296 log(DEBUG,'Not a double reroute'); -297 // this route is down, we must re-route the packet through an available point in the mesh. -298 for (int k = 0; k < this->connectors.size(); k++) -299 { -300 log(DEBUG,'Check connector %d: %s',k,this->connectors[k].GetServerName().c_str()); -301 // search for another point in the mesh which can 'reach' where we want to go -302 for (int m = 0; m < this->connectors[k].routes.size(); m++) -303 { -304 if (!strcasecmp(this->connectors[k].routes[m].c_str(),sendhost)) -305 { -306 log(DEBUG,'Found alternative route for packet: %s',this->connectors[k].GetServerName().c_str()); -307 char buffer[MAXBUF]; -308 snprintf(buffer,MAXBUF,'R %s %s',sendhost,message); -309 this->SendPacket(buffer,this->connectors[k].GetServerName().c_str()); -310 return true; -311 } -312 } -313 } -314 } -315 char buffer[MAXBUF]; -316 snprintf(buffer,MAXBUF,'& %s',sendhost); -317 WriteOpers('*** All connections to %s lost.',sendhost); -318 NetSendToAllExcept(sendhost,buffer); -319 DoSplit(sendhost); -320 return false; -321 } -322 -323 // returns false if the packet could not be sent (e.g. target host down) -324 if (!cn->AddWriteBuf(message)) -325 { -326 // if we're here, there was an error pending, and the send cannot proceed -327 log(DEBUG,'cn->AddWriteBuf() failed for serverrec::SendPacket(): %s',cn->GetWriteError().c_str()); -328 log(DEBUG,'Disabling connector: %s',cn->GetServerName().c_str()); -329 cn->CloseConnection(); -330 cn->SetState(STATE_DISCONNECTED); -331 WriteOpers('*** Lost single connection to %s, link inactive and retrying: %s',cn->GetServerName().c_str(),cn->GetWriteError().c_str()); -332 // retry the packet along a new route so either arrival OR failure are gauranteed (bugfix) -333 return this->SendPacket(message,sendhost); -334 } -335 if (!cn->FlushWriteBuf()) -336 { -337 // if we're here the write() caused an error, we cannot proceed -338 log(DEBUG,'cn->FlushWriteBuf() failed for serverrec::SendPacket(): %s',cn->GetWriteError().c_str()); -339 log(DEBUG,'Disabling connector: %s',cn->GetServerName().c_str()); -340 cn->CloseConnection(); -341 cn->SetState(STATE_DISCONNECTED); -342 WriteOpers('*** Lost single connection to %s, link inactive and retrying: %s',cn->GetServerName().c_str(),cn->GetWriteError().c_str()); -343 // retry the packet along a new route so either arrival OR failure are gauranteed -344 return this->SendPacket(message,sendhost); -345 } -346 return true; -347 } -348 } +337 { +338 if ((!message) || (!sendhost)) +339 return true; +340 +341 ircd_connector* cn = this->FindHost(sendhost); +342 +343 if (!strchr(message,'\n')) +344 { +345 strlcat(message,'\n',MAXBUF); +346 } +347 +348 if (cn) +349 { +350 log(DEBUG,'main: serverrec::SendPacket() sent '%s' to %s',message,cn->GetServerName().c_str()); +351 +352 if (cn->GetState() == STATE_DISCONNECTED) +353 { +354 // fix: can only route one hop to avoid a loop +355 if (strncmp(message,'R ',2)) +356 { +357 log(DEBUG,'Not a double reroute'); +358 // this route is down, we must re-route the packet through an available point in the mesh. +359 for (int k = 0; k < this->connectors.size(); k++) +360 { +361 log(DEBUG,'Check connector %d: %s',k,this->connectors[k].GetServerName().c_str()); +362 // search for another point in the mesh which can 'reach' where we want to go +363 for (int m = 0; m < this->connectors[k].routes.size(); m++) +364 { +365 if (!strcasecmp(this->connectors[k].routes[m].c_str(),sendhost)) +366 { +367 log(DEBUG,'Found alternative route for packet: %s',this->connectors[k].GetServerName().c_str()); +368 char buffer[MAXBUF]; +369 snprintf(buffer,MAXBUF,'R %s %s',sendhost,message); +370 this->SendPacket(buffer,this->connectors[k].GetServerName().c_str()); +371 return true; +372 } +373 } +374 } +375 } +376 char buffer[MAXBUF]; +377 snprintf(buffer,MAXBUF,'& %s',sendhost); +378 WriteOpers('*** All connections to %s lost.',sendhost); +379 NetSendToAllExcept(sendhost,buffer); +380 DoSplit(sendhost); +381 return false; +382 } +383 +384 // returns false if the packet could not be sent (e.g. target host down) +385 if (!cn->AddWriteBuf(message)) +386 { +387 // if we're here, there was an error pending, and the send cannot proceed +388 log(DEBUG,'cn->AddWriteBuf() failed for serverrec::SendPacket(): %s',cn->GetWriteError().c_str()); +389 log(DEBUG,'Disabling connector: %s',cn->GetServerName().c_str()); +390 cn->CloseConnection(); +391 cn->SetState(STATE_DISCONNECTED); +392 WriteOpers('*** Lost single connection to %s, link inactive and retrying: %s',cn->GetServerName().c_str(),cn->GetWriteError().c_str()); +393 // retry the packet along a new route so either arrival OR failure are gauranteed (bugfix) +394 return this->SendPacket(message,sendhost); +395 } +396 if (!cn->FlushWriteBuf()) +397 { +398 // if we're here the write() caused an error, we cannot proceed +399 log(DEBUG,'cn->FlushWriteBuf() failed for serverrec::SendPacket(): %s',cn->GetWriteError().c_str()); +400 log(DEBUG,'Disabling connector: %s',cn->GetServerName().c_str()); +401 cn->CloseConnection(); +402 cn->SetState(STATE_DISCONNECTED); +403 WriteOpers('*** Lost single connection to %s, link inactive and retrying: %s',cn->GetServerName().c_str(),cn->GetWriteError().c_str()); +404 // retry the packet along a new route so either arrival OR failure are gauranteed +405 return this->SendPacket(message,sendhost); +406 } +407 return true; +408 } +409 } .fi .SS "void serverrec::TerminateLink (char * targethost)" .PP -Terminate a link to 'targethost' by calling the \fBircd_connector::CloseConnection\fP method. Definition at line 229 of file servers.cpp. +Terminate a link to 'targethost' by calling the \fBircd_connector::CloseConnection\fP method. Definition at line 234 of file servers.cpp. .PP .nf -230 { -231 // this locates the targethost in the serverrec::connectors vector of the class, -232 // and terminates it by sending it an SQUIT token and closing its descriptor. -233 // TerminateLink with a null string causes a terminate of ALL links -234 } +235 { +236 // this locates the targethost in the serverrec::connectors vector of the class, +237 // and terminates it by sending it an SQUIT token and closing its descriptor. +238 // TerminateLink with a null string causes a terminate of ALL links +239 } .fi .SH "Member Data Documentation" .PP @@ -591,7 +630,7 @@ Terminate a link to 'targethost' by calling the \fBircd_connector::CloseConnecti .PP With a serverrec, this is a list of all established server connections. Definition at line 81 of file servers.h. .PP -Referenced by AddIncoming(), BeginLink(), FindHost(), FlushWriteBuffers(), MeshCookie(), RecvPacket(), SendPacket(), and serverrec(). +Referenced by AddIncoming(), BeginLink(), FindHost(), FlushWriteBuffers(), IsRoutable(), MeshCookie(), RecvPacket(), SendPacket(), and serverrec(). .SS "char \fBserverrec::description\fP[MAXBUF]" .PP Description of the server. Definition at line 61 of file servers.h. diff --git a/docs/man/man3/servers.cpp.3 b/docs/man/man3/servers.cpp.3 index 02500d311..bedaea1c4 100644 --- a/docs/man/man3/servers.cpp.3 +++ b/docs/man/man3/servers.cpp.3 @@ -1,4 +1,4 @@ -.TH "servers.cpp" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "servers.cpp" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -45,6 +45,9 @@ servers.cpp \- .in +1c .ti -1c +.RI "bool \fBIsRoutable\fP (std::string servername)" +.br +.ti -1c .RI "bool \fBalready_have_sum\fP (std::string sum)" .br .in -1c @@ -58,6 +61,12 @@ servers.cpp \- .RI "int \fBMaxConn\fP" .br .ti -1c +.RI "\fBserverrec\fP * \fBme\fP [32]" +.br +.ti -1c +.RI "bool \fBhas_been_netsplit\fP" +.br +.ti -1c .RI "std::deque< std::string > \fBxsums\fP" .br .in -1c @@ -65,42 +74,85 @@ servers.cpp \- .PP .SS "bool already_have_sum (std::string sum)" .PP -Definition at line 350 of file servers.cpp. +Definition at line 411 of file servers.cpp. .PP References xsums. .PP Referenced by serverrec::RecvPacket(). .PP .nf -351 { -352 for (int i = 0; i < xsums.size(); i++) -353 { -354 if (xsums[i] == sum) -355 { -356 return true; -357 } -358 } -359 if (xsums.size() >= 128) -360 { -361 xsums.pop_front(); -362 } -363 xsums.push_back(sum); -364 return false; -365 } +412 { +413 for (int i = 0; i < xsums.size(); i++) +414 { +415 if (xsums[i] == sum) +416 { +417 return true; +418 } +419 } +420 if (xsums.size() >= 128) +421 { +422 xsums.pop_front(); +423 } +424 xsums.push_back(sum); +425 return false; +426 } +.fi +.SS "bool IsRoutable (std::string servername)" +.PP +Definition at line 256 of file servers.cpp. +.PP +References serverrec::connectors, serverrec::FindHost(), ircd_connector::GetState(), me, and STATE_DISCONNECTED. +.PP +Referenced by serverrec::FlushWriteBuffers(), and serverrec::RecvPacket(). +.PP +.nf +257 { +258 for (int x = 0; x < 32; x++) if (me[x]) +259 { +260 ircd_connector* cn = me[x]->FindHost(servername.c_str()); +261 if (cn) +262 { +263 if (cn->GetState() == STATE_DISCONNECTED) +264 { +265 for (int k = 0; k < me[x]->connectors.size(); k++) +266 { +267 for (int m = 0; m < me[x]->connectors[k].routes.size(); m++) +268 { +269 if (!strcasecmp(me[x]->connectors[k].routes[m].c_str(),servername.c_str())) +270 { +271 return true; +272 } +273 } +274 } +275 return false; +276 } +277 else return true; +278 } +279 } +280 return false; +281 } .fi .SH "Variable Documentation" .PP +.SS "bool \fBhas_been_netsplit\fP" +.PP +Definition at line 42 of file servers.cpp. +.PP +Referenced by serverrec::FlushWriteBuffers(), and serverrec::RecvPacket(). .SS "int \fBMaxConn\fP" .PP Definition at line 38 of file servers.cpp. .PP Referenced by serverrec::CreateListener(). +.SS "\fBserverrec\fP* \fBme\fP[32]" +.PP +Definition at line 40 of file servers.cpp. .SS "time_t \fBTIME\fP" .PP Definition at line 37 of file servers.cpp. .SS "std::deque \fBxsums\fP" .PP -Definition at line 40 of file servers.cpp. +Definition at line 44 of file servers.cpp. .PP Referenced by already_have_sum(). .SH "Author" diff --git a/docs/man/man3/servers.h.3 b/docs/man/man3/servers.h.3 index 19096a747..7a695dac2 100644 --- a/docs/man/man3/servers.h.3 +++ b/docs/man/man3/servers.h.3 @@ -1,4 +1,4 @@ -.TH "servers.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "servers.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/std.3 b/docs/man/man3/std.3 index 3299bba05..2f3412140 100644 --- a/docs/man/man3/std.3 +++ b/docs/man/man3/std.3 @@ -1,4 +1,4 @@ -.TH "std" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "std" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/std_char_traits.3 b/docs/man/man3/std_char_traits.3 index b53703016..055db1ba0 100644 --- a/docs/man/man3/std_char_traits.3 +++ b/docs/man/man3/std_char_traits.3 @@ -1,4 +1,4 @@ -.TH "std::char_traits" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "std::char_traits" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ucrec.3 b/docs/man/man3/ucrec.3 index 7a868658d..e39d6505b 100644 --- a/docs/man/man3/ucrec.3 +++ b/docs/man/man3/ucrec.3 @@ -1,4 +1,4 @@ -.TH "ucrec" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "ucrec" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/userrec.3 b/docs/man/man3/userrec.3 index 427011fd8..5baa46954 100644 --- a/docs/man/man3/userrec.3 +++ b/docs/man/man3/userrec.3 @@ -1,4 +1,4 @@ -.TH "userrec" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "userrec" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/users.cpp.3 b/docs/man/man3/users.cpp.3 index e8d42c52b..4afce53e5 100644 --- a/docs/man/man3/users.cpp.3 +++ b/docs/man/man3/users.cpp.3 @@ -1,4 +1,4 @@ -.TH "users.cpp" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "users.cpp" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/users.h.3 b/docs/man/man3/users.h.3 index 99912b9fe..3edfe95da 100644 --- a/docs/man/man3/users.h.3 +++ b/docs/man/man3/users.h.3 @@ -1,4 +1,4 @@ -.TH "users.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "users.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/xline.h.3 b/docs/man/man3/xline.h.3 index 3320bdcb6..d7fe8de4d 100644 --- a/docs/man/man3/xline.h.3 +++ b/docs/man/man3/xline.h.3 @@ -1,4 +1,4 @@ -.TH "xline.h" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "xline.h" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 0a0622e75..151070ef4 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -49,7 +49,7 @@ XLineXLine is the base class for ban lines such as G lines and K lines ZLineZLine class -
Generated on Tue May 24 02:31:27 2005 for InspIRCd by +
Generated on Wed May 25 21:42:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index c9c396f9d..7800ecbef 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -46,16 +46,16 @@ 00055 00056 public: 00057 -00064 bool Extend(std::string key, char* p); -00065 -00071 bool Shrink(std::string key); -00072 -00077 char* GetExt(std::string key); -00078 }; -00079 -00080 #endif -00081 -
Generated on Tue May 24 02:30:01 2005 for InspIRCd by +00069 bool Extend(std::string key, char* p); +00070 +00080 bool Shrink(std::string key); +00081 +00088 char* GetExt(std::string key); +00089 }; +00090 +00091 #endif +00092 +
Generated on Wed May 25 21:42:12 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index 0e7108ff0..d891c134e 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -61,7 +61,7 @@ This graph shows which files directly or indirectly include this file:

25 of file base.h. -
Generated on Tue May 24 02:30:12 2005 for InspIRCd by +
Generated on Wed May 25 21:42:16 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index 0d5733feb..8ddbf78c2 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -229,7 +229,7 @@ 00222 { 00223 return &internal_userlist; 00224 } -
Generated on Tue May 24 02:30:01 2005 for InspIRCd by +
Generated on Wed May 25 21:42:12 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index aefb0e58e..edcf07053 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -578,7 +578,7 @@ Definition at line 83 -
serverrec* me[32] + serverrec* me[32]
@@ -593,7 +593,9 @@ Definition at line 83

-Definition at line 97 of file channels.cpp. +Definition at line 97 of file channels.cpp. +

+Referenced by IsRoutable().

@@ -1009,7 +1011,7 @@ Definition at line 81

Definition at line 101 of file channels.cpp.

-Referenced by serverrec::serverrec(), and userrec::userrec(). +Referenced by serverrec::FlushWriteBuffers(), serverrec::serverrec(), and userrec::userrec().

@@ -1060,7 +1062,7 @@ Definition at line 79 Definition at line 78 of file channels.cpp. -


Generated on Tue May 24 02:30:29 2005 for InspIRCd by +
Generated on Wed May 25 21:42:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index d705ff120..c2b154170 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -146,7 +146,7 @@ 00238 00239 #endif 00240 -
Generated on Tue May 24 02:30:01 2005 for InspIRCd by +
Generated on Wed May 25 21:42:12 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index a9e550bcc..42ec4d956 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -433,7 +433,7 @@ Holds a complete invite list. Definition at line 95 of file channels.h. -
Generated on Tue May 24 02:30:33 2005 for InspIRCd by +
Generated on Wed May 25 21:42:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 13330b1fb..331432bba 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -13,7 +13,7 @@ NameAdmin NickAdmin ~classbase()classbase [inline] -
Generated on Tue May 24 02:31:29 2005 for InspIRCd by +
Generated on Wed May 25 21:42:54 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 3f2929f5f..b66e3d7cc 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -163,7 +163,7 @@ Definition at line 126 of
The documentation for this class was generated from the following files: -
Generated on Tue May 24 02:31:29 2005 for InspIRCd by +
Generated on Wed May 25 21:42:54 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 7fa50962d..798efb76d 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Tue May 24 02:31:31 2005 for InspIRCd by +
Generated on Wed May 25 21:42:55 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index ce1134122..8c060c6a0 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -30,7 +30,7 @@ A subclass of HostItem designed to h

Definition at line 52 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:31:31 2005 for InspIRCd by +
Generated on Wed May 25 21:42:55 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index 50dfb9871..607436a2b 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -24,7 +24,7 @@ Verify()ConfigReader ~classbase()classbase [inline] ~ConfigReader()ConfigReader -
Generated on Tue May 24 02:31:43 2005 for InspIRCd by +
Generated on Wed May 25 21:43:02 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 12a432ec7..613a02068 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -778,7 +778,7 @@ Referenced by ConfigReader(
The documentation for this class was generated from the following files:
-
Generated on Tue May 24 02:31:43 2005 for InspIRCd by +
Generated on Wed May 25 21:43:02 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index bda02a7cf..3d5a25556 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -19,7 +19,7 @@ thresholdConnectClass typeConnectClass ~classbase()classbase [inline] -
Generated on Tue May 24 02:31:45 2005 for InspIRCd by +
Generated on Wed May 25 21:43:03 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index 0257db570..0913bce2d 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -355,7 +355,7 @@ Definition at line 50 of fi
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:31:45 2005 for InspIRCd by +
Generated on Wed May 25 21:43:03 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classDNS-members.html b/docs/module-doc/classDNS-members.html index 866b52f0c..066814717 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -33,7 +33,7 @@ SetNS(std::string dnsserver)DNS tDNS [private] ~DNS()DNS -
Generated on Tue May 24 02:31:50 2005 for InspIRCd by +
Generated on Wed May 25 21:43:05 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index d5f448884..d6f0f3093 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -891,7 +891,7 @@ Definition at line 40 of file
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:31:50 2005 for InspIRCd by +
Generated on Wed May 25 21:43:05 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classELine-members.html b/docs/module-doc/classELine-members.html index b160a75b9..2f5df8195 100644 --- a/docs/module-doc/classELine-members.html +++ b/docs/module-doc/classELine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Tue May 24 02:31:53 2005 for InspIRCd by +
Generated on Wed May 25 21:43:07 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index 379a397c3..53ba096df 100644 --- a/docs/module-doc/classELine.html +++ b/docs/module-doc/classELine.html @@ -53,7 +53,7 @@ Definition at line 88 of fi
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:31:53 2005 for InspIRCd by +
Generated on Wed May 25 21:43:07 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classEvent-members.html b/docs/module-doc/classEvent-members.html index 9db6b9ec7..879140601 100644 --- a/docs/module-doc/classEvent-members.html +++ b/docs/module-doc/classEvent-members.html @@ -17,7 +17,7 @@ Send()Event [virtual] sourceEvent [protected] ~classbase()classbase [inline] -
Generated on Tue May 24 02:31:55 2005 for InspIRCd by +
Generated on Wed May 25 21:43:08 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classEvent.html b/docs/module-doc/classEvent.html index 00ca01ea3..3cf224015 100644 --- a/docs/module-doc/classEvent.html +++ b/docs/module-doc/classEvent.html @@ -356,7 +356,7 @@ Referenced by GetSource()
The documentation for this class was generated from the following files:
-
Generated on Tue May 24 02:31:55 2005 for InspIRCd by +
Generated on Wed May 25 21:43:08 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index fcb3b5941..0346953a1 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Tue May 24 02:31:57 2005 for InspIRCd by +
Generated on Wed May 25 21:43:09 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index c8f2a76b9..81ac0d79a 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -30,7 +30,7 @@ A subclass of HostItem designed to h

Definition at line 60 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:31:57 2005 for InspIRCd by +
Generated on Wed May 25 21:43:09 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index 7a77906be..5f80b4599 100644 --- a/docs/module-doc/classExtMode-members.html +++ b/docs/module-doc/classExtMode-members.html @@ -16,7 +16,7 @@ params_when_onExtMode typeExtMode ~classbase()classbase [inline] -
Generated on Tue May 24 02:32:01 2005 for InspIRCd by +
Generated on Wed May 25 21:43:12 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index 14e8177ac..3c60e86ca 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -253,7 +253,7 @@ Referenced by ExtMode()
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:32:01 2005 for InspIRCd by +
Generated on Wed May 25 21:43:12 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtensible-members.html b/docs/module-doc/classExtensible-members.html index b1b4d8bd6..31023dce7 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -13,7 +13,7 @@ GetExt(std::string key)Extensible Shrink(std::string key)Extensible ~classbase()classbase [inline] -
Generated on Tue May 24 02:31:59 2005 for InspIRCd by +
Generated on Wed May 25 21:43:11 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index 8e3371ba5..393ef362b 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -86,7 +86,15 @@ Definition at line 50 of fil

Extend an Extensible class.

-You must provide a key to store the data as, and a void* to the data (typedef VoidPointer) The data will be inserted into the map. If the data already exists, you may not insert it twice, Extensible::Extend will return false in this case. On successful extension, Extend returns true. +

Parameters:
+ + + +
key The key parameter is an arbitary string which identifies the extension data
p This parameter is a pointer to any data you wish to associate with the object
+
+You must provide a key to store the data as, and a void* to the data (typedef VoidPointer) The data will be inserted into the map. If the data already exists, you may not insert it twice, Extensible::Extend will return false in this case.

+

Returns:
Returns true on success, false if otherwise
+

@@ -117,7 +125,13 @@ You must provide a key to store the data as, and a void* to the data (typedef Vo

Get an extension item.

-You must provide a key name, which is case sensitive. If you provide a non-existent key name, the function returns NULL, otherwise a pointer to the item referenced by the key is returned. +

Parameters:
+ + +
key The key parameter is an arbitary string which identifies the extension data
+
+
Returns:
If you provide a non-existent key name, the function returns NULL, otherwise a pointer to the item referenced by the key is returned.
+

@@ -148,7 +162,14 @@ You must provide a key name, which is case sensitive. If you provide a non-exist

Shrink an Extensible class.

-You must provide a key name. The given key name will be removed from the classes data. If you provide a nonexistent key (case is important) then the function will return false. Returns true on success. +

Parameters:
+ + +
key The key parameter is an arbitary string which identifies the extension data
+
+You must provide a key name. The given key name will be removed from the classes data. If you provide a nonexistent key (case is important) then the function will return false.

+

Returns:
Returns true on success.
+

Member Data Documentation

@@ -180,7 +201,7 @@ Definition at line 54 of fil
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:31:59 2005 for InspIRCd by +
Generated on Wed May 25 21:43:11 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index 9cc785b5b..2118f1601 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -17,7 +17,7 @@ LoadFile(std::string filename)FileReader ~classbase()classbase [inline] ~FileReader()FileReader -
Generated on Tue May 24 02:32:03 2005 for InspIRCd by +
Generated on Wed May 25 21:43:13 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index c8688bd2f..0a4a586d9 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -367,7 +367,7 @@ Referenced by Exists(),
The documentation for this class was generated from the following files: -
Generated on Tue May 24 02:32:03 2005 for InspIRCd by +
Generated on Wed May 25 21:43:13 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classGLine-members.html b/docs/module-doc/classGLine-members.html index 8d1913346..3c7d1564d 100644 --- a/docs/module-doc/classGLine-members.html +++ b/docs/module-doc/classGLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Tue May 24 02:32:06 2005 for InspIRCd by +
Generated on Wed May 25 21:43:14 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index 1d017d2e4..bde170d01 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -61,7 +61,7 @@ Definition at line 79 of fi
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:32:06 2005 for InspIRCd by +
Generated on Wed May 25 21:43:14 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index 6edb9175b..4b7fa095b 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Tue May 24 02:32:08 2005 for InspIRCd by +
Generated on Wed May 25 21:43:15 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index 77389e5d9..9bafe429b 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -185,7 +185,7 @@ Definition at line 39 of
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:32:07 2005 for InspIRCd by +
Generated on Wed May 25 21:43:15 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index d9845965c..ff6fb14c6 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Tue May 24 02:32:11 2005 for InspIRCd by +
Generated on Wed May 25 21:43:17 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index f4b445ab3..a6971fbd0 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -30,7 +30,7 @@ A subclass of HostItem designed to h

Definition at line 68 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:32:11 2005 for InspIRCd by +
Generated on Wed May 25 21:43:17 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index 5c24252c7..c46224f90 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -10,7 +10,7 @@ channelInvited classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Tue May 24 02:32:09 2005 for InspIRCd by +
Generated on Wed May 25 21:43:16 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index 86dd2a2de..c7862516d 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -58,7 +58,7 @@ Referenced by userrec::Invite
The documentation for this class was generated from the following file:
-
Generated on Tue May 24 02:32:09 2005 for InspIRCd by +
Generated on Wed May 25 21:43:16 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classKLine-members.html b/docs/module-doc/classKLine-members.html index 18020f5b5..c3114c5a9 100644 --- a/docs/module-doc/classKLine-members.html +++ b/docs/module-doc/classKLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Tue May 24 02:32:17 2005 for InspIRCd by +
Generated on Wed May 25 21:43:21 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index 96bca5fc8..077984a7e 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -61,7 +61,7 @@ Definition at line 68 of fi
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:32:17 2005 for InspIRCd by +
Generated on Wed May 25 21:43:21 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModeParameter-members.html b/docs/module-doc/classModeParameter-members.html index b2bc706b6..a844d0c28 100644 --- a/docs/module-doc/classModeParameter-members.html +++ b/docs/module-doc/classModeParameter-members.html @@ -12,7 +12,7 @@ modeModeParameter parameterModeParameter ~classbase()classbase [inline] -
Generated on Tue May 24 02:32:19 2005 for InspIRCd by +
Generated on Wed May 25 21:43:22 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index fa1b317cd..4a9caf313 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -116,7 +116,7 @@ Referenced by chanrec::Set
The documentation for this class was generated from the following file:
-
Generated on Tue May 24 02:32:19 2005 for InspIRCd by +
Generated on Wed May 25 21:43:22 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index 644a0423d..a11935236 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -65,7 +65,7 @@ OnWhois(userrec *source, userrec *dest)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
Generated on Tue May 24 02:32:22 2005 for InspIRCd by +
Generated on Wed May 25 21:43:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 0403b27ad..ba07ed41e 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -2781,7 +2781,7 @@ Definition at line 319
The documentation for this class was generated from the following files: -
Generated on Tue May 24 02:32:22 2005 for InspIRCd by +
Generated on Wed May 25 21:43:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index 953c59428..e21c7094a 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -12,7 +12,7 @@ ModuleFactory()ModuleFactory [inline] ~classbase()classbase [inline] ~ModuleFactory()ModuleFactory [inline, virtual] -
Generated on Tue May 24 02:32:24 2005 for InspIRCd by +
Generated on Wed May 25 21:43:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index ea7ba7be9..579ab7a69 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -136,7 +136,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -
Generated on Tue May 24 02:32:24 2005 for InspIRCd by +
Generated on Wed May 25 21:43:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModuleMessage-members.html b/docs/module-doc/classModuleMessage-members.html index 6ec1bc00a..1eb686549 100644 --- a/docs/module-doc/classModuleMessage-members.html +++ b/docs/module-doc/classModuleMessage-members.html @@ -10,7 +10,7 @@ classbase()classbase [inline] Send()=0ModuleMessage [pure virtual] ~classbase()classbase [inline] -
Generated on Tue May 24 02:32:25 2005 for InspIRCd by +
Generated on Wed May 25 21:43:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModuleMessage.html b/docs/module-doc/classModuleMessage.html index da075371a..37a3e2c5e 100644 --- a/docs/module-doc/classModuleMessage.html +++ b/docs/module-doc/classModuleMessage.html @@ -67,7 +67,7 @@ Implemented in Request, and
The documentation for this class was generated from the following file:
-
Generated on Tue May 24 02:32:25 2005 for InspIRCd by +
Generated on Wed May 25 21:43:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classQLine-members.html b/docs/module-doc/classQLine-members.html index 2a1dd1db2..6ea682d00 100644 --- a/docs/module-doc/classQLine-members.html +++ b/docs/module-doc/classQLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Tue May 24 02:32:28 2005 for InspIRCd by +
Generated on Wed May 25 21:43:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index 931722a3f..c214f8ad9 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -90,7 +90,7 @@ Definition at line 114 of f
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:32:28 2005 for InspIRCd by +
Generated on Wed May 25 21:43:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classRequest-members.html b/docs/module-doc/classRequest-members.html index db48b74fd..7cc9d31eb 100644 --- a/docs/module-doc/classRequest-members.html +++ b/docs/module-doc/classRequest-members.html @@ -17,7 +17,7 @@ Send()Request [virtual] sourceRequest [protected] ~classbase()classbase [inline] -
Generated on Tue May 24 02:32:30 2005 for InspIRCd by +
Generated on Wed May 25 21:43:28 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classRequest.html b/docs/module-doc/classRequest.html index 82da97903..5896842fd 100644 --- a/docs/module-doc/classRequest.html +++ b/docs/module-doc/classRequest.html @@ -362,7 +362,7 @@ Referenced by GetSource()
The documentation for this class was generated from the following files:
-
Generated on Tue May 24 02:32:30 2005 for InspIRCd by +
Generated on Wed May 25 21:43:28 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 63c37a2bf..9e8157598 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -70,7 +70,7 @@ UserToPseudo(userrec *user, std::string message)Server [virtual] ~classbase()classbase [inline] ~Server()Server [virtual] -
Generated on Tue May 24 02:32:34 2005 for InspIRCd by +
Generated on Wed May 25 21:43:30 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 35044dac0..bac80198f 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -3253,7 +3253,7 @@ References userrec::ClearBuff
The documentation for this class was generated from the following files:
-
Generated on Tue May 24 02:32:34 2005 for InspIRCd by +
Generated on Wed May 25 21:43:30 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index 5aa753749..255b8eac6 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -15,7 +15,7 @@ RevisionVersion Version(int major, int minor, int revision, int build, int flags)Version ~classbase()classbase [inline] -
Generated on Tue May 24 02:32:49 2005 for InspIRCd by +
Generated on Wed May 25 21:43:39 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 74697af5a..438c9bf99 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -227,7 +227,7 @@ Definition at line 114 of
The documentation for this class was generated from the following files: -
Generated on Tue May 24 02:32:49 2005 for InspIRCd by +
Generated on Wed May 25 21:43:39 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classWhoWasUser-members.html b/docs/module-doc/classWhoWasUser-members.html index 448545914..f921681a4 100644 --- a/docs/module-doc/classWhoWasUser-members.html +++ b/docs/module-doc/classWhoWasUser-members.html @@ -13,7 +13,7 @@ nickWhoWasUser serverWhoWasUser signonWhoWasUser -
Generated on Tue May 24 02:32:50 2005 for InspIRCd by +
Generated on Wed May 25 21:43:39 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classWhoWasUser.html b/docs/module-doc/classWhoWasUser.html index c36b0662c..731ea427c 100644 --- a/docs/module-doc/classWhoWasUser.html +++ b/docs/module-doc/classWhoWasUser.html @@ -205,7 +205,7 @@ Definition at line 335 of f
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:32:50 2005 for InspIRCd by +
Generated on Wed May 25 21:43:39 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classXLine-members.html b/docs/module-doc/classXLine-members.html index ef40a92bc..ab0f86341 100644 --- a/docs/module-doc/classXLine-members.html +++ b/docs/module-doc/classXLine-members.html @@ -14,7 +14,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Tue May 24 02:32:53 2005 for InspIRCd by +
Generated on Wed May 25 21:43:41 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 164493759..e4f9f29e7 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -180,7 +180,7 @@ Definition at line 48 of fi
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:32:53 2005 for InspIRCd by +
Generated on Wed May 25 21:43:41 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classZLine-members.html b/docs/module-doc/classZLine-members.html index 383065ee5..9e35412e8 100644 --- a/docs/module-doc/classZLine-members.html +++ b/docs/module-doc/classZLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Tue May 24 02:32:55 2005 for InspIRCd by +
Generated on Wed May 25 21:43:42 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index b407cf4c6..2127fb1d9 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -90,7 +90,7 @@ Definition at line 103 of f
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:32:55 2005 for InspIRCd by +
Generated on Wed May 25 21:43:42 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index 35411d7df..d7417d6d4 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -33,7 +33,7 @@ topicsetchanrec ~chanrec()chanrec [inline, virtual] ~classbase()classbase [inline] -
Generated on Tue May 24 02:31:34 2005 for InspIRCd by +
Generated on Wed May 25 21:42:57 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index e44480b41..27b3373df 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -896,7 +896,7 @@ Referenced by chanrec()
The documentation for this class was generated from the following files: -
Generated on Tue May 24 02:31:34 2005 for InspIRCd by +
Generated on Wed May 25 21:42:57 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index 526b1989c..0ffcc5106 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -9,7 +9,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Tue May 24 02:31:38 2005 for InspIRCd by +
Generated on Wed May 25 21:42:59 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index c4a92ad4e..524bdad33 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -150,7 +150,7 @@ Referenced by classbase().
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:31:38 2005 for InspIRCd by +
Generated on Wed May 25 21:42:59 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index a17af276c..85159b26f 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -19,7 +19,7 @@ total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
Generated on Tue May 24 02:31:41 2005 for InspIRCd by +
Generated on Wed May 25 21:43:00 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index 31be9ae77..d80962041 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -235,7 +235,7 @@ Definition at line 43 of
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:31:41 2005 for InspIRCd by +
Generated on Wed May 25 21:43:00 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index da1039151..d6e51a9b9 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -27,7 +27,7 @@ Shrink(std::string key)Extensible signonconnection ~classbase()classbase [inline] -
Generated on Tue May 24 02:31:49 2005 for InspIRCd by +
Generated on Wed May 25 21:43:05 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 59d9ff2dd..464af6729 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -246,7 +246,7 @@ File descriptor of the connection.

Definition at line 266 of file connection.h.

-Referenced by serverrec::BeginLink(), serverrec::CreateListener(), ConfigReader::DumpErrors(), serverrec::MeshCookie(), Server::PseudoToUser(), userrec::ReadData(), Server::SendTo(), serverrec::serverrec(), userrec::userrec(), and Server::UserToPseudo(). +Referenced by serverrec::BeginLink(), serverrec::CreateListener(), ConfigReader::DumpErrors(), serverrec::MeshCookie(), Server::PseudoToUser(), userrec::ReadData(), Server::SendTo(), serverrec::serverrec(), userrec::userrec(), and Server::UserToPseudo().

@@ -386,7 +386,7 @@ Time the connection was last pinged.

Definition at line 308 of file connection.h.

-Referenced by serverrec::serverrec(), and userrec::userrec(). +Referenced by serverrec::serverrec(), and userrec::userrec().

@@ -442,7 +442,7 @@ For a serverrec this is the current listening port of the serverrec object.

Definition at line 300 of file connection.h.

-Referenced by serverrec::CreateListener(), and userrec::userrec(). +Referenced by serverrec::CreateListener(), and userrec::userrec().

@@ -498,12 +498,12 @@ Time the connection was created, set in the constructor.

Definition at line 312 of file connection.h.

-Referenced by serverrec::serverrec(), and userrec::userrec(). +Referenced by serverrec::serverrec(), and userrec::userrec().


The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:31:49 2005 for InspIRCd by +
Generated on Wed May 25 21:43:05 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 4660246ac..fc63ba5a3 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -26,7 +26,7 @@ ModeParameter   Server   
  Z  
connection   GLine   Module   serverrec   ZLine   
  D  
  H  
-
Generated on Tue May 24 02:31:27 2005 for InspIRCd by +
Generated on Wed May 25 21:42:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classircd__connector-members.html b/docs/module-doc/classircd__connector-members.html index f11fa4e85..c38be9e10 100644 --- a/docs/module-doc/classircd__connector-members.html +++ b/docs/module-doc/classircd__connector-members.html @@ -55,7 +55,7 @@ versionircd_connector [private] WriteErrorircd_connector [private] ~classbase()classbase [inline] -
Generated on Tue May 24 02:32:15 2005 for InspIRCd by +
Generated on Wed May 25 21:43:20 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classircd__connector.html b/docs/module-doc/classircd__connector.html index 052631803..e57bf5159 100644 --- a/docs/module-doc/classircd__connector.html +++ b/docs/module-doc/classircd__connector.html @@ -256,7 +256,7 @@ Adds data to the connection's sendQ to be flushed later Fails if there is an err

-Referenced by serverrec::SendPacket(). +Referenced by serverrec::SendPacket().

@@ -378,7 +378,7 @@ Close the connection by calling close() on its file descriptor This function cal

-Referenced by serverrec::SendPacket(). +Referenced by serverrec::SendPacket().

@@ -410,7 +410,7 @@ Flushes as much of the data from the buffer as possible, and advances the queue

-Referenced by serverrec::SendPacket(). +Referenced by serverrec::SendPacket().

@@ -562,7 +562,7 @@ Return the servername on this established connection.

-Referenced by serverrec::SendPacket(). +Referenced by serverrec::SendPacket().

@@ -624,7 +624,7 @@ Get the state flags for this connection.

-Referenced by serverrec::SendPacket(). +Referenced by IsRoutable(), and serverrec::SendPacket().

@@ -686,7 +686,7 @@ Gets the error string for this connection.

-Referenced by serverrec::SendPacket(). +Referenced by serverrec::SendPacket().

@@ -758,7 +758,7 @@ Create an outbound connection to a listening socket.

-Referenced by serverrec::BeginLink(), and serverrec::MeshCookie(). +Referenced by serverrec::BeginLink(), and serverrec::MeshCookie().

@@ -852,7 +852,7 @@ Set the file descriptor for this connection.

-Referenced by serverrec::AddIncoming(). +Referenced by serverrec::AddIncoming().

@@ -934,7 +934,7 @@ Set both the host and the port in one operation for this connection.

-Referenced by serverrec::AddIncoming(), serverrec::BeginLink(), and serverrec::MeshCookie(). +Referenced by serverrec::AddIncoming(), serverrec::BeginLink(), and serverrec::MeshCookie().

@@ -967,7 +967,7 @@ Set the server name of this connection.

-Referenced by serverrec::AddIncoming(), serverrec::BeginLink(), and serverrec::MeshCookie(). +Referenced by serverrec::AddIncoming(), serverrec::BeginLink(), and serverrec::MeshCookie().

@@ -1031,7 +1031,7 @@ Set the state flags for this connection.

-Referenced by serverrec::AddIncoming(), serverrec::BeginLink(), serverrec::MeshCookie(), and serverrec::SendPacket(). +Referenced by serverrec::AddIncoming(), serverrec::BeginLink(), serverrec::MeshCookie(), and serverrec::SendPacket().

@@ -1464,7 +1464,7 @@ Definition at line 94


The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:32:15 2005 for InspIRCd by +
Generated on Wed May 25 21:43:19 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classserverrec-members.html b/docs/module-doc/classserverrec-members.html index b11b9cdf4..8a98d990b 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -51,7 +51,7 @@ versionserverrec ~classbase()classbase [inline] ~serverrec()serverrec -
Generated on Tue May 24 02:32:39 2005 for InspIRCd by +
Generated on Wed May 25 21:43:33 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index 3d7dc51ec..9ebee0578 100644 --- a/docs/module-doc/classserverrec.html +++ b/docs/module-doc/classserverrec.html @@ -131,23 +131,23 @@ Constructor.

-Definition at line 42 of file servers.cpp. +Definition at line 46 of file servers.cpp.

References connectors, connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, pingtime, connection::signon, sync_soon, TIME, usercount, usercount_i, and version.

-

00043 {
-00044         strlcpy(name,"",256);
-00045         pingtime = 0;
-00046         lastping = TIME;
-00047         usercount_i = usercount = opercount = version = 0;
-00048         hops_away = 1;
-00049         signon = TIME;
-00050         jupiter = false;
-00051         fd = 0;
-00052         sync_soon = false;
-00053         strlcpy(nickserv,"",NICKMAX);
-00054         connectors.clear();
-00055 }
+
00047 {
+00048         strlcpy(name,"",256);
+00049         pingtime = 0;
+00050         lastping = TIME;
+00051         usercount_i = usercount = opercount = version = 0;
+00052         hops_away = 1;
+00053         signon = TIME;
+00054         jupiter = false;
+00055         fd = 0;
+00056         sync_soon = false;
+00057         strlcpy(nickserv,"",NICKMAX);
+00058         connectors.clear();
+00059 }
 
@@ -196,23 +196,23 @@ Constructor which initialises some of the main variables.

-Definition at line 62 of file servers.cpp. +Definition at line 66 of file servers.cpp.

References connectors, connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, connection::signon, sync_soon, TIME, usercount, usercount_i, and version.

-

00063 {
-00064         strlcpy(name,n,256);
-00065         lastping = TIME;
-00066         usercount_i = usercount = opercount = 0;
-00067         version = ver;
-00068         hops_away = 1;
-00069         signon = TIME;
-00070         jupiter = jupe;
-00071         fd = 0;
-00072         sync_soon = false;
-00073         strlcpy(nickserv,"",NICKMAX);
-00074         connectors.clear();
-00075 }
+
00067 {
+00068         strlcpy(name,n,256);
+00069         lastping = TIME;
+00070         usercount_i = usercount = opercount = 0;
+00071         version = ver;
+00072         hops_away = 1;
+00073         signon = TIME;
+00074         jupiter = jupe;
+00075         fd = 0;
+00076         sync_soon = false;
+00077         strlcpy(nickserv,"",NICKMAX);
+00078         connectors.clear();
+00079 }
 
@@ -245,10 +245,10 @@ Destructor.

-Definition at line 58 of file servers.cpp. +Definition at line 62 of file servers.cpp.

-

00059 {
-00060 }
+
00063 {
+00064 }
 
@@ -298,30 +298,30 @@ Add an incoming connection to the connection pool.

(reserved for core use)

-Definition at line 207 of file servers.cpp. +Definition at line 212 of file servers.cpp.

References connectors, DEBUG, ircd_connector::SetDescriptor(), ircd_connector::SetHostAndPort(), ircd_connector::SetServerName(), ircd_connector::SetState(), and STATE_NOAUTH_INBOUND.

-

00208 {
-00209         ircd_connector connector;
-00210 
-00211         // targethost has been turned into an ip...
-00212         // we dont want this as the server name.
-00213         connector.SetServerName(targethost);
-00214         connector.SetDescriptor(newfd);
-00215         connector.SetState(STATE_NOAUTH_INBOUND);
-00216         int flags = fcntl(newfd, F_GETFL, 0);
-00217         fcntl(newfd, F_SETFL, flags | O_NONBLOCK);
-00218         int sendbuf = 32768;
-00219         int recvbuf = 32768;
-00220         setsockopt(newfd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf));
-00221         setsockopt(newfd,SOL_SOCKET,SO_RCVBUF,(const void *)&recvbuf,sizeof(sendbuf));
-00222         connector.SetHostAndPort(targethost, sourceport);
-00223         connector.SetState(STATE_NOAUTH_INBOUND);
-00224         log(DEBUG,"serverrec::AddIncoming() Added connection: %s:%d",targethost,sourceport);
-00225         this->connectors.push_back(connector);
-00226         return true;
-00227 }
+
00213 {
+00214         ircd_connector connector;
+00215 
+00216         // targethost has been turned into an ip...
+00217         // we dont want this as the server name.
+00218         connector.SetServerName(targethost);
+00219         connector.SetDescriptor(newfd);
+00220         connector.SetState(STATE_NOAUTH_INBOUND);
+00221         int flags = fcntl(newfd, F_GETFL, 0);
+00222         fcntl(newfd, F_SETFL, flags | O_NONBLOCK);
+00223         int sendbuf = 32768;
+00224         int recvbuf = 32768;
+00225         setsockopt(newfd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf));
+00226         setsockopt(newfd,SOL_SOCKET,SO_RCVBUF,(const void *)&recvbuf,sizeof(sendbuf));
+00227         connector.SetHostAndPort(targethost, sourceport);
+00228         connector.SetState(STATE_NOAUTH_INBOUND);
+00229         log(DEBUG,"serverrec::AddIncoming() Added connection: %s:%d",targethost,sourceport);
+00230         this->connectors.push_back(connector);
+00231         return true;
+00232 }
 
@@ -382,45 +382,47 @@ Begin an outbound link to another ircd at targethost.

-Definition at line 138 of file servers.cpp. +Definition at line 142 of file servers.cpp.

-References connectors, connection::fd, FindHost(), ircd_connector::MakeOutboundConnection(), SendPacket(), ircd_connector::SetHostAndPort(), ircd_connector::SetServerName(), ircd_connector::SetState(), STATE_DISCONNECTED, and STATE_NOAUTH_OUTBOUND. +References connectors, connection::fd, FindHost(), ircd_connector::MakeOutboundConnection(), SendPacket(), ircd_connector::SetHostAndPort(), ircd_connector::SetServerName(), ircd_connector::SetState(), STATE_DISCONNECTED, and STATE_NOAUTH_OUTBOUND.

-

00139 {
-00140         char connect[MAXBUF];
-00141 
-00142         ircd_connector connector;
-00143         ircd_connector *cn = this->FindHost(servername);
-00144 
+
00143 {
+00144         char connect[MAXBUF];
 00145 
-00146         if (cn)
-00147         {
-00148                 WriteOpers("CONNECT aborted: Server %s already exists",servername);
-00149                 return false;
-00150         }
-00151 
-00152 
-00153         if (this->fd)
-00154         {
-00155                 if (connector.MakeOutboundConnection(targethost,newport))
-00156                 {
-00157                         // targethost has been turned into an ip...
-00158                         // we dont want this as the server name.
-00159                         connector.SetServerName(servername);
-00160                         snprintf(connect,MAXBUF,"S %s %s %lu %s :%s",getservername().c_str(),password,(unsigned long)myport,GetRevision().c_str(),getserverdesc().c_str());
-00161                         connector.SetState(STATE_NOAUTH_OUTBOUND);
-00162                         connector.SetHostAndPort(targethost, newport);
-00163                         this->connectors.push_back(connector);
-00164                         return this->SendPacket(connect, servername);
-00165                 }
-00166                 else
-00167                 {
-00168                         connector.SetState(STATE_DISCONNECTED);
-00169                         WriteOpers("Could not create outbound connection to %s:%d",targethost,newport);
-00170                 }
-00171         }
-00172         return false;
-00173 }
+00146         ircd_connector connector;
+00147         ircd_connector *cn = this->FindHost(servername);
+00148 
+00149 
+00150         if (cn)
+00151         {
+00152                 WriteOpers("CONNECT aborted: Server %s already exists",servername);
+00153                 return false;
+00154         }
+00155 
+00156 
+00157         if (this->fd)
+00158         {
+00159                 if (connector.MakeOutboundConnection(targethost,newport))
+00160                 {
+00161                         // targethost has been turned into an ip...
+00162                         // we dont want this as the server name.
+00163                         connector.SetServerName(servername);
+00164                         snprintf(connect,MAXBUF,"S %s %s %lu %s :%s",getservername().c_str(),password,(unsigned long)myport,GetRevision().c_str(),getserverdesc().c_str());
+00165                         connector.SetState(STATE_NOAUTH_OUTBOUND);
+00166                         connector.SetHostAndPort(targethost, newport);
+00167                         this->connectors.push_back(connector);
+00168                         // this packet isn't actually sent until the socket connects -- the STATE_NOAUTH_OUTBOUND state
+00169                         // queues outbound data until the socket is polled as writeable (e.g. the connection is established)
+00170                         return this->SendPacket(connect, servername);
+00171                 }
+00172                 else
+00173                 {
+00174                         connector.SetState(STATE_DISCONNECTED);
+00175                         WriteOpers("Could not create outbound connection to %s:%d",targethost,newport);
+00176                 }
+00177         }
+00178         return false;
+00179 }
 
@@ -463,68 +465,68 @@ Create a listening socket on 'host' using port number 'p'.

-Definition at line 77 of file servers.cpp. +Definition at line 81 of file servers.cpp.

References connection::fd, MaxConn, and connection::port.

-

00078 {
-00079         sockaddr_in host_address;
-00080         int flags;
-00081         in_addr addy;
-00082         int on = 0;
-00083         struct linger linger = { 0 };
-00084 
-00085         this->port = p;
-00086 
-00087         fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
-00088         if (fd <= 0)
-00089         {
-00090                 return false;
-00091         }
-00092 
-00093         setsockopt(fd,SOL_SOCKET,SO_REUSEADDR,(const char*)&on,sizeof(on));
-00094         linger.l_onoff = 1;
-00095         linger.l_linger = 1;
-00096         setsockopt(fd,SOL_SOCKET,SO_LINGER,(const char*)&linger,sizeof(linger));
-00097 
-00098         // attempt to increase socket sendq and recvq as high as its possible
-00099         // to get them on linux.
-00100         int sendbuf = 32768;
-00101         int recvbuf = 32768;
-00102         setsockopt(fd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf));
-00103         setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(const void *)&recvbuf,sizeof(sendbuf));
-00104 
-00105         memset((void*)&host_address, 0, sizeof(host_address));
-00106 
-00107         host_address.sin_family = AF_INET;
+
00082 {
+00083         sockaddr_in host_address;
+00084         int flags;
+00085         in_addr addy;
+00086         int on = 0;
+00087         struct linger linger = { 0 };
+00088 
+00089         this->port = p;
+00090 
+00091         fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
+00092         if (fd <= 0)
+00093         {
+00094                 return false;
+00095         }
+00096 
+00097         setsockopt(fd,SOL_SOCKET,SO_REUSEADDR,(const char*)&on,sizeof(on));
+00098         linger.l_onoff = 1;
+00099         linger.l_linger = 1;
+00100         setsockopt(fd,SOL_SOCKET,SO_LINGER,(const char*)&linger,sizeof(linger));
+00101 
+00102         // attempt to increase socket sendq and recvq as high as its possible
+00103         // to get them on linux.
+00104         int sendbuf = 32768;
+00105         int recvbuf = 32768;
+00106         setsockopt(fd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf));
+00107         setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(const void *)&recvbuf,sizeof(sendbuf));
 00108 
-00109         if (!strcmp(newhost,""))
-00110         {
-00111                 host_address.sin_addr.s_addr = htonl(INADDR_ANY);
-00112         }
-00113         else
+00109         memset((void*)&host_address, 0, sizeof(host_address));
+00110 
+00111         host_address.sin_family = AF_INET;
+00112 
+00113         if (!strcmp(newhost,""))
 00114         {
-00115                 inet_aton(newhost,&addy);
-00116                 host_address.sin_addr = addy;
-00117         }
-00118 
-00119         host_address.sin_port = htons(p);
-00120 
-00121         if (bind(fd,(sockaddr*)&host_address,sizeof(host_address))<0)
-00122         {
-00123                 return false;
-00124         }
-00125 
-00126         // make the socket non-blocking
-00127         flags = fcntl(fd, F_GETFL, 0);
-00128         fcntl(fd, F_SETFL, flags | O_NONBLOCK);
+00115                 host_address.sin_addr.s_addr = htonl(INADDR_ANY);
+00116         }
+00117         else
+00118         {
+00119                 inet_aton(newhost,&addy);
+00120                 host_address.sin_addr = addy;
+00121         }
+00122 
+00123         host_address.sin_port = htons(p);
+00124 
+00125         if (bind(fd,(sockaddr*)&host_address,sizeof(host_address))<0)
+00126         {
+00127                 return false;
+00128         }
 00129 
-00130         this->port = p;
-00131 
-00132         listen(this->fd, MaxConn);
+00130         // make the socket non-blocking
+00131         flags = fcntl(fd, F_GETFL, 0);
+00132         fcntl(fd, F_SETFL, flags | O_NONBLOCK);
 00133 
-00134         return true;
-00135 }
+00134         this->port = p;
+00135 
+00136         listen(this->fd, MaxConn);
+00137 
+00138         return true;
+00139 }
 
@@ -558,22 +560,22 @@ Find the ircd_connector oject

-Definition at line 237 of file servers.cpp. +Definition at line 242 of file servers.cpp.

References connectors.

-Referenced by BeginLink(), and SendPacket(). -

-

00238 {
-00239         for (int i = 0; i < this->connectors.size(); i++)
-00240         {
-00241                 if (this->connectors[i].GetServerName() == findhost)
-00242                 {
-00243                         return &this->connectors[i];
-00244                 }
-00245         }
-00246         return NULL;
-00247 }
+Referenced by BeginLink(), IsRoutable(), and SendPacket().
+

+

00243 {
+00244         for (int i = 0; i < this->connectors.size(); i++)
+00245         {
+00246                 if (this->connectors[i].GetServerName() == findhost)
+00247                 {
+00248                         return &this->connectors[i];
+00249                 }
+00250         }
+00251         return NULL;
+00252 }
 
@@ -606,34 +608,60 @@ Flushes all data waiting to be written for all of this server's connections.

-Definition at line 249 of file servers.cpp. -

-References connectors, and STATE_DISCONNECTED. -

-

00250 {
-00251         for (int i = 0; i < this->connectors.size(); i++)
-00252         {
-00253                 if (this->connectors[i].GetState() != STATE_DISCONNECTED)
-00254                 {
-00255                         if (!this->connectors[i].CheckPing())
-00256                         {
-00257                                 WriteOpers("*** Lost single connection to %s: Ping timeout",this->connectors[i].GetServerName().c_str());
-00258                                 this->connectors[i].CloseConnection();
-00259                                 this->connectors[i].SetState(STATE_DISCONNECTED);
-00260                         }
-00261                 }
-00262                 if (this->connectors[i].HasBufferedOutput())
-00263                 {
-00264                         if (!this->connectors[i].FlushWriteBuf())
-00265                         {
-00266                                 // if we're here the write() caused an error, we cannot proceed
-00267                                 WriteOpers("*** Lost single connection to %s, link inactive and retrying: %s",this->connectors[i].GetServerName().c_str(),this->connectors[i].GetWriteError().c_str());
-00268                                 this->connectors[i].CloseConnection();
-00269                                 this->connectors[i].SetState(STATE_DISCONNECTED);
-00270                         }
-00271                 }
-00272         }
-00273 }
+Definition at line 284 of file servers.cpp.
+

+References connectors, has_been_netsplit, IsRoutable(), STATE_DISCONNECTED, STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND, and TIME. +

+

00285 {
+00286         for (int i = 0; i < this->connectors.size(); i++)
+00287         {
+00288                 // don't try and ping a NOAUTH_OUTBOUND state, its not authed yet!
+00289                 if ((this->connectors[i].GetState() == STATE_NOAUTH_OUTBOUND) && (TIME > this->connectors[i].age+30))
+00290                 {
+00291                         // however if we reach this timer its connected timed out :)
+00292                         WriteOpers("*** Connection to %s timed out",this->connectors[i].GetServerName().c_str());
+00293                         DoSplit(this->connectors[i].GetServerName().c_str());
+00294                         return;
+00295                 }
+00296                 else if ((this->connectors[i].GetState() == STATE_NOAUTH_INBOUND) && (TIME > this->connectors[i].age+30))
+00297                 {
+00298                         WriteOpers("*** Connection from %s timed out",this->connectors[i].GetServerName().c_str());
+00299                         DoSplit(this->connectors[i].GetServerName().c_str());
+00300                         return;
+00301                 }
+00302                 else if (this->connectors[i].GetState() != STATE_DISCONNECTED)
+00303                 {
+00304                         if (!this->connectors[i].CheckPing())
+00305                         {
+00306                                 WriteOpers("*** Lost single connection to %s: Ping timeout",this->connectors[i].GetServerName().c_str());
+00307                                 this->connectors[i].CloseConnection();
+00308                                 this->connectors[i].SetState(STATE_DISCONNECTED);
+00309                                 if (!IsRoutable(this->connectors[i].GetServerName()))
+00310                                 {
+00311                                         WriteOpers("*** Server %s is no longer routable, disconnecting.",this->connectors[i].GetServerName().c_str());
+00312                                         DoSplit(this->connectors[i].GetServerName().c_str());
+00313                                 }
+00314                                 has_been_netsplit = true;
+00315                         }
+00316                 }
+00317                 if (this->connectors[i].HasBufferedOutput())
+00318                 {
+00319                         if (!this->connectors[i].FlushWriteBuf())
+00320                         {
+00321                                 // if we're here the write() caused an error, we cannot proceed
+00322                                 WriteOpers("*** Lost single connection to %s, link inactive and retrying: %s",this->connectors[i].GetServerName().c_str(),this->connectors[i].GetWriteError().c_str());
+00323                                 this->connectors[i].CloseConnection();
+00324                                 this->connectors[i].SetState(STATE_DISCONNECTED);
+00325                                 if (!IsRoutable(this->connectors[i].GetServerName()))
+00326                                 {
+00327                                         WriteOpers("*** Server %s is no longer routable, disconnecting.",this->connectors[i].GetServerName().c_str());
+00328                                         DoSplit(this->connectors[i].GetServerName().c_str());
+00329                                 }
+00330                                 has_been_netsplit = true;
+00331                         }
+00332                 }
+00333         }
+00334 }
 
@@ -688,39 +716,38 @@ Begin an outbound mesh link to another ircd on a network you are already an auth

-Definition at line 176 of file servers.cpp. -

-References connectors, connection::fd, ircd_connector::MakeOutboundConnection(), SendPacket(), ircd_connector::SetHostAndPort(), ircd_connector::SetServerName(), ircd_connector::SetState(), STATE_CONNECTED, STATE_DISCONNECTED, and STATE_NOAUTH_OUTBOUND. -

-

00177 {
-00178         char connect[MAXBUF];
-00179 
-00180         ircd_connector connector;
-00181 
-00182         WriteOpers("Establishing meshed link to %s:%d",servername,newport);
-00183 
-00184         if (this->fd)
-00185         {
-00186                 if (connector.MakeOutboundConnection(targethost,newport))
-00187                 {
-00188                         // targethost has been turned into an ip...
-00189                         // we dont want this as the server name.
-00190                         connector.SetServerName(servername);
-00191                         snprintf(connect,MAXBUF,"- %lu %s :%s",cookie,getservername().c_str(),getserverdesc().c_str());
-00192                         connector.SetState(STATE_NOAUTH_OUTBOUND);
-00193                         connector.SetHostAndPort(targethost, newport);
-00194                         connector.SetState(STATE_CONNECTED);
-00195                         this->connectors.push_back(connector);
-00196                         return this->SendPacket(connect, servername);
-00197                 }
-00198                 else
-00199                 {
-00200                         connector.SetState(STATE_DISCONNECTED);
-00201                         WriteOpers("Could not create outbound connection to %s:%d",targethost,newport);
+Definition at line 182 of file servers.cpp.
+

+References connectors, connection::fd, ircd_connector::MakeOutboundConnection(), SendPacket(), ircd_connector::SetHostAndPort(), ircd_connector::SetServerName(), ircd_connector::SetState(), STATE_DISCONNECTED, and STATE_NOAUTH_OUTBOUND. +

+

00183 {
+00184         char connect[MAXBUF];
+00185 
+00186         ircd_connector connector;
+00187 
+00188         WriteOpers("Establishing meshed link to %s:%d",servername,newport);
+00189 
+00190         if (this->fd)
+00191         {
+00192                 if (connector.MakeOutboundConnection(targethost,newport))
+00193                 {
+00194                         // targethost has been turned into an ip...
+00195                         // we dont want this as the server name.
+00196                         connector.SetServerName(servername);
+00197                         snprintf(connect,MAXBUF,"- %lu %s :%s",cookie,getservername().c_str(),getserverdesc().c_str());
+00198                         connector.SetState(STATE_NOAUTH_OUTBOUND);
+00199                         connector.SetHostAndPort(targethost, newport);
+00200                         this->connectors.push_back(connector);
+00201                         return this->SendPacket(connect, servername);
 00202                 }
-00203         }
-00204         return false;
-00205 }
+00203                 else
+00204                 {
+00205                         connector.SetState(STATE_DISCONNECTED);
+00206                         WriteOpers("Could not create outbound connection to %s:%d",targethost,newport);
+00207                 }
+00208         }
+00209         return false;
+00210 }
 
@@ -769,95 +796,107 @@ Returns the next available packet and returns true if data is available.

Writes the servername the data came from to 'host'. If no data is available this function returns false. This function will automatically close broken links and reroute pathways, generating split messages on the network.

-Definition at line 370 of file servers.cpp. -

-References already_have_sum(), connectors, DEBUG, and STATE_DISCONNECTED. -

-

00371 {
-00372         char data[65536];
-00373         memset(data, 0, 65536);
-00374         for (int i = 0; i < this->connectors.size(); i++)
-00375         {
-00376                 if (this->connectors[i].GetState() != STATE_DISCONNECTED)
-00377                 {
-00378                         // returns false if the packet could not be sent (e.g. target host down)
-00379                         int rcvsize = 0;
-00380 
-00381                         // check if theres any data on this socket
-00382                         // if not, continue onwards to the next.
-00383                         pollfd polls;
-00384                         polls.fd = this->connectors[i].GetDescriptor();
-00385                         polls.events = POLLIN;
-00386                         int ret = poll(&polls,1,1);
-00387                         if (ret <= 0) continue;
-00388 
-00389                         rcvsize = recv(this->connectors[i].GetDescriptor(),data,65000,0);
-00390                         data[rcvsize] = '\0';
-00391                         if (rcvsize == -1)
-00392                         {
-00393                                 if (errno != EAGAIN)
-00394                                 {
-00395                                         log(DEBUG,"recv() failed for serverrec::RecvPacket(): %s",strerror(errno));
-00396                                         log(DEBUG,"Disabling connector: %s",this->connectors[i].GetServerName().c_str());
-00397                                         this->connectors[i].CloseConnection();
-00398                                         this->connectors[i].SetState(STATE_DISCONNECTED);
-00399                                 }
-00400                         }
-00401                         int pushed = 0;
-00402                         if (rcvsize > 0)
-00403                         {
-00404                                 if (!this->connectors[i].AddBuffer(data))
-00405                                 {
-00406                                         WriteOpers("*** Read buffer for %s exceeds maximum, closing connection!",this->connectors[i].GetServerName().c_str());
-00407                                         this->connectors[i].CloseConnection();
-00408                                         this->connectors[i].SetState(STATE_DISCONNECTED);
-00409                                 }
-00410                                 if (this->connectors[i].BufferIsComplete())
-00411                                 {
-00412                                         this->connectors[i].ResetPing();
-00413                                         while (this->connectors[i].BufferIsComplete())
-00414                                         {
-00415                                                 std::string text = this->connectors[i].GetBuffer();
-00416                                                 if (text != "")
-00417                                                 {
-00418                                                         if ((text[0] == ':') && (text.find(" ") != std::string::npos))
-00419                                                         {
-00420                                                                 std::string orig = text;
-00421                                                                 log(DEBUG,"Original: %s",text.c_str());
-00422                                                                 std::string sum = text.substr(1,text.find(" ")-1);
-00423                                                                 text = text.substr(text.find(" ")+1,text.length());
-00424                                                                 std::string possible_token = text.substr(1,text.find(" ")-1);
-00425                                                                 if (possible_token.length() > 1)
-00426                                                                 {
-00427                                                                         sums.push_back("*");
-00428                                                                         text = orig;
-00429                                                                         log(DEBUG,"Non-mesh, non-tokenized string passed up the chain");
-00430                                                                 }
-00431                                                                 else
-00432                                                                 {
-00433                                                                         log(DEBUG,"Packet sum: '%s'",sum.c_str());
-00434                                                                         if ((already_have_sum(sum)) && (sum != "*"))
-00435                                                                         {
-00436                                                                                 // we don't accept dupes
-00437                                                                                 continue;
-00438                                                                         }
-00439                                                                         sums.push_back(sum.c_str());
-00440                                                                 }
-00441                                                         }
-00442                                                         else sums.push_back("*");
-00443                                                         messages.push_back(text.c_str());
-00444                                                         strlcpy(recvhost,this->connectors[i].GetServerName().c_str(),160);
-00445                                                         log(DEBUG,"serverrec::RecvPacket() %d:%s->%s",pushed++,recvhost,text.c_str());
-00446                                                 }
-00447                                         }
-00448                                         return true;
-00449                                 }
-00450                         }
-00451                 }
-00452         }
-00453         // nothing new yet -- message and host will be undefined
-00454         return false;
-00455 }
+Definition at line 431 of file servers.cpp.
+

+References already_have_sum(), connectors, DEBUG, has_been_netsplit, IsRoutable(), and STATE_DISCONNECTED. +

+

00432 {
+00433         char data[65536];
+00434         memset(data, 0, 65536);
+00435         for (int i = 0; i < this->connectors.size(); i++)
+00436         {
+00437                 if (this->connectors[i].GetState() != STATE_DISCONNECTED)
+00438                 {
+00439                         // returns false if the packet could not be sent (e.g. target host down)
+00440                         int rcvsize = 0;
+00441 
+00442                         // check if theres any data on this socket
+00443                         // if not, continue onwards to the next.
+00444                         pollfd polls;
+00445                         polls.fd = this->connectors[i].GetDescriptor();
+00446                         polls.events = POLLIN;
+00447                         int ret = poll(&polls,1,1);
+00448                         if (ret <= 0) continue;
+00449 
+00450                         rcvsize = recv(this->connectors[i].GetDescriptor(),data,65000,0);
+00451                         data[rcvsize] = '\0';
+00452                         if (rcvsize == -1)
+00453                         {
+00454                                 if (errno != EAGAIN)
+00455                                 {
+00456                                         log(DEBUG,"recv() failed for serverrec::RecvPacket(): %s",strerror(errno));
+00457                                         log(DEBUG,"Disabling connector: %s",this->connectors[i].GetServerName().c_str());
+00458                                         this->connectors[i].CloseConnection();
+00459                                         this->connectors[i].SetState(STATE_DISCONNECTED);
+00460                                         if (!IsRoutable(this->connectors[i].GetServerName()))
+00461                                         {
+00462                                                 WriteOpers("*** Server %s is no longer routable, disconnecting.",this->connectors[i].GetServerName().c_str());
+00463                                                 DoSplit(this->connectors[i].GetServerName().c_str());
+00464                                         }
+00465                                         has_been_netsplit = true;
+00466                                 }
+00467                         }
+00468                         int pushed = 0;
+00469                         if (rcvsize > 0)
+00470                         {
+00471                                 if (!this->connectors[i].AddBuffer(data))
+00472                                 {
+00473                                         WriteOpers("*** Read buffer for %s exceeds maximum, closing connection!",this->connectors[i].GetServerName().c_str());
+00474                                         this->connectors[i].CloseConnection();
+00475                                         this->connectors[i].SetState(STATE_DISCONNECTED);
+00476                                         if (!IsRoutable(this->connectors[i].GetServerName()))
+00477                                         {
+00478                                                 WriteOpers("*** Server %s is no longer routable, disconnecting.",this->connectors[i].GetServerName().c_str());
+00479                                                 DoSplit(this->connectors[i].GetServerName().c_str());
+00480                                         }
+00481                                         has_been_netsplit = true;
+00482                                 }
+00483                                 if (this->connectors[i].BufferIsComplete())
+00484                                 {
+00485                                         this->connectors[i].ResetPing();
+00486                                         while (this->connectors[i].BufferIsComplete())
+00487                                         {
+00488                                                 std::string text = this->connectors[i].GetBuffer();
+00489                                                 if (text != "")
+00490                                                 {
+00491                                                         if ((text[0] == ':') && (text.find(" ") != std::string::npos))
+00492                                                         {
+00493                                                                 std::string orig = text;
+00494                                                                 log(DEBUG,"Original: %s",text.c_str());
+00495                                                                 std::string sum = text.substr(1,text.find(" ")-1);
+00496                                                                 text = text.substr(text.find(" ")+1,text.length());
+00497                                                                 std::string possible_token = text.substr(1,text.find(" ")-1);
+00498                                                                 if (possible_token.length() > 1)
+00499                                                                 {
+00500                                                                         sums.push_back("*");
+00501                                                                         text = orig;
+00502                                                                         log(DEBUG,"Non-mesh, non-tokenized string passed up the chain");
+00503                                                                 }
+00504                                                                 else
+00505                                                                 {
+00506                                                                         log(DEBUG,"Packet sum: '%s'",sum.c_str());
+00507                                                                         if ((already_have_sum(sum)) && (sum != "*"))
+00508                                                                         {
+00509                                                                                 // we don't accept dupes
+00510                                                                                 continue;
+00511                                                                         }
+00512                                                                         sums.push_back(sum.c_str());
+00513                                                                 }
+00514                                                         }
+00515                                                         else sums.push_back("*");
+00516                                                         messages.push_back(text.c_str());
+00517                                                         strlcpy(recvhost,this->connectors[i].GetServerName().c_str(),160);
+00518                                                         log(DEBUG,"serverrec::RecvPacket() %d:%s->%s",pushed++,recvhost,text.c_str());
+00519                                                 }
+00520                                         }
+00521                                         return true;
+00522                                 }
+00523                         }
+00524                 }
+00525         }
+00526         // nothing new yet -- message and host will be undefined
+00527         return false;
+00528 }
 
@@ -900,85 +939,85 @@ Send a message to a server by name, if the server is unavailable directly route

-Definition at line 275 of file servers.cpp. -

-References ircd_connector::AddWriteBuf(), ircd_connector::CloseConnection(), connectors, DEBUG, FindHost(), ircd_connector::FlushWriteBuf(), ircd_connector::GetServerName(), ircd_connector::GetState(), ircd_connector::GetWriteError(), ircd_connector::SetState(), and STATE_DISCONNECTED. -

-Referenced by BeginLink(), and MeshCookie(). -

-

00276 {
-00277         if ((!message) || (!sendhost))
-00278                 return true;
-00279 
-00280         ircd_connector* cn = this->FindHost(sendhost);
-00281 
-00282         if (!strchr(message,'\n'))
-00283         {
-00284                 strlcat(message,"\n",MAXBUF);
-00285         }
-00286 
-00287         if (cn)
-00288         {
-00289                 log(DEBUG,"main: serverrec::SendPacket() sent '%s' to %s",message,cn->GetServerName().c_str());
-00290 
-00291                 if (cn->GetState() == STATE_DISCONNECTED)
-00292                 {
-00293                         // fix: can only route one hop to avoid a loop
-00294                         if (strncmp(message,"R ",2))
-00295                         {
-00296                                 log(DEBUG,"Not a double reroute");
-00297                                 // this route is down, we must re-route the packet through an available point in the mesh.
-00298                                 for (int k = 0; k < this->connectors.size(); k++)
-00299                                 {
-00300                                         log(DEBUG,"Check connector %d: %s",k,this->connectors[k].GetServerName().c_str());
-00301                                         // search for another point in the mesh which can 'reach' where we want to go
-00302                                         for (int m = 0; m < this->connectors[k].routes.size(); m++)
-00303                                         {
-00304                                                 if (!strcasecmp(this->connectors[k].routes[m].c_str(),sendhost))
-00305                                                 {
-00306                                                         log(DEBUG,"Found alternative route for packet: %s",this->connectors[k].GetServerName().c_str());
-00307                                                         char buffer[MAXBUF];
-00308                                                         snprintf(buffer,MAXBUF,"R %s %s",sendhost,message);
-00309                                                         this->SendPacket(buffer,this->connectors[k].GetServerName().c_str());
-00310                                                         return true;
-00311                                                 }
-00312                                         }
-00313                                 }
-00314                         }
-00315                         char buffer[MAXBUF];
-00316                         snprintf(buffer,MAXBUF,"& %s",sendhost);
-00317                         WriteOpers("*** All connections to %s lost.",sendhost);
-00318                         NetSendToAllExcept(sendhost,buffer);
-00319                         DoSplit(sendhost);
-00320                         return false;
-00321                 }
-00322 
-00323                 // returns false if the packet could not be sent (e.g. target host down)
-00324                 if (!cn->AddWriteBuf(message))
-00325                 {
-00326                         // if we're here, there was an error pending, and the send cannot proceed
-00327                         log(DEBUG,"cn->AddWriteBuf() failed for serverrec::SendPacket(): %s",cn->GetWriteError().c_str());
-00328                         log(DEBUG,"Disabling connector: %s",cn->GetServerName().c_str());
-00329                         cn->CloseConnection();
-00330                         cn->SetState(STATE_DISCONNECTED);
-00331                         WriteOpers("*** Lost single connection to %s, link inactive and retrying: %s",cn->GetServerName().c_str(),cn->GetWriteError().c_str());
-00332                         // retry the packet along a new route so either arrival OR failure are gauranteed (bugfix)
-00333                         return this->SendPacket(message,sendhost);
-00334                 }
-00335                 if (!cn->FlushWriteBuf())
-00336                 {
-00337                         // if we're here the write() caused an error, we cannot proceed
-00338                         log(DEBUG,"cn->FlushWriteBuf() failed for serverrec::SendPacket(): %s",cn->GetWriteError().c_str());
-00339                         log(DEBUG,"Disabling connector: %s",cn->GetServerName().c_str());
-00340                         cn->CloseConnection();
-00341                         cn->SetState(STATE_DISCONNECTED);
-00342                         WriteOpers("*** Lost single connection to %s, link inactive and retrying: %s",cn->GetServerName().c_str(),cn->GetWriteError().c_str());
-00343                         // retry the packet along a new route so either arrival OR failure are gauranteed
-00344                         return this->SendPacket(message,sendhost);
-00345                 }
-00346                 return true;
-00347         }
-00348 }
+Definition at line 336 of file servers.cpp.
+

+References ircd_connector::AddWriteBuf(), ircd_connector::CloseConnection(), connectors, DEBUG, FindHost(), ircd_connector::FlushWriteBuf(), ircd_connector::GetServerName(), ircd_connector::GetState(), ircd_connector::GetWriteError(), ircd_connector::SetState(), and STATE_DISCONNECTED. +

+Referenced by BeginLink(), and MeshCookie(). +

+

00337 {
+00338         if ((!message) || (!sendhost))
+00339                 return true;
+00340 
+00341         ircd_connector* cn = this->FindHost(sendhost);
+00342 
+00343         if (!strchr(message,'\n'))
+00344         {
+00345                 strlcat(message,"\n",MAXBUF);
+00346         }
+00347 
+00348         if (cn)
+00349         {
+00350                 log(DEBUG,"main: serverrec::SendPacket() sent '%s' to %s",message,cn->GetServerName().c_str());
+00351 
+00352                 if (cn->GetState() == STATE_DISCONNECTED)
+00353                 {
+00354                         // fix: can only route one hop to avoid a loop
+00355                         if (strncmp(message,"R ",2))
+00356                         {
+00357                                 log(DEBUG,"Not a double reroute");
+00358                                 // this route is down, we must re-route the packet through an available point in the mesh.
+00359                                 for (int k = 0; k < this->connectors.size(); k++)
+00360                                 {
+00361                                         log(DEBUG,"Check connector %d: %s",k,this->connectors[k].GetServerName().c_str());
+00362                                         // search for another point in the mesh which can 'reach' where we want to go
+00363                                         for (int m = 0; m < this->connectors[k].routes.size(); m++)
+00364                                         {
+00365                                                 if (!strcasecmp(this->connectors[k].routes[m].c_str(),sendhost))
+00366                                                 {
+00367                                                         log(DEBUG,"Found alternative route for packet: %s",this->connectors[k].GetServerName().c_str());
+00368                                                         char buffer[MAXBUF];
+00369                                                         snprintf(buffer,MAXBUF,"R %s %s",sendhost,message);
+00370                                                         this->SendPacket(buffer,this->connectors[k].GetServerName().c_str());
+00371                                                         return true;
+00372                                                 }
+00373                                         }
+00374                                 }
+00375                         }
+00376                         char buffer[MAXBUF];
+00377                         snprintf(buffer,MAXBUF,"& %s",sendhost);
+00378                         WriteOpers("*** All connections to %s lost.",sendhost);
+00379                         NetSendToAllExcept(sendhost,buffer);
+00380                         DoSplit(sendhost);
+00381                         return false;
+00382                 }
+00383 
+00384                 // returns false if the packet could not be sent (e.g. target host down)
+00385                 if (!cn->AddWriteBuf(message))
+00386                 {
+00387                         // if we're here, there was an error pending, and the send cannot proceed
+00388                         log(DEBUG,"cn->AddWriteBuf() failed for serverrec::SendPacket(): %s",cn->GetWriteError().c_str());
+00389                         log(DEBUG,"Disabling connector: %s",cn->GetServerName().c_str());
+00390                         cn->CloseConnection();
+00391                         cn->SetState(STATE_DISCONNECTED);
+00392                         WriteOpers("*** Lost single connection to %s, link inactive and retrying: %s",cn->GetServerName().c_str(),cn->GetWriteError().c_str());
+00393                         // retry the packet along a new route so either arrival OR failure are gauranteed (bugfix)
+00394                         return this->SendPacket(message,sendhost);
+00395                 }
+00396                 if (!cn->FlushWriteBuf())
+00397                 {
+00398                         // if we're here the write() caused an error, we cannot proceed
+00399                         log(DEBUG,"cn->FlushWriteBuf() failed for serverrec::SendPacket(): %s",cn->GetWriteError().c_str());
+00400                         log(DEBUG,"Disabling connector: %s",cn->GetServerName().c_str());
+00401                         cn->CloseConnection();
+00402                         cn->SetState(STATE_DISCONNECTED);
+00403                         WriteOpers("*** Lost single connection to %s, link inactive and retrying: %s",cn->GetServerName().c_str(),cn->GetWriteError().c_str());
+00404                         // retry the packet along a new route so either arrival OR failure are gauranteed
+00405                         return this->SendPacket(message,sendhost);
+00406                 }
+00407                 return true;
+00408         }
+00409 }
 
@@ -1012,13 +1051,13 @@ Terminate a link to 'targethost' by calling the 229 of file servers.cpp. +Definition at line 234 of file servers.cpp.

-

00230 {
-00231         // this locates the targethost in the serverrec::connectors vector of the class,
-00232         // and terminates it by sending it an SQUIT token and closing its descriptor.
-00233         // TerminateLink with a null string causes a terminate of ALL links
-00234 }
+
00235 {
+00236         // this locates the targethost in the serverrec::connectors vector of the class,
+00237        // and terminates it by sending it an SQUIT token and closing its descriptor.
+00238         // TerminateLink with a null string causes a terminate of ALL links
+00239 }
 
@@ -1048,7 +1087,7 @@ With a serverrec, this is a list of all established server connections.

Definition at line 81 of file servers.h.

-Referenced by AddIncoming(), BeginLink(), FindHost(), FlushWriteBuffers(), MeshCookie(), RecvPacket(), SendPacket(), and serverrec(). +Referenced by AddIncoming(), BeginLink(), FindHost(), FlushWriteBuffers(), IsRoutable(), MeshCookie(), RecvPacket(), SendPacket(), and serverrec().

@@ -1102,7 +1141,7 @@ number of hops away (for quick access)

Definition at line 51 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -1130,7 +1169,7 @@ is a JUPE server (faked to enforce a server ban)

Definition at line 57 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -1158,7 +1197,7 @@ server name

Definition at line 36 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -1186,7 +1225,7 @@ Holds nickserv's name on U:lined (services) servers (this is a kludge for ircser

Definition at line 65 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -1214,7 +1253,7 @@ opers on server

Definition at line 48 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -1242,7 +1281,7 @@ last ping response (ms)

Definition at line 39 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -1268,7 +1307,7 @@ Referenced by serverrec() Definition at line 67 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -1296,7 +1335,7 @@ non-invisible users on server

Definition at line 45 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -1324,7 +1363,7 @@ invisible users on server

Definition at line 42 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -1352,12 +1391,12 @@ ircd version

Definition at line 54 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().


The documentation for this class was generated from the following files: -
Generated on Tue May 24 02:32:39 2005 for InspIRCd by +
Generated on Wed May 25 21:43:33 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classstd_1_1char__traits.html b/docs/module-doc/classstd_1_1char__traits.html index 279a40c74..1b64993d3 100644 --- a/docs/module-doc/classstd_1_1char__traits.html +++ b/docs/module-doc/classstd_1_1char__traits.html @@ -14,7 +14,7 @@
The documentation for this class was generated from the following file: -
Generated on Tue May 24 02:31:35 2005 for InspIRCd by +
Generated on Wed May 25 21:42:57 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index a83284aac..510955861 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -13,7 +13,7 @@ ucrec()ucrec [inline] ~classbase()classbase [inline] ~ucrec()ucrec [inline, virtual] -
Generated on Tue May 24 02:32:41 2005 for InspIRCd by +
Generated on Wed May 25 21:43:34 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index fe543e2b9..4eac5b3c9 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -167,7 +167,7 @@ Referenced by userrec::userre
The documentation for this class was generated from the following file:
-
Generated on Tue May 24 02:32:41 2005 for InspIRCd by +
Generated on Wed May 25 21:43:34 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index f4da154bd..083d529d1 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -70,7 +70,7 @@ WriteErroruserrec ~classbase()classbase [inline] ~userrec()userrec [inline, virtual] -
Generated on Tue May 24 02:32:48 2005 for InspIRCd by +
Generated on Wed May 25 21:43:38 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 257dd3b50..d20705941 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -1747,7 +1747,7 @@ Referenced by GetWriteError()
The documentation for this class was generated from the following files:
-
Generated on Tue May 24 02:32:48 2005 for InspIRCd by +
Generated on Wed May 25 21:43:38 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/commands_8h-source.html b/docs/module-doc/commands_8h-source.html index 827dbc081..65c396fd0 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -118,8 +118,10 @@ 00119 00122 long duration(const char* str); 00123 -00124 #endif -

Generated on Tue May 24 02:30:02 2005 for InspIRCd by +00126 void ConnectServer(char* servermask, userrec* user); +00127 +00128 #endif +

Generated on Wed May 25 21:42:12 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index d2475883b..4e06fd4ba 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -190,8 +190,51 @@ This graph shows which files directly or indirectly include this file:

long duration (const char *str)  Other useful functions.

+void ConnectServer (char *servermask, userrec *user) + + Server connect creation.



Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void ConnectServer char *  servermask,
userrec user
+
+ + + + + +
+   + + +

+Server connect creation. +

+

@@ -3996,7 +4039,7 @@ Referenced by Server::IsUli
-


Generated on Tue May 24 02:30:38 2005 for InspIRCd by +
Generated on Wed May 25 21:42:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index 1767f150f..39d8ccda8 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -178,7 +178,7 @@ 00326 00327 00328 #endif -

Generated on Tue May 24 02:30:02 2005 for InspIRCd by +

Generated on Wed May 25 21:42:13 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index 2d718b681..f2435bae1 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -85,9 +85,7 @@ This graph shows which files directly or indirectly include this file:

-Definition at line 36 of file connection.h. -

-Referenced by serverrec::MeshCookie(). +Definition at line 36 of file connection.h.

@@ -113,7 +111,7 @@ Referenced by serverrec::Me

Definition at line 35 of file connection.h.

-Referenced by serverrec::BeginLink(), serverrec::FlushWriteBuffers(), serverrec::MeshCookie(), serverrec::RecvPacket(), and serverrec::SendPacket(). +Referenced by serverrec::BeginLink(), serverrec::FlushWriteBuffers(), IsRoutable(), serverrec::MeshCookie(), serverrec::RecvPacket(), and serverrec::SendPacket().

@@ -139,7 +137,7 @@ Referenced by serverrec::Be

Definition at line 38 of file connection.h.

-Referenced by serverrec::AddIncoming(). +Referenced by serverrec::AddIncoming(), and serverrec::FlushWriteBuffers().

@@ -165,7 +163,7 @@ Referenced by serverrec::Ad

Definition at line 39 of file connection.h.

-Referenced by serverrec::BeginLink(), and serverrec::MeshCookie(). +Referenced by serverrec::BeginLink(), serverrec::FlushWriteBuffers(), and serverrec::MeshCookie().

@@ -245,7 +243,7 @@ Definition at line 37 -


Generated on Tue May 24 02:30:42 2005 for InspIRCd by +
Generated on Wed May 25 21:42:29 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index c4687a31a..14393ac42 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -42,7 +42,7 @@ 00051 00052 #endif 00053 -

Generated on Tue May 24 02:30:02 2005 for InspIRCd by +

Generated on Wed May 25 21:42:13 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index d0145641c..e2f6f9203 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -31,7 +31,7 @@ This graph shows which files directly or indirectly include this file:

 A structure that defines a command. More...

-
Generated on Tue May 24 02:30:44 2005 for InspIRCd by +
Generated on Wed May 25 21:42:30 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/dns_8h-source.html b/docs/module-doc/dns_8h-source.html index 4fd4dd82c..0ddbd6d62 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -70,7 +70,7 @@ 00093 }; 00094 00095 #endif -

Generated on Tue May 24 02:30:02 2005 for InspIRCd by +

Generated on Wed May 25 21:42:13 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/dns_8h.html b/docs/module-doc/dns_8h.html index 50e0dd7e1..b88eec89e 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -23,7 +23,7 @@ Include dependency graph for dns.h:

struct  dns_ip4list -
Generated on Tue May 24 02:30:45 2005 for InspIRCd by +
Generated on Wed May 25 21:42:30 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index a80461590..ecd979b80 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -24,7 +24,7 @@ users.h [code] xline.h [code] -
Generated on Tue May 24 02:30:01 2005 for InspIRCd by +
Generated on Wed May 25 21:42:12 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 050119272..b864f3fdc 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -442,7 +442,7 @@ Here is a list of all class members with links to the classes they belong to:

serverrec
  • ~ucrec() : ucrec
  • ~userrec() : userrec -
    Generated on Tue May 24 02:31:27 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:53 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/functions_func.html b/docs/module-doc/functions_func.html index 68de60d5c..242f14db0 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -321,7 +321,7 @@ : serverrec
  • ~ucrec() : ucrec
  • ~userrec() : userrec -
    Generated on Tue May 24 02:31:27 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:53 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/functions_vars.html b/docs/module-doc/functions_vars.html index 984002521..55366fd85 100644 --- a/docs/module-doc/functions_vars.html +++ b/docs/module-doc/functions_vars.html @@ -189,7 +189,7 @@
  • -
    Generated on Tue May 24 02:31:27 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:53 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index 3284639d7..6d0fcd19c 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -37,7 +37,7 @@ Here is a list of all file members with links to the files they belong to:

    modules.cpp, channels.cpp
  • AdminNick : modules.cpp, channels.cpp
  • allowed_umode() : mode.h
  • already_have_sum() -: servers.cpp
  • apply_lines() +: servers.cpp
  • apply_lines() : xline.h
  • auth_cookies : modules.cpp, channels.cpp

    - b - @@ -76,7 +76,8 @@ Here is a list of all file members with links to the files they belong to:

    modules.h
  • CONF_NOT_UNSIGNED : modules.h
  • CONF_VALUE_NOT_FOUND : modules.h
  • config_f -: users.cpp, modules.cpp, channels.cpp
  • createcommand() +: users.cpp, modules.cpp, channels.cpp
  • ConnectServer() +: commands.h
  • createcommand() : modules.h
  • CreateSum() : connection.h
  • cstatus() : message.h
  • custom_mode_params @@ -154,9 +155,9 @@ Here is a list of all file members with links to the files they belong to:

    commands.h
  • handle_list() : commands.h
  • handle_loadmodule() : commands.h
  • handle_lusers() -: commands.h
  • handle_m() -: commands.h
  • handle_M() -: commands.h
  • handle_map() +: commands.h
  • handle_M() +: commands.h
  • handle_m() +: commands.h
  • handle_map() : commands.h
  • handle_mode() : mode.h
  • handle_modules() : commands.h
  • handle_motd() @@ -199,7 +200,8 @@ Here is a list of all file members with links to the files they belong to:

    commands.h
  • handle_whois() : commands.h
  • handle_whowas() : commands.h
  • handle_zline() -: commands.h
  • has_channel() +: commands.h
  • has_been_netsplit +: servers.cpp
  • has_channel() : message.h
  • hasumode() : message.h

    - i - @@ -211,7 +213,8 @@ Here is a list of all file members with links to the files they belong to:

    modules.h
  • is_uline() : commands.h
  • isident() : message.h
  • isnick() -: message.h +: message.h
  • IsRoutable() +: servers.cpp

    - l -

    - z -

    -
    Generated on Tue May 24 02:32:57 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_defs.html b/docs/module-doc/globals_defs.html index c0ed1a88e..15e49f273 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -98,7 +98,7 @@ : modules.h
  • VF_STATIC : modules.h
  • VF_VENDOR : modules.h -
    Generated on Tue May 24 02:32:57 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_func.html b/docs/module-doc/globals_func.html index cf17c00b5..e42b21055 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -21,7 +21,7 @@ : xline.h
  • add_zline() : xline.h
  • allowed_umode() : mode.h
  • already_have_sum() -: servers.cpp
  • apply_lines() +: servers.cpp
  • apply_lines() : xline.h

    - b -

    @@ -98,9 +99,9 @@ : commands.h
  • handle_list() : commands.h
  • handle_loadmodule() : commands.h
  • handle_lusers() -: commands.h
  • handle_m() -: commands.h
  • handle_M() -: commands.h
  • handle_map() +: commands.h
  • handle_M() +: commands.h
  • handle_m() +: commands.h
  • handle_map() : commands.h
  • handle_mode() : mode.h
  • handle_modules() : commands.h
  • handle_motd() @@ -151,7 +152,8 @@
  • is_uline() : commands.h
  • isident() : message.h
  • isnick() -: message.h +: message.h
  • IsRoutable() +: servers.cpp

    - m -

    • matches_exception() @@ -213,7 +215,7 @@
    • zline_make_global() : xline.h
    • zline_set_creation_time() : xline.h
    -
    Generated on Tue May 24 02:32:57 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_type.html b/docs/module-doc/globals_type.html index d3bf5b35b..609ef339b 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -27,7 +27,7 @@ : modules.cpp
  • VoidPointer : base.h
  • whowas_hash : modules.cpp -
    Generated on Tue May 24 02:32:57 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_vars.html b/docs/module-doc/globals_vars.html index e3b1e0065..f0a3c6e2c 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | i | l | m | n | p | r | s | t | w | x
    +
    a | b | c | d | e | f | h | i | l | m | n | p | r | s | t | w | x

    @@ -47,6 +47,10 @@

  • factory : modules.cpp, channels.cpp
  • fd_ref_table : modules.cpp +

    - h - +

    - i -

    +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/graph_legend.html b/docs/module-doc/graph_legend.html index a97d98270..bf316ee57 100644 --- a/docs/module-doc/graph_legend.html +++ b/docs/module-doc/graph_legend.html @@ -67,7 +67,7 @@ A purple dashed arrow is used if a class is contained or used by another class.
  • A yellow dashed arrow denotes a relation between a template instance and the template class it was instantiated from. The arrow is labeled with the template parameters of the instance.
  • -
    Generated on Tue May 24 02:32:57 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:44 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/hashcomp_8h-source.html b/docs/module-doc/hashcomp_8h-source.html index 12ddc30d8..8132b0e3f 100644 --- a/docs/module-doc/hashcomp_8h-source.html +++ b/docs/module-doc/hashcomp_8h-source.html @@ -107,7 +107,7 @@ 00130 } 00131 00132 #endif -


  • Generated on Tue May 24 02:30:02 2005 for InspIRCd by +

    Generated on Wed May 25 21:42:13 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/hashcomp_8h.html b/docs/module-doc/hashcomp_8h.html index 8d7cfa156..1d940bdaa 100644 --- a/docs/module-doc/hashcomp_8h.html +++ b/docs/module-doc/hashcomp_8h.html @@ -54,7 +54,7 @@ This graph shows which files directly or indirectly include this file:

    44 of file hashcomp.h. -
    Generated on Tue May 24 02:30:47 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:31 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 7ca7a6ee1..8c30f602e 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -65,7 +65,7 @@ This inheritance list is sorted roughly, but not completely, alphabetically: -
    Generated on Tue May 24 02:31:27 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:52 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/inherits.html b/docs/module-doc/inherits.html index 9079b86bb..305e492be 100644 --- a/docs/module-doc/inherits.html +++ b/docs/module-doc/inherits.html @@ -78,7 +78,7 @@ -
    Generated on Tue May 24 02:33:02 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:46 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index f62060115..200a06996 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@

    InspIRCd Documentation

    -

    1.0Betareleases


    Generated on Tue May 24 02:30:01 2005 for InspIRCd by +

    1.0Betareleases


    Generated on Wed May 25 21:42:12 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/message_8h-source.html b/docs/module-doc/message_8h-source.html index 74bbb3cfa..4996f2667 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -55,7 +55,7 @@ 00048 void send_network_quit(const char* nick, const char* reason); 00049 00050 #endif -

    Generated on Tue May 24 02:30:03 2005 for InspIRCd by +

    Generated on Wed May 25 21:42:13 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/message_8h.html b/docs/module-doc/message_8h.html index 667050117..9ef3319b9 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -694,7 +694,7 @@ Referenced by Server::IsNic -
    Generated on Tue May 24 02:30:50 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:33 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/mode_8h-source.html b/docs/module-doc/mode_8h-source.html index 8ad0eae9b..9cbedc087 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -53,7 +53,7 @@ 00046 00047 00048 #endif -
    Generated on Tue May 24 02:30:03 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:13 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/mode_8h.html b/docs/module-doc/mode_8h.html index 3cb474367..080920ce0 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -802,7 +802,7 @@ This graph shows which files directly or indirectly include this file:

    -
    Generated on Tue May 24 02:30:53 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:34 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 8492f387e..f2abf36c5 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -1023,7 +1023,7 @@ 01016 int MODCOUNT = -1; 01017 01018 -
    Generated on Tue May 24 02:30:04 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:13 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index f1dbc24f0..57b8d97cb 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -1349,7 +1349,7 @@ Definition at line 98 o -
    serverrec* me[32] + serverrec* me[32]
    @@ -1895,7 +1895,7 @@ Definition at line 94 o Definition at line 93 of file modules.cpp. -
    Generated on Tue May 24 02:31:08 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:42 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index 94b07f708..daed91b45 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -450,7 +450,7 @@ 01307 typedef DLLFactory<ModuleFactory> ircd_module; 01308 01309 #endif -
    Generated on Tue May 24 02:30:06 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:14 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 12c36a8ff..8207364c9 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -558,7 +558,7 @@ Referenced by ConfigReader:

    Definition at line 23 of file modules.h.

    -Referenced by Server::AddExtendedMode(), serverrec::AddIncoming(), chanrec::AddUser(), chanrec::DelUser(), userrec::HasPermission(), chanrec::IsCustomModeSet(), serverrec::RecvPacket(), userrec::RemoveInvite(), serverrec::SendPacket(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), userrec::SetWriteError(), and Server::UserToPseudo(). +Referenced by Server::AddExtendedMode(), serverrec::AddIncoming(), chanrec::AddUser(), chanrec::DelUser(), userrec::HasPermission(), chanrec::IsCustomModeSet(), serverrec::RecvPacket(), userrec::RemoveInvite(), serverrec::SendPacket(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), userrec::SetWriteError(), and Server::UserToPseudo().

    @@ -1135,7 +1135,7 @@ Referenced by Server::AddCo Referenced by Server::SendMode(). -


    Generated on Tue May 24 02:31:11 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespaceirc.html b/docs/module-doc/namespaceirc.html index 10e0e126a..31a33dc6b 100644 --- a/docs/module-doc/namespaceirc.html +++ b/docs/module-doc/namespaceirc.html @@ -55,7 +55,7 @@ This typedef declares irc::string Definition at line 129 of file hashcomp.h. -
    Generated on Tue May 24 02:32:55 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:42 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacemembers.html b/docs/module-doc/namespacemembers.html index 2e90e9ba5..9bed16d14 100644 --- a/docs/module-doc/namespacemembers.html +++ b/docs/module-doc/namespacemembers.html @@ -11,7 +11,7 @@ Here is a list of all namespace members with links to the namespace documentation for each member: -
    Generated on Tue May 24 02:32:57 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacemembers_type.html b/docs/module-doc/namespacemembers_type.html index 79aaac483..ee7150f5f 100644 --- a/docs/module-doc/namespacemembers_type.html +++ b/docs/module-doc/namespacemembers_type.html @@ -11,7 +11,7 @@ -
    Generated on Tue May 24 02:32:57 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index cff039cf0..174d65dd7 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -15,7 +15,7 @@ struct  nspace.hash< string > -
    Generated on Tue May 24 02:32:56 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index 8e4d3d677..13f8765a0 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -10,7 +10,7 @@ nspace std -
    Generated on Tue May 24 02:32:55 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:42 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index aff42accb..8c9c81579 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@
    -
    Generated on Tue May 24 02:32:56 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8cpp-source.html b/docs/module-doc/servers_8cpp-source.html index 306245ef0..4e57b19f7 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -44,424 +44,497 @@ 00037 extern time_t TIME; 00038 extern int MaxConn; 00039 -00040 std::deque<std::string> xsums; +00040 extern serverrec* me[32]; 00041 -00042 serverrec::serverrec() -00043 { -00044 strlcpy(name,"",256); -00045 pingtime = 0; -00046 lastping = TIME; -00047 usercount_i = usercount = opercount = version = 0; -00048 hops_away = 1; -00049 signon = TIME; -00050 jupiter = false; -00051 fd = 0; -00052 sync_soon = false; -00053 strlcpy(nickserv,"",NICKMAX); -00054 connectors.clear(); -00055 } -00056 -00057 -00058 serverrec::~serverrec() -00059 { -00060 } -00061 -00062 serverrec::serverrec(char* n, long ver, bool jupe) +00042 extern bool has_been_netsplit; +00043 +00044 std::deque<std::string> xsums; +00045 +00046 serverrec::serverrec() +00047 { +00048 strlcpy(name,"",256); +00049 pingtime = 0; +00050 lastping = TIME; +00051 usercount_i = usercount = opercount = version = 0; +00052 hops_away = 1; +00053 signon = TIME; +00054 jupiter = false; +00055 fd = 0; +00056 sync_soon = false; +00057 strlcpy(nickserv,"",NICKMAX); +00058 connectors.clear(); +00059 } +00060 +00061 +00062 serverrec::~serverrec() 00063 { -00064 strlcpy(name,n,256); -00065 lastping = TIME; -00066 usercount_i = usercount = opercount = 0; -00067 version = ver; -00068 hops_away = 1; -00069 signon = TIME; -00070 jupiter = jupe; -00071 fd = 0; -00072 sync_soon = false; -00073 strlcpy(nickserv,"",NICKMAX); -00074 connectors.clear(); -00075 } -00076 -00077 bool serverrec::CreateListener(char* newhost, int p) -00078 { -00079 sockaddr_in host_address; -00080 int flags; -00081 in_addr addy; -00082 int on = 0; -00083 struct linger linger = { 0 }; -00084 -00085 this->port = p; -00086 -00087 fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); -00088 if (fd <= 0) -00089 { -00090 return false; -00091 } -00092 -00093 setsockopt(fd,SOL_SOCKET,SO_REUSEADDR,(const char*)&on,sizeof(on)); -00094 linger.l_onoff = 1; -00095 linger.l_linger = 1; -00096 setsockopt(fd,SOL_SOCKET,SO_LINGER,(const char*)&linger,sizeof(linger)); -00097 -00098 // attempt to increase socket sendq and recvq as high as its possible -00099 // to get them on linux. -00100 int sendbuf = 32768; -00101 int recvbuf = 32768; -00102 setsockopt(fd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf)); -00103 setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(const void *)&recvbuf,sizeof(sendbuf)); -00104 -00105 memset((void*)&host_address, 0, sizeof(host_address)); -00106 -00107 host_address.sin_family = AF_INET; +00064 } +00065 +00066 serverrec::serverrec(char* n, long ver, bool jupe) +00067 { +00068 strlcpy(name,n,256); +00069 lastping = TIME; +00070 usercount_i = usercount = opercount = 0; +00071 version = ver; +00072 hops_away = 1; +00073 signon = TIME; +00074 jupiter = jupe; +00075 fd = 0; +00076 sync_soon = false; +00077 strlcpy(nickserv,"",NICKMAX); +00078 connectors.clear(); +00079 } +00080 +00081 bool serverrec::CreateListener(char* newhost, int p) +00082 { +00083 sockaddr_in host_address; +00084 int flags; +00085 in_addr addy; +00086 int on = 0; +00087 struct linger linger = { 0 }; +00088 +00089 this->port = p; +00090 +00091 fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); +00092 if (fd <= 0) +00093 { +00094 return false; +00095 } +00096 +00097 setsockopt(fd,SOL_SOCKET,SO_REUSEADDR,(const char*)&on,sizeof(on)); +00098 linger.l_onoff = 1; +00099 linger.l_linger = 1; +00100 setsockopt(fd,SOL_SOCKET,SO_LINGER,(const char*)&linger,sizeof(linger)); +00101 +00102 // attempt to increase socket sendq and recvq as high as its possible +00103 // to get them on linux. +00104 int sendbuf = 32768; +00105 int recvbuf = 32768; +00106 setsockopt(fd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf)); +00107 setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(const void *)&recvbuf,sizeof(sendbuf)); 00108 -00109 if (!strcmp(newhost,"")) -00110 { -00111 host_address.sin_addr.s_addr = htonl(INADDR_ANY); -00112 } -00113 else +00109 memset((void*)&host_address, 0, sizeof(host_address)); +00110 +00111 host_address.sin_family = AF_INET; +00112 +00113 if (!strcmp(newhost,"")) 00114 { -00115 inet_aton(newhost,&addy); -00116 host_address.sin_addr = addy; -00117 } -00118 -00119 host_address.sin_port = htons(p); -00120 -00121 if (bind(fd,(sockaddr*)&host_address,sizeof(host_address))<0) -00122 { -00123 return false; -00124 } -00125 -00126 // make the socket non-blocking -00127 flags = fcntl(fd, F_GETFL, 0); -00128 fcntl(fd, F_SETFL, flags | O_NONBLOCK); +00115 host_address.sin_addr.s_addr = htonl(INADDR_ANY); +00116 } +00117 else +00118 { +00119 inet_aton(newhost,&addy); +00120 host_address.sin_addr = addy; +00121 } +00122 +00123 host_address.sin_port = htons(p); +00124 +00125 if (bind(fd,(sockaddr*)&host_address,sizeof(host_address))<0) +00126 { +00127 return false; +00128 } 00129 -00130 this->port = p; -00131 -00132 listen(this->fd, MaxConn); +00130 // make the socket non-blocking +00131 flags = fcntl(fd, F_GETFL, 0); +00132 fcntl(fd, F_SETFL, flags | O_NONBLOCK); 00133 -00134 return true; -00135 } -00136 +00134 this->port = p; +00135 +00136 listen(this->fd, MaxConn); 00137 -00138 bool serverrec::BeginLink(char* targethost, int newport, char* password, char* servername, int myport) -00139 { -00140 char connect[MAXBUF]; +00138 return true; +00139 } +00140 00141 -00142 ircd_connector connector; -00143 ircd_connector *cn = this->FindHost(servername); -00144 +00142 bool serverrec::BeginLink(char* targethost, int newport, char* password, char* servername, int myport) +00143 { +00144 char connect[MAXBUF]; 00145 -00146 if (cn) -00147 { -00148 WriteOpers("CONNECT aborted: Server %s already exists",servername); -00149 return false; -00150 } -00151 -00152 -00153 if (this->fd) -00154 { -00155 if (connector.MakeOutboundConnection(targethost,newport)) -00156 { -00157 // targethost has been turned into an ip... -00158 // we dont want this as the server name. -00159 connector.SetServerName(servername); -00160 snprintf(connect,MAXBUF,"S %s %s %lu %s :%s",getservername().c_str(),password,(unsigned long)myport,GetRevision().c_str(),getserverdesc().c_str()); -00161 connector.SetState(STATE_NOAUTH_OUTBOUND); -00162 connector.SetHostAndPort(targethost, newport); -00163 this->connectors.push_back(connector); -00164 return this->SendPacket(connect, servername); -00165 } -00166 else -00167 { -00168 connector.SetState(STATE_DISCONNECTED); -00169 WriteOpers("Could not create outbound connection to %s:%d",targethost,newport); -00170 } -00171 } -00172 return false; -00173 } -00174 -00175 -00176 bool serverrec::MeshCookie(char* targethost, int newport, unsigned long cookie, char* servername) -00177 { -00178 char connect[MAXBUF]; -00179 -00180 ircd_connector connector; +00146 ircd_connector connector; +00147 ircd_connector *cn = this->FindHost(servername); +00148 +00149 +00150 if (cn) +00151 { +00152 WriteOpers("CONNECT aborted: Server %s already exists",servername); +00153 return false; +00154 } +00155 +00156 +00157 if (this->fd) +00158 { +00159 if (connector.MakeOutboundConnection(targethost,newport)) +00160 { +00161 // targethost has been turned into an ip... +00162 // we dont want this as the server name. +00163 connector.SetServerName(servername); +00164 snprintf(connect,MAXBUF,"S %s %s %lu %s :%s",getservername().c_str(),password,(unsigned long)myport,GetRevision().c_str(),getserverdesc().c_str()); +00165 connector.SetState(STATE_NOAUTH_OUTBOUND); +00166 connector.SetHostAndPort(targethost, newport); +00167 this->connectors.push_back(connector); +00168 // this packet isn't actually sent until the socket connects -- the STATE_NOAUTH_OUTBOUND state +00169 // queues outbound data until the socket is polled as writeable (e.g. the connection is established) +00170 return this->SendPacket(connect, servername); +00171 } +00172 else +00173 { +00174 connector.SetState(STATE_DISCONNECTED); +00175 WriteOpers("Could not create outbound connection to %s:%d",targethost,newport); +00176 } +00177 } +00178 return false; +00179 } +00180 00181 -00182 WriteOpers("Establishing meshed link to %s:%d",servername,newport); -00183 -00184 if (this->fd) -00185 { -00186 if (connector.MakeOutboundConnection(targethost,newport)) -00187 { -00188 // targethost has been turned into an ip... -00189 // we dont want this as the server name. -00190 connector.SetServerName(servername); -00191 snprintf(connect,MAXBUF,"- %lu %s :%s",cookie,getservername().c_str(),getserverdesc().c_str()); -00192 connector.SetState(STATE_NOAUTH_OUTBOUND); -00193 connector.SetHostAndPort(targethost, newport); -00194 connector.SetState(STATE_CONNECTED); -00195 this->connectors.push_back(connector); -00196 return this->SendPacket(connect, servername); -00197 } -00198 else -00199 { -00200 connector.SetState(STATE_DISCONNECTED); -00201 WriteOpers("Could not create outbound connection to %s:%d",targethost,newport); +00182 bool serverrec::MeshCookie(char* targethost, int newport, unsigned long cookie, char* servername) +00183 { +00184 char connect[MAXBUF]; +00185 +00186 ircd_connector connector; +00187 +00188 WriteOpers("Establishing meshed link to %s:%d",servername,newport); +00189 +00190 if (this->fd) +00191 { +00192 if (connector.MakeOutboundConnection(targethost,newport)) +00193 { +00194 // targethost has been turned into an ip... +00195 // we dont want this as the server name. +00196 connector.SetServerName(servername); +00197 snprintf(connect,MAXBUF,"- %lu %s :%s",cookie,getservername().c_str(),getserverdesc().c_str()); +00198 connector.SetState(STATE_NOAUTH_OUTBOUND); +00199 connector.SetHostAndPort(targethost, newport); +00200 this->connectors.push_back(connector); +00201 return this->SendPacket(connect, servername); 00202 } -00203 } -00204 return false; -00205 } -00206 -00207 bool serverrec::AddIncoming(int newfd, char* targethost, int sourceport) -00208 { -00209 ircd_connector connector; -00210 -00211 // targethost has been turned into an ip... -00212 // we dont want this as the server name. -00213 connector.SetServerName(targethost); -00214 connector.SetDescriptor(newfd); -00215 connector.SetState(STATE_NOAUTH_INBOUND); -00216 int flags = fcntl(newfd, F_GETFL, 0); -00217 fcntl(newfd, F_SETFL, flags | O_NONBLOCK); -00218 int sendbuf = 32768; -00219 int recvbuf = 32768; -00220 setsockopt(newfd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf)); -00221 setsockopt(newfd,SOL_SOCKET,SO_RCVBUF,(const void *)&recvbuf,sizeof(sendbuf)); -00222 connector.SetHostAndPort(targethost, sourceport); -00223 connector.SetState(STATE_NOAUTH_INBOUND); -00224 log(DEBUG,"serverrec::AddIncoming() Added connection: %s:%d",targethost,sourceport); -00225 this->connectors.push_back(connector); -00226 return true; -00227 } -00228 -00229 void serverrec::TerminateLink(char* targethost) -00230 { -00231 // this locates the targethost in the serverrec::connectors vector of the class, -00232 // and terminates it by sending it an SQUIT token and closing its descriptor. -00233 // TerminateLink with a null string causes a terminate of ALL links -00234 } -00235 -00236 // Returns a pointer to the connector for 'host' -00237 ircd_connector* serverrec::FindHost(std::string findhost) -00238 { -00239 for (int i = 0; i < this->connectors.size(); i++) -00240 { -00241 if (this->connectors[i].GetServerName() == findhost) -00242 { -00243 return &this->connectors[i]; -00244 } -00245 } -00246 return NULL; -00247 } -00248 -00249 void serverrec::FlushWriteBuffers() -00250 { -00251 for (int i = 0; i < this->connectors.size(); i++) -00252 { -00253 if (this->connectors[i].GetState() != STATE_DISCONNECTED) -00254 { -00255 if (!this->connectors[i].CheckPing()) -00256 { -00257 WriteOpers("*** Lost single connection to %s: Ping timeout",this->connectors[i].GetServerName().c_str()); -00258 this->connectors[i].CloseConnection(); -00259 this->connectors[i].SetState(STATE_DISCONNECTED); -00260 } -00261 } -00262 if (this->connectors[i].HasBufferedOutput()) -00263 { -00264 if (!this->connectors[i].FlushWriteBuf()) -00265 { -00266 // if we're here the write() caused an error, we cannot proceed -00267 WriteOpers("*** Lost single connection to %s, link inactive and retrying: %s",this->connectors[i].GetServerName().c_str(),this->connectors[i].GetWriteError().c_str()); -00268 this->connectors[i].CloseConnection(); -00269 this->connectors[i].SetState(STATE_DISCONNECTED); -00270 } -00271 } -00272 } -00273 } -00274 -00275 bool serverrec::SendPacket(char *message, const char* sendhost) -00276 { -00277 if ((!message) || (!sendhost)) -00278 return true; -00279 -00280 ircd_connector* cn = this->FindHost(sendhost); -00281 -00282 if (!strchr(message,'\n')) -00283 { -00284 strlcat(message,"\n",MAXBUF); -00285 } -00286 -00287 if (cn) -00288 { -00289 log(DEBUG,"main: serverrec::SendPacket() sent '%s' to %s",message,cn->GetServerName().c_str()); -00290 -00291 if (cn->GetState() == STATE_DISCONNECTED) -00292 { -00293 // fix: can only route one hop to avoid a loop -00294 if (strncmp(message,"R ",2)) -00295 { -00296 log(DEBUG,"Not a double reroute"); -00297 // this route is down, we must re-route the packet through an available point in the mesh. -00298 for (int k = 0; k < this->connectors.size(); k++) -00299 { -00300 log(DEBUG,"Check connector %d: %s",k,this->connectors[k].GetServerName().c_str()); -00301 // search for another point in the mesh which can 'reach' where we want to go -00302 for (int m = 0; m < this->connectors[k].routes.size(); m++) -00303 { -00304 if (!strcasecmp(this->connectors[k].routes[m].c_str(),sendhost)) -00305 { -00306 log(DEBUG,"Found alternative route for packet: %s",this->connectors[k].GetServerName().c_str()); -00307 char buffer[MAXBUF]; -00308 snprintf(buffer,MAXBUF,"R %s %s",sendhost,message); -00309 this->SendPacket(buffer,this->connectors[k].GetServerName().c_str()); -00310 return true; -00311 } -00312 } +00203 else +00204 { +00205 connector.SetState(STATE_DISCONNECTED); +00206 WriteOpers("Could not create outbound connection to %s:%d",targethost,newport); +00207 } +00208 } +00209 return false; +00210 } +00211 +00212 bool serverrec::AddIncoming(int newfd, char* targethost, int sourceport) +00213 { +00214 ircd_connector connector; +00215 +00216 // targethost has been turned into an ip... +00217 // we dont want this as the server name. +00218 connector.SetServerName(targethost); +00219 connector.SetDescriptor(newfd); +00220 connector.SetState(STATE_NOAUTH_INBOUND); +00221 int flags = fcntl(newfd, F_GETFL, 0); +00222 fcntl(newfd, F_SETFL, flags | O_NONBLOCK); +00223 int sendbuf = 32768; +00224 int recvbuf = 32768; +00225 setsockopt(newfd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf)); +00226 setsockopt(newfd,SOL_SOCKET,SO_RCVBUF,(const void *)&recvbuf,sizeof(sendbuf)); +00227 connector.SetHostAndPort(targethost, sourceport); +00228 connector.SetState(STATE_NOAUTH_INBOUND); +00229 log(DEBUG,"serverrec::AddIncoming() Added connection: %s:%d",targethost,sourceport); +00230 this->connectors.push_back(connector); +00231 return true; +00232 } +00233 +00234 void serverrec::TerminateLink(char* targethost) +00235 { +00236 // this locates the targethost in the serverrec::connectors vector of the class, +00237 // and terminates it by sending it an SQUIT token and closing its descriptor. +00238 // TerminateLink with a null string causes a terminate of ALL links +00239 } +00240 +00241 // Returns a pointer to the connector for 'host' +00242 ircd_connector* serverrec::FindHost(std::string findhost) +00243 { +00244 for (int i = 0; i < this->connectors.size(); i++) +00245 { +00246 if (this->connectors[i].GetServerName() == findhost) +00247 { +00248 return &this->connectors[i]; +00249 } +00250 } +00251 return NULL; +00252 } +00253 +00254 +00255 // Checks to see if we can still reach a server at all (e.g. is it in ANY routing table?) +00256 bool IsRoutable(std::string servername) +00257 { +00258 for (int x = 0; x < 32; x++) if (me[x]) +00259 { +00260 ircd_connector* cn = me[x]->FindHost(servername.c_str()); +00261 if (cn) +00262 { +00263 if (cn->GetState() == STATE_DISCONNECTED) +00264 { +00265 for (int k = 0; k < me[x]->connectors.size(); k++) +00266 { +00267 for (int m = 0; m < me[x]->connectors[k].routes.size(); m++) +00268 { +00269 if (!strcasecmp(me[x]->connectors[k].routes[m].c_str(),servername.c_str())) +00270 { +00271 return true; +00272 } +00273 } +00274 } +00275 return false; +00276 } +00277 else return true; +00278 } +00279 } +00280 return false; +00281 } +00282 +00283 +00284 void serverrec::FlushWriteBuffers() +00285 { +00286 for (int i = 0; i < this->connectors.size(); i++) +00287 { +00288 // don't try and ping a NOAUTH_OUTBOUND state, its not authed yet! +00289 if ((this->connectors[i].GetState() == STATE_NOAUTH_OUTBOUND) && (TIME > this->connectors[i].age+30)) +00290 { +00291 // however if we reach this timer its connected timed out :) +00292 WriteOpers("*** Connection to %s timed out",this->connectors[i].GetServerName().c_str()); +00293 DoSplit(this->connectors[i].GetServerName().c_str()); +00294 return; +00295 } +00296 else if ((this->connectors[i].GetState() == STATE_NOAUTH_INBOUND) && (TIME > this->connectors[i].age+30)) +00297 { +00298 WriteOpers("*** Connection from %s timed out",this->connectors[i].GetServerName().c_str()); +00299 DoSplit(this->connectors[i].GetServerName().c_str()); +00300 return; +00301 } +00302 else if (this->connectors[i].GetState() != STATE_DISCONNECTED) +00303 { +00304 if (!this->connectors[i].CheckPing()) +00305 { +00306 WriteOpers("*** Lost single connection to %s: Ping timeout",this->connectors[i].GetServerName().c_str()); +00307 this->connectors[i].CloseConnection(); +00308 this->connectors[i].SetState(STATE_DISCONNECTED); +00309 if (!IsRoutable(this->connectors[i].GetServerName())) +00310 { +00311 WriteOpers("*** Server %s is no longer routable, disconnecting.",this->connectors[i].GetServerName().c_str()); +00312 DoSplit(this->connectors[i].GetServerName().c_str()); 00313 } -00314 } -00315 char buffer[MAXBUF]; -00316 snprintf(buffer,MAXBUF,"& %s",sendhost); -00317 WriteOpers("*** All connections to %s lost.",sendhost); -00318 NetSendToAllExcept(sendhost,buffer); -00319 DoSplit(sendhost); -00320 return false; -00321 } -00322 -00323 // returns false if the packet could not be sent (e.g. target host down) -00324 if (!cn->AddWriteBuf(message)) -00325 { -00326 // if we're here, there was an error pending, and the send cannot proceed -00327 log(DEBUG,"cn->AddWriteBuf() failed for serverrec::SendPacket(): %s",cn->GetWriteError().c_str()); -00328 log(DEBUG,"Disabling connector: %s",cn->GetServerName().c_str()); -00329 cn->CloseConnection(); -00330 cn->SetState(STATE_DISCONNECTED); -00331 WriteOpers("*** Lost single connection to %s, link inactive and retrying: %s",cn->GetServerName().c_str(),cn->GetWriteError().c_str()); -00332 // retry the packet along a new route so either arrival OR failure are gauranteed (bugfix) -00333 return this->SendPacket(message,sendhost); -00334 } -00335 if (!cn->FlushWriteBuf()) -00336 { -00337 // if we're here the write() caused an error, we cannot proceed -00338 log(DEBUG,"cn->FlushWriteBuf() failed for serverrec::SendPacket(): %s",cn->GetWriteError().c_str()); -00339 log(DEBUG,"Disabling connector: %s",cn->GetServerName().c_str()); -00340 cn->CloseConnection(); -00341 cn->SetState(STATE_DISCONNECTED); -00342 WriteOpers("*** Lost single connection to %s, link inactive and retrying: %s",cn->GetServerName().c_str(),cn->GetWriteError().c_str()); -00343 // retry the packet along a new route so either arrival OR failure are gauranteed -00344 return this->SendPacket(message,sendhost); -00345 } -00346 return true; -00347 } -00348 } -00349 -00350 bool already_have_sum(std::string sum) -00351 { -00352 for (int i = 0; i < xsums.size(); i++) -00353 { -00354 if (xsums[i] == sum) -00355 { -00356 return true; -00357 } -00358 } -00359 if (xsums.size() >= 128) -00360 { -00361 xsums.pop_front(); -00362 } -00363 xsums.push_back(sum); -00364 return false; -00365 } -00366 -00367 // receives a packet from any where there is data waiting, first come, first served -00368 // fills the message and host values with the host where the data came from. -00369 -00370 bool serverrec::RecvPacket(std::deque<std::string> &messages, char* recvhost,std::deque<std::string> &sums) -00371 { -00372 char data[65536]; -00373 memset(data, 0, 65536); -00374 for (int i = 0; i < this->connectors.size(); i++) -00375 { -00376 if (this->connectors[i].GetState() != STATE_DISCONNECTED) -00377 { -00378 // returns false if the packet could not be sent (e.g. target host down) -00379 int rcvsize = 0; -00380 -00381 // check if theres any data on this socket -00382 // if not, continue onwards to the next. -00383 pollfd polls; -00384 polls.fd = this->connectors[i].GetDescriptor(); -00385 polls.events = POLLIN; -00386 int ret = poll(&polls,1,1); -00387 if (ret <= 0) continue; -00388 -00389 rcvsize = recv(this->connectors[i].GetDescriptor(),data,65000,0); -00390 data[rcvsize] = '\0'; -00391 if (rcvsize == -1) -00392 { -00393 if (errno != EAGAIN) -00394 { -00395 log(DEBUG,"recv() failed for serverrec::RecvPacket(): %s",strerror(errno)); -00396 log(DEBUG,"Disabling connector: %s",this->connectors[i].GetServerName().c_str()); -00397 this->connectors[i].CloseConnection(); -00398 this->connectors[i].SetState(STATE_DISCONNECTED); -00399 } -00400 } -00401 int pushed = 0; -00402 if (rcvsize > 0) -00403 { -00404 if (!this->connectors[i].AddBuffer(data)) -00405 { -00406 WriteOpers("*** Read buffer for %s exceeds maximum, closing connection!",this->connectors[i].GetServerName().c_str()); -00407 this->connectors[i].CloseConnection(); -00408 this->connectors[i].SetState(STATE_DISCONNECTED); -00409 } -00410 if (this->connectors[i].BufferIsComplete()) -00411 { -00412 this->connectors[i].ResetPing(); -00413 while (this->connectors[i].BufferIsComplete()) -00414 { -00415 std::string text = this->connectors[i].GetBuffer(); -00416 if (text != "") -00417 { -00418 if ((text[0] == ':') && (text.find(" ") != std::string::npos)) -00419 { -00420 std::string orig = text; -00421 log(DEBUG,"Original: %s",text.c_str()); -00422 std::string sum = text.substr(1,text.find(" ")-1); -00423 text = text.substr(text.find(" ")+1,text.length()); -00424 std::string possible_token = text.substr(1,text.find(" ")-1); -00425 if (possible_token.length() > 1) -00426 { -00427 sums.push_back("*"); -00428 text = orig; -00429 log(DEBUG,"Non-mesh, non-tokenized string passed up the chain"); -00430 } -00431 else -00432 { -00433 log(DEBUG,"Packet sum: '%s'",sum.c_str()); -00434 if ((already_have_sum(sum)) && (sum != "*")) -00435 { -00436 // we don't accept dupes -00437 continue; -00438 } -00439 sums.push_back(sum.c_str()); -00440 } -00441 } -00442 else sums.push_back("*"); -00443 messages.push_back(text.c_str()); -00444 strlcpy(recvhost,this->connectors[i].GetServerName().c_str(),160); -00445 log(DEBUG,"serverrec::RecvPacket() %d:%s->%s",pushed++,recvhost,text.c_str()); -00446 } -00447 } -00448 return true; -00449 } -00450 } -00451 } -00452 } -00453 // nothing new yet -- message and host will be undefined -00454 return false; -00455 } -00456 -
    Generated on Tue May 24 02:30:06 2005 for InspIRCd by +00314 has_been_netsplit = true; +00315 } +00316 } +00317 if (this->connectors[i].HasBufferedOutput()) +00318 { +00319 if (!this->connectors[i].FlushWriteBuf()) +00320 { +00321 // if we're here the write() caused an error, we cannot proceed +00322 WriteOpers("*** Lost single connection to %s, link inactive and retrying: %s",this->connectors[i].GetServerName().c_str(),this->connectors[i].GetWriteError().c_str()); +00323 this->connectors[i].CloseConnection(); +00324 this->connectors[i].SetState(STATE_DISCONNECTED); +00325 if (!IsRoutable(this->connectors[i].GetServerName())) +00326 { +00327 WriteOpers("*** Server %s is no longer routable, disconnecting.",this->connectors[i].GetServerName().c_str()); +00328 DoSplit(this->connectors[i].GetServerName().c_str()); +00329 } +00330 has_been_netsplit = true; +00331 } +00332 } +00333 } +00334 } +00335 +00336 bool serverrec::SendPacket(char *message, const char* sendhost) +00337 { +00338 if ((!message) || (!sendhost)) +00339 return true; +00340 +00341 ircd_connector* cn = this->FindHost(sendhost); +00342 +00343 if (!strchr(message,'\n')) +00344 { +00345 strlcat(message,"\n",MAXBUF); +00346 } +00347 +00348 if (cn) +00349 { +00350 log(DEBUG,"main: serverrec::SendPacket() sent '%s' to %s",message,cn->GetServerName().c_str()); +00351 +00352 if (cn->GetState() == STATE_DISCONNECTED) +00353 { +00354 // fix: can only route one hop to avoid a loop +00355 if (strncmp(message,"R ",2)) +00356 { +00357 log(DEBUG,"Not a double reroute"); +00358 // this route is down, we must re-route the packet through an available point in the mesh. +00359 for (int k = 0; k < this->connectors.size(); k++) +00360 { +00361 log(DEBUG,"Check connector %d: %s",k,this->connectors[k].GetServerName().c_str()); +00362 // search for another point in the mesh which can 'reach' where we want to go +00363 for (int m = 0; m < this->connectors[k].routes.size(); m++) +00364 { +00365 if (!strcasecmp(this->connectors[k].routes[m].c_str(),sendhost)) +00366 { +00367 log(DEBUG,"Found alternative route for packet: %s",this->connectors[k].GetServerName().c_str()); +00368 char buffer[MAXBUF]; +00369 snprintf(buffer,MAXBUF,"R %s %s",sendhost,message); +00370 this->SendPacket(buffer,this->connectors[k].GetServerName().c_str()); +00371 return true; +00372 } +00373 } +00374 } +00375 } +00376 char buffer[MAXBUF]; +00377 snprintf(buffer,MAXBUF,"& %s",sendhost); +00378 WriteOpers("*** All connections to %s lost.",sendhost); +00379 NetSendToAllExcept(sendhost,buffer); +00380 DoSplit(sendhost); +00381 return false; +00382 } +00383 +00384 // returns false if the packet could not be sent (e.g. target host down) +00385 if (!cn->AddWriteBuf(message)) +00386 { +00387 // if we're here, there was an error pending, and the send cannot proceed +00388 log(DEBUG,"cn->AddWriteBuf() failed for serverrec::SendPacket(): %s",cn->GetWriteError().c_str()); +00389 log(DEBUG,"Disabling connector: %s",cn->GetServerName().c_str()); +00390 cn->CloseConnection(); +00391 cn->SetState(STATE_DISCONNECTED); +00392 WriteOpers("*** Lost single connection to %s, link inactive and retrying: %s",cn->GetServerName().c_str(),cn->GetWriteError().c_str()); +00393 // retry the packet along a new route so either arrival OR failure are gauranteed (bugfix) +00394 return this->SendPacket(message,sendhost); +00395 } +00396 if (!cn->FlushWriteBuf()) +00397 { +00398 // if we're here the write() caused an error, we cannot proceed +00399 log(DEBUG,"cn->FlushWriteBuf() failed for serverrec::SendPacket(): %s",cn->GetWriteError().c_str()); +00400 log(DEBUG,"Disabling connector: %s",cn->GetServerName().c_str()); +00401 cn->CloseConnection(); +00402 cn->SetState(STATE_DISCONNECTED); +00403 WriteOpers("*** Lost single connection to %s, link inactive and retrying: %s",cn->GetServerName().c_str(),cn->GetWriteError().c_str()); +00404 // retry the packet along a new route so either arrival OR failure are gauranteed +00405 return this->SendPacket(message,sendhost); +00406 } +00407 return true; +00408 } +00409 } +00410 +00411 bool already_have_sum(std::string sum) +00412 { +00413 for (int i = 0; i < xsums.size(); i++) +00414 { +00415 if (xsums[i] == sum) +00416 { +00417 return true; +00418 } +00419 } +00420 if (xsums.size() >= 128) +00421 { +00422 xsums.pop_front(); +00423 } +00424 xsums.push_back(sum); +00425 return false; +00426 } +00427 +00428 // receives a packet from any where there is data waiting, first come, first served +00429 // fills the message and host values with the host where the data came from. +00430 +00431 bool serverrec::RecvPacket(std::deque<std::string> &messages, char* recvhost,std::deque<std::string> &sums) +00432 { +00433 char data[65536]; +00434 memset(data, 0, 65536); +00435 for (int i = 0; i < this->connectors.size(); i++) +00436 { +00437 if (this->connectors[i].GetState() != STATE_DISCONNECTED) +00438 { +00439 // returns false if the packet could not be sent (e.g. target host down) +00440 int rcvsize = 0; +00441 +00442 // check if theres any data on this socket +00443 // if not, continue onwards to the next. +00444 pollfd polls; +00445 polls.fd = this->connectors[i].GetDescriptor(); +00446 polls.events = POLLIN; +00447 int ret = poll(&polls,1,1); +00448 if (ret <= 0) continue; +00449 +00450 rcvsize = recv(this->connectors[i].GetDescriptor(),data,65000,0); +00451 data[rcvsize] = '\0'; +00452 if (rcvsize == -1) +00453 { +00454 if (errno != EAGAIN) +00455 { +00456 log(DEBUG,"recv() failed for serverrec::RecvPacket(): %s",strerror(errno)); +00457 log(DEBUG,"Disabling connector: %s",this->connectors[i].GetServerName().c_str()); +00458 this->connectors[i].CloseConnection(); +00459 this->connectors[i].SetState(STATE_DISCONNECTED); +00460 if (!IsRoutable(this->connectors[i].GetServerName())) +00461 { +00462 WriteOpers("*** Server %s is no longer routable, disconnecting.",this->connectors[i].GetServerName().c_str()); +00463 DoSplit(this->connectors[i].GetServerName().c_str()); +00464 } +00465 has_been_netsplit = true; +00466 } +00467 } +00468 int pushed = 0; +00469 if (rcvsize > 0) +00470 { +00471 if (!this->connectors[i].AddBuffer(data)) +00472 { +00473 WriteOpers("*** Read buffer for %s exceeds maximum, closing connection!",this->connectors[i].GetServerName().c_str()); +00474 this->connectors[i].CloseConnection(); +00475 this->connectors[i].SetState(STATE_DISCONNECTED); +00476 if (!IsRoutable(this->connectors[i].GetServerName())) +00477 { +00478 WriteOpers("*** Server %s is no longer routable, disconnecting.",this->connectors[i].GetServerName().c_str()); +00479 DoSplit(this->connectors[i].GetServerName().c_str()); +00480 } +00481 has_been_netsplit = true; +00482 } +00483 if (this->connectors[i].BufferIsComplete()) +00484 { +00485 this->connectors[i].ResetPing(); +00486 while (this->connectors[i].BufferIsComplete()) +00487 { +00488 std::string text = this->connectors[i].GetBuffer(); +00489 if (text != "") +00490 { +00491 if ((text[0] == ':') && (text.find(" ") != std::string::npos)) +00492 { +00493 std::string orig = text; +00494 log(DEBUG,"Original: %s",text.c_str()); +00495 std::string sum = text.substr(1,text.find(" ")-1); +00496 text = text.substr(text.find(" ")+1,text.length()); +00497 std::string possible_token = text.substr(1,text.find(" ")-1); +00498 if (possible_token.length() > 1) +00499 { +00500 sums.push_back("*"); +00501 text = orig; +00502 log(DEBUG,"Non-mesh, non-tokenized string passed up the chain"); +00503 } +00504 else +00505 { +00506 log(DEBUG,"Packet sum: '%s'",sum.c_str()); +00507 if ((already_have_sum(sum)) && (sum != "*")) +00508 { +00509 // we don't accept dupes +00510 continue; +00511 } +00512 sums.push_back(sum.c_str()); +00513 } +00514 } +00515 else sums.push_back("*"); +00516 messages.push_back(text.c_str()); +00517 strlcpy(recvhost,this->connectors[i].GetServerName().c_str(),160); +00518 log(DEBUG,"serverrec::RecvPacket() %d:%s->%s",pushed++,recvhost,text.c_str()); +00519 } +00520 } +00521 return true; +00522 } +00523 } +00524 } +00525 } +00526 // nothing new yet -- message and host will be undefined +00527 return false; +00528 } +00529 +
    Generated on Wed May 25 21:42:14 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index c1a2a0c12..18a72eb00 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -34,18 +34,24 @@ Include dependency graph for servers.cpp:

    Go to the source code of this file. - + + + - + + + + +

    Functions

    bool already_have_sum (std::string sum)
    bool IsRoutable (std::string servername)
    bool already_have_sum (std::string sum)

    Variables

    time_t TIME
    int MaxConn
    std::deque< std::string > xsums
    serverrecme [32]
    bool has_been_netsplit
    std::deque< std::string > xsums

    Function Documentation

    -

    +

    + +
    @@ -73,31 +79,119 @@ Include dependency graph for servers.cpp:

    350 of file servers.cpp. +Definition at line 411 of file servers.cpp.

    -References xsums. +References xsums.

    -Referenced by serverrec::RecvPacket(). +Referenced by serverrec::RecvPacket().

    -

    00351 {
    -00352         for (int i = 0; i < xsums.size(); i++)
    -00353         {
    -00354                 if (xsums[i] == sum)
    -00355                 {
    -00356                         return true;
    -00357                 }
    -00358         }
    -00359         if (xsums.size() >= 128)
    -00360         {
    -00361                 xsums.pop_front();
    -00362         }
    -00363         xsums.push_back(sum);
    -00364         return false;
    -00365 }
    +
    00412 {
    +00413         for (int i = 0; i < xsums.size(); i++)
    +00414         {
    +00415                 if (xsums[i] == sum)
    +00416                 {
    +00417                         return true;
    +00418                 }
    +00419         }
    +00420         if (xsums.size() >= 128)
    +00421         {
    +00422                 xsums.pop_front();
    +00423         }
    +00424         xsums.push_back(sum);
    +00425         return false;
    +00426 }
    +
    +

    + + + + +
    + + + + + + + + + + +
    bool IsRoutable std::string  servername  ) 
    +
    + + + +
    +   + + +

    + +

    +Definition at line 256 of file servers.cpp. +

    +References serverrec::connectors, serverrec::FindHost(), ircd_connector::GetState(), me, and STATE_DISCONNECTED. +

    +Referenced by serverrec::FlushWriteBuffers(), and serverrec::RecvPacket(). +

    +

    00257 {
    +00258         for (int x = 0; x < 32; x++) if (me[x])
    +00259         {
    +00260                 ircd_connector* cn = me[x]->FindHost(servername.c_str());
    +00261                 if (cn)
    +00262                 {
    +00263                         if (cn->GetState() == STATE_DISCONNECTED)
    +00264                         {
    +00265                                 for (int k = 0; k < me[x]->connectors.size(); k++)
    +00266                                 {
    +00267                                         for (int m = 0; m < me[x]->connectors[k].routes.size(); m++)
    +00268                                         {
    +00269                                                 if (!strcasecmp(me[x]->connectors[k].routes[m].c_str(),servername.c_str()))
    +00270                                                 {
    +00271                                                         return true;
    +00272                                                 }
    +00273                                         }
    +00274                                 }
    +00275                                 return false;
    +00276                         }
    +00277                         else return true;
    +00278                 }
    +00279         }
    +00280         return false;
    +00281 }
     


    Variable Documentation

    +

    + + + + +
    + + +
    bool has_been_netsplit +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 42 of file servers.cpp. +

    +Referenced by serverrec::FlushWriteBuffers(), and serverrec::RecvPacket().

    @@ -121,7 +215,31 @@ Referenced by serverrec::Re

    Definition at line 38 of file servers.cpp.

    -Referenced by serverrec::CreateListener(). +Referenced by serverrec::CreateListener(). +

    +
    +

    + + + + +
    + + +
    serverrec* me[32] +
    +
    + + + +
    +   + + +

    + +

    +Definition at line 40 of file servers.cpp.

    @@ -148,13 +266,13 @@ Referenced by serverrec::Cr Definition at line 37 of file servers.cpp. -

    +

    @@ -169,12 +287,12 @@ Definition at line 37 o

    -Definition at line 40 of file servers.cpp. +Definition at line 44 of file servers.cpp.

    -Referenced by already_have_sum(). +Referenced by already_have_sum().

    -
    std::deque<std::string> xsums + std::deque<std::string> xsums
    -


    Generated on Tue May 24 02:31:15 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:46 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8h-source.html b/docs/module-doc/servers_8h-source.html index 1055e7577..4a1b9c6d4 100644 --- a/docs/module-doc/servers_8h-source.html +++ b/docs/module-doc/servers_8h-source.html @@ -79,7 +79,7 @@ 00124 00125 #endif 00126 -
    Generated on Tue May 24 02:30:06 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:14 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8h.html b/docs/module-doc/servers_8h.html index 2056aaa3d..41117006b 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -86,7 +86,7 @@ Definition at line 25 of Definition at line 26 of file servers.h. -
    Generated on Tue May 24 02:31:17 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:47 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structdns__ip4list-members.html b/docs/module-doc/structdns__ip4list-members.html index fc7c2e98f..cc697ac07 100644 --- a/docs/module-doc/structdns__ip4list-members.html +++ b/docs/module-doc/structdns__ip4list-members.html @@ -8,7 +8,7 @@

    dns_ip4list Member List

    This is the complete list of members for dns_ip4list, including all inherited members. -
    ipdns_ip4list
    nextdns_ip4list

    Generated on Tue May 24 02:31:50 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:06 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structdns__ip4list.html b/docs/module-doc/structdns__ip4list.html index d3ab6ab3a..07ccf9a28 100644 --- a/docs/module-doc/structdns__ip4list.html +++ b/docs/module-doc/structdns__ip4list.html @@ -67,7 +67,7 @@ Definition at line 28 of file
    The documentation for this struct was generated from the following file: -
    Generated on Tue May 24 02:31:50 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:06 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structirc_1_1InAddr__HashComp-members.html b/docs/module-doc/structirc_1_1InAddr__HashComp-members.html index ea4697b0c..fd8e1806d 100644 --- a/docs/module-doc/structirc_1_1InAddr__HashComp-members.html +++ b/docs/module-doc/structirc_1_1InAddr__HashComp-members.html @@ -7,7 +7,7 @@

    irc::InAddr_HashComp Member List

    This is the complete list of members for irc::InAddr_HashComp, including all inherited members. -
    operator()(const in_addr &s1, const in_addr &s2) constirc::InAddr_HashComp

    Generated on Tue May 24 02:32:55 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:42 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structirc_1_1InAddr__HashComp.html b/docs/module-doc/structirc_1_1InAddr__HashComp.html index 46d637fe3..abbbc4973 100644 --- a/docs/module-doc/structirc_1_1InAddr__HashComp.html +++ b/docs/module-doc/structirc_1_1InAddr__HashComp.html @@ -67,7 +67,7 @@ The operator () does the actual comparison in hash_map.
    The documentation for this struct was generated from the following file: -
    Generated on Tue May 24 02:32:55 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:42 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structirc_1_1StrHashComp-members.html b/docs/module-doc/structirc_1_1StrHashComp-members.html index baa7a7655..c87ace488 100644 --- a/docs/module-doc/structirc_1_1StrHashComp-members.html +++ b/docs/module-doc/structirc_1_1StrHashComp-members.html @@ -7,7 +7,7 @@

    irc::StrHashComp Member List

    This is the complete list of members for irc::StrHashComp, including all inherited members. -
    operator()(const std::string &s1, const std::string &s2) constirc::StrHashComp

    Generated on Tue May 24 02:32:56 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structirc_1_1StrHashComp.html b/docs/module-doc/structirc_1_1StrHashComp.html index fd1a3ba63..31dc57b9b 100644 --- a/docs/module-doc/structirc_1_1StrHashComp.html +++ b/docs/module-doc/structirc_1_1StrHashComp.html @@ -67,7 +67,7 @@ The operator () does the actual comparison in hash_map.
    The documentation for this struct was generated from the following file: -
    Generated on Tue May 24 02:32:56 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structirc_1_1irc__char__traits-members.html b/docs/module-doc/structirc_1_1irc__char__traits-members.html index 74e9777ac..f2c2c7306 100644 --- a/docs/module-doc/structirc_1_1irc__char__traits-members.html +++ b/docs/module-doc/structirc_1_1irc__char__traits-members.html @@ -11,7 +11,7 @@ find(const char *s1, int n, char c)irc::irc_char_traits [static] lt(char c1st, char c2nd)irc::irc_char_traits [static] ne(char c1st, char c2nd)irc::irc_char_traits [static] -
    Generated on Tue May 24 02:32:56 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structirc_1_1irc__char__traits.html b/docs/module-doc/structirc_1_1irc__char__traits.html index 0170085fb..d2c6e3a97 100644 --- a/docs/module-doc/structirc_1_1irc__char__traits.html +++ b/docs/module-doc/structirc_1_1irc__char__traits.html @@ -259,7 +259,7 @@ Check if two chars do NOT match.
    The documentation for this struct was generated from the following file: -
    Generated on Tue May 24 02:32:56 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html index 773c94931..913cfe695 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html @@ -7,7 +7,7 @@

    nspace::hash< in_addr > Member List

    This is the complete list of members for nspace::hash< in_addr >, including all inherited members. -
    operator()(const struct in_addr &a) constnspace::hash< in_addr >

    Generated on Tue May 24 02:32:56 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html index b6b2af8d0..295a6d095 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html @@ -48,7 +48,7 @@
    The documentation for this struct was generated from the following file: -
    Generated on Tue May 24 02:32:56 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html index d4ae6660c..a7a369b3d 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html @@ -7,7 +7,7 @@

    nspace::hash< string > Member List

    This is the complete list of members for nspace::hash< string >, including all inherited members. -
    operator()(const string &s) constnspace::hash< string >

    Generated on Tue May 24 02:32:56 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html index 56e014d29..442cde551 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html @@ -48,7 +48,7 @@
    The documentation for this struct was generated from the following file: -
    Generated on Tue May 24 02:32:56 2005 for InspIRCd by +
    Generated on Wed May 25 21:43:43 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 2d74edf36..51c1a3e0d 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -300,7 +300,7 @@ 00293 { 00294 return this->WriteError; 00295 } -
    Generated on Tue May 24 02:30:07 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:14 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index bdb475f34..f61cd4aa5 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -78,7 +78,7 @@ Definition at line 27 of Definition at line 29 of file users.cpp. -
    Generated on Tue May 24 02:31:20 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:49 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 16bbb2ee4..cda334ba2 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -185,7 +185,7 @@ 00336 }; 00337 00338 #endif -
    Generated on Tue May 24 02:30:07 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:14 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 739cbb08d..13f7aeb5c 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -267,7 +267,7 @@ Definition at line 94 of fi Referenced by userrec::GetInviteList(). -
    Generated on Tue May 24 02:31:24 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:51 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/xline_8h-source.html b/docs/module-doc/xline_8h-source.html index fb8765c98..cb86c3dfd 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -123,7 +123,7 @@ 00157 void sync_xlines(serverrec* serv, char* tcp_host); 00158 00159 #endif -
    Generated on Tue May 24 02:30:07 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:14 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/xline_8h.html b/docs/module-doc/xline_8h.html index 5428c7969..e0f1b123e 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -1109,7 +1109,7 @@ Referenced by Server::DelZL -
    Generated on Tue May 24 02:31:26 2005 for InspIRCd by +
    Generated on Wed May 25 21:42:52 2005 for InspIRCd by doxygen 1.3.3
    -- cgit v1.2.3