From 097b2479d0393d8a8bada4a50708d7a2404045ca Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Dec 2005 13:32:15 +0000 Subject: Added new docs for class SocketEngine git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2339 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/man/man3/Admin.3 | 6 +- docs/man/man3/BanItem.3 | 2 +- docs/man/man3/BoolSet.3 | 2 +- docs/man/man3/ConfigReader.3 | 266 +-- docs/man/man3/ConnectClass.3 | 2 +- docs/man/man3/DNS.3 | 10 +- docs/man/man3/ELine.3 | 2 +- docs/man/man3/Event.3 | 40 +- docs/man/man3/ExemptItem.3 | 2 +- docs/man/man3/ExtMode.3 | 20 +- docs/man/man3/Extensible.3 | 2 +- docs/man/man3/FileReader.3 | 80 +- docs/man/man3/GLine.3 | 2 +- docs/man/man3/HostItem.3 | 2 +- docs/man/man3/InspSocket.3 | 438 ++--- 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 | 322 ++-- docs/man/man3/ModuleFactory.3 | 2 +- docs/man/man3/ModuleMessage.3 | 2 +- docs/man/man3/QLine.3 | 2 +- docs/man/man3/Request.3 | 52 +- docs/man/man3/Server.3 | 745 ++++---- docs/man/man3/SocketEngine.3 | 345 ++++ docs/man/man3/Version.3 | 6 +- docs/man/man3/WhoWasUser.3 | 2 +- docs/man/man3/XLine.3 | 2 +- docs/man/man3/ZLine.3 | 2 +- docs/man/man3/_home_.3 | 2 +- docs/man/man3/_home_brain_.3 | 2 +- docs/man/man3/_home_brain_inspircd-cvs_.3 | 2 +- docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 | 2 +- .../_home_brain_inspircd-cvs_inspircd_include_.3 | 5 +- .../man3/_home_brain_inspircd-cvs_inspircd_src_.3 | 5 +- docs/man/man3/base.h.3 | 2 +- docs/man/man3/channels.cpp.3 | 4 +- 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 | 2 +- docs/man/man3/connection.3 | 2 +- docs/man/man3/connection.h.3 | 2 +- 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/message.h.3 | 2 +- docs/man/man3/mode.h.3 | 2 +- docs/man/man3/modules.cpp.3 | 177 +- docs/man/man3/modules.h.3 | 4 +- docs/man/man3/nspace.3 | 2 +- docs/man/man3/nspace_hash_ in_addr _.3 | 2 +- docs/man/man3/nspace_hash_ string _.3 | 2 +- docs/man/man3/socket.cpp.3 | 9 +- docs/man/man3/socket.h.3 | 2 +- docs/man/man3/socketengine.cpp.3 | 38 + docs/man/man3/socketengine.h.3 | 92 + 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 | 3 +- docs/module-doc/base_8h-source.html | 2 +- docs/module-doc/base_8h.html | 2 +- docs/module-doc/channels_8cpp-source.html | 2 +- docs/module-doc/channels_8cpp.html | 12 +- 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 | 4 +- docs/module-doc/classBanItem-members.html | 2 +- docs/module-doc/classBanItem.html | 2 +- docs/module-doc/classBoolSet-members.html | 2 +- docs/module-doc/classBoolSet.html | 2 +- docs/module-doc/classConfigReader-members.html | 2 +- docs/module-doc/classConfigReader.html | 284 +-- docs/module-doc/classConnectClass-members.html | 2 +- docs/module-doc/classConnectClass.html | 2 +- docs/module-doc/classDNS-members.html | 3 +- docs/module-doc/classDNS.html | 35 +- 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 | 44 +- 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 | 18 +- docs/module-doc/classExtensible-members.html | 2 +- docs/module-doc/classExtensible.html | 2 +- docs/module-doc/classFileReader-members.html | 2 +- docs/module-doc/classFileReader.html | 80 +- 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/classInspSocket-members.html | 3 +- docs/module-doc/classInspSocket.html | 477 ++--- 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 | 168 +- 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 | 58 +- docs/module-doc/classServer-members.html | 2 +- docs/module-doc/classServer.html | 697 ++++---- docs/module-doc/classSocketEngine-members.html | 24 + docs/module-doc/classSocketEngine.html | 599 +++++++ docs/module-doc/classSocketEngine__coll__graph.gif | Bin 0 -> 2498 bytes docs/module-doc/classSocketEngine__coll__graph.map | 1 + docs/module-doc/classSocketEngine__coll__graph.md5 | 1 + docs/module-doc/classVersion-members.html | 2 +- docs/module-doc/classVersion.html | 4 +- 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 | 12 +- 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 | 6 +- docs/module-doc/classes.html | 28 +- docs/module-doc/classstd_1_1char__traits.html | 2 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 4 +- docs/module-doc/classuserrec-members.html | 2 +- docs/module-doc/classuserrec.html | 10 +- docs/module-doc/commands_8h-source.html | 2 +- docs/module-doc/commands_8h.html | 6 +- docs/module-doc/connection_8h-source.html | 2 +- docs/module-doc/connection_8h.html | 2 +- docs/module-doc/ctables_8h-source.html | 2 +- docs/module-doc/ctables_8h.html | 2 +- docs/module-doc/dir_000000.html | 2 +- docs/module-doc/dir_000001.html | 2 +- docs/module-doc/dir_000002.html | 2 +- docs/module-doc/dir_000003.html | 2 +- docs/module-doc/dir_000003_dep.gif | Bin 2121 -> 2131 bytes docs/module-doc/dir_000004.html | 4 +- docs/module-doc/dir_000005.html | 4 +- docs/module-doc/dir_000005_000004.html | 2 +- docs/module-doc/dir_000005_dep.gif | Bin 1347 -> 1350 bytes docs/module-doc/dirs.html | 2 +- docs/module-doc/dns_8h-source.html | 17 +- docs/module-doc/dns_8h.html | 2 +- docs/module-doc/files.html | 4 +- docs/module-doc/functions.html | 5 +- docs/module-doc/functions_0x62.html | 2 +- docs/module-doc/functions_0x63.html | 2 +- docs/module-doc/functions_0x64.html | 5 +- docs/module-doc/functions_0x65.html | 5 +- docs/module-doc/functions_0x66.html | 5 +- docs/module-doc/functions_0x67.html | 11 +- docs/module-doc/functions_0x68.html | 4 +- docs/module-doc/functions_0x69.html | 2 +- docs/module-doc/functions_0x6a.html | 2 +- docs/module-doc/functions_0x6b.html | 5 +- docs/module-doc/functions_0x6c.html | 2 +- docs/module-doc/functions_0x6d.html | 2 +- docs/module-doc/functions_0x6e.html | 2 +- docs/module-doc/functions_0x6f.html | 2 +- docs/module-doc/functions_0x70.html | 2 +- docs/module-doc/functions_0x71.html | 2 +- docs/module-doc/functions_0x72.html | 2 +- docs/module-doc/functions_0x73.html | 11 +- docs/module-doc/functions_0x74.html | 5 +- docs/module-doc/functions_0x75.html | 2 +- docs/module-doc/functions_0x76.html | 2 +- docs/module-doc/functions_0x77.html | 5 +- docs/module-doc/functions_0x7e.html | 5 +- docs/module-doc/functions_func.html | 5 +- docs/module-doc/functions_func_0x62.html | 2 +- docs/module-doc/functions_func_0x63.html | 2 +- docs/module-doc/functions_func_0x64.html | 5 +- docs/module-doc/functions_func_0x65.html | 2 +- docs/module-doc/functions_func_0x66.html | 2 +- docs/module-doc/functions_func_0x67.html | 11 +- docs/module-doc/functions_func_0x68.html | 4 +- docs/module-doc/functions_func_0x69.html | 2 +- docs/module-doc/functions_func_0x6a.html | 2 +- docs/module-doc/functions_func_0x6c.html | 2 +- docs/module-doc/functions_func_0x6d.html | 2 +- docs/module-doc/functions_func_0x6e.html | 2 +- docs/module-doc/functions_func_0x6f.html | 2 +- docs/module-doc/functions_func_0x70.html | 2 +- docs/module-doc/functions_func_0x71.html | 2 +- docs/module-doc/functions_func_0x72.html | 2 +- docs/module-doc/functions_func_0x73.html | 5 +- docs/module-doc/functions_func_0x75.html | 2 +- docs/module-doc/functions_func_0x76.html | 2 +- docs/module-doc/functions_func_0x77.html | 5 +- docs/module-doc/functions_func_0x7e.html | 5 +- docs/module-doc/functions_vars.html | 14 +- docs/module-doc/globals.html | 4 +- docs/module-doc/globals_0x62.html | 4 +- docs/module-doc/globals_0x63.html | 4 +- docs/module-doc/globals_0x64.html | 4 +- docs/module-doc/globals_0x65.html | 4 +- docs/module-doc/globals_0x66.html | 4 +- docs/module-doc/globals_0x67.html | 4 +- docs/module-doc/globals_0x68.html | 4 +- docs/module-doc/globals_0x69.html | 4 +- docs/module-doc/globals_0x6c.html | 4 +- docs/module-doc/globals_0x6d.html | 4 +- docs/module-doc/globals_0x6e.html | 4 +- docs/module-doc/globals_0x6f.html | 4 +- docs/module-doc/globals_0x70.html | 4 +- docs/module-doc/globals_0x71.html | 4 +- docs/module-doc/globals_0x72.html | 13 +- docs/module-doc/globals_0x73.html | 7 +- docs/module-doc/globals_0x74.html | 4 +- docs/module-doc/globals_0x75.html | 4 +- docs/module-doc/globals_0x76.html | 4 +- docs/module-doc/globals_0x77.html | 4 +- docs/module-doc/globals_0x78.html | 26 + docs/module-doc/globals_0x7a.html | 4 +- docs/module-doc/globals_defs.html | 2 +- docs/module-doc/globals_enum.html | 2 +- docs/module-doc/globals_eval.html | 2 +- docs/module-doc/globals_func.html | 2 +- docs/module-doc/globals_type.html | 2 +- docs/module-doc/globals_vars.html | 24 +- 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 | 3 +- docs/module-doc/inherit__graph__10.gif | Bin 508 -> 460 bytes docs/module-doc/inherit__graph__10.map | 2 +- docs/module-doc/inherit__graph__10.md5 | 2 +- docs/module-doc/inherit__graph__11.gif | Bin 0 -> 508 bytes docs/module-doc/inherit__graph__11.map | 2 + docs/module-doc/inherit__graph__11.md5 | 1 + docs/module-doc/inherits.html | 8 +- docs/module-doc/main.html | 2 +- docs/module-doc/message_8h-source.html | 2 +- docs/module-doc/message_8h.html | 14 +- docs/module-doc/mode_8h-source.html | 2 +- docs/module-doc/mode_8h.html | 4 +- docs/module-doc/modules_8cpp-source.html | 1873 ++++++++++---------- docs/module-doc/modules_8cpp.html | 227 +-- docs/module-doc/modules_8cpp__incl.gif | Bin 27645 -> 33715 bytes docs/module-doc/modules_8cpp__incl.map | 19 +- docs/module-doc/modules_8cpp__incl.md5 | 2 +- docs/module-doc/modules_8h-source.html | 2 +- docs/module-doc/modules_8h.html | 28 +- 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/socket_8cpp-source.html | 457 ++--- docs/module-doc/socket_8cpp.html | 31 +- docs/module-doc/socket_8cpp__incl.gif | Bin 12213 -> 13699 bytes docs/module-doc/socket_8cpp__incl.map | 3 +- docs/module-doc/socket_8cpp__incl.md5 | 2 +- docs/module-doc/socket_8h-source.html | 13 +- docs/module-doc/socket_8h.html | 2 +- docs/module-doc/socketengine_8cpp-source.html | 222 +++ docs/module-doc/socketengine_8cpp.html | 62 + docs/module-doc/socketengine_8cpp__incl.gif | Bin 0 -> 5594 bytes docs/module-doc/socketengine_8cpp__incl.map | 2 + docs/module-doc/socketengine_8cpp__incl.md5 | 1 + docs/module-doc/socketengine_8h-source.html | 89 + docs/module-doc/socketengine_8h.html | 218 +++ docs/module-doc/socketengine_8h__dep__incl.gif | Bin 0 -> 1762 bytes docs/module-doc/socketengine_8h__dep__incl.map | 4 + docs/module-doc/socketengine_8h__dep__incl.md5 | 1 + docs/module-doc/socketengine_8h__incl.gif | Bin 0 -> 4073 bytes docs/module-doc/socketengine_8h__incl.map | 1 + docs/module-doc/socketengine_8h__incl.md5 | 1 + 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 +- ...ctnspace_1_1hash_3_01in__addr_01_4-members.html | 2 +- .../structnspace_1_1hash_3_01in__addr_01_4.html | 2 +- ...ructnspace_1_1hash_3_01string_01_4-members.html | 2 +- .../structnspace_1_1hash_3_01string_01_4.html | 2 +- docs/module-doc/tree.html | 4 + 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 | 22 +- 318 files changed, 5569 insertions(+), 3665 deletions(-) create mode 100644 docs/man/man3/SocketEngine.3 create mode 100644 docs/man/man3/socketengine.cpp.3 create mode 100644 docs/man/man3/socketengine.h.3 create mode 100644 docs/module-doc/classSocketEngine-members.html create mode 100644 docs/module-doc/classSocketEngine.html create mode 100644 docs/module-doc/classSocketEngine__coll__graph.gif create mode 100644 docs/module-doc/classSocketEngine__coll__graph.map create mode 100644 docs/module-doc/classSocketEngine__coll__graph.md5 create mode 100644 docs/module-doc/globals_0x78.html create mode 100644 docs/module-doc/inherit__graph__11.gif create mode 100644 docs/module-doc/inherit__graph__11.map create mode 100644 docs/module-doc/inherit__graph__11.md5 create mode 100644 docs/module-doc/socketengine_8cpp-source.html create mode 100644 docs/module-doc/socketengine_8cpp.html create mode 100644 docs/module-doc/socketengine_8cpp__incl.gif create mode 100644 docs/module-doc/socketengine_8cpp__incl.map create mode 100644 docs/module-doc/socketengine_8cpp__incl.md5 create mode 100644 docs/module-doc/socketengine_8h-source.html create mode 100644 docs/module-doc/socketengine_8h.html create mode 100644 docs/module-doc/socketengine_8h__dep__incl.gif create mode 100644 docs/module-doc/socketengine_8h__dep__incl.map create mode 100644 docs/module-doc/socketengine_8h__dep__incl.md5 create mode 100644 docs/module-doc/socketengine_8h__incl.gif create mode 100644 docs/module-doc/socketengine_8h__incl.map create mode 100644 docs/module-doc/socketengine_8h__incl.md5 (limited to 'docs') diff --git a/docs/man/man3/Admin.3 b/docs/man/man3/Admin.3 index 907f3d788..f950ffbf8 100644 --- a/docs/man/man3/Admin.3 +++ b/docs/man/man3/Admin.3 @@ -1,4 +1,4 @@ -.TH "Admin" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Admin" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -43,10 +43,10 @@ Definition at line 125 of file modules.h. .PP .SS "Admin::Admin (\fBstd::string\fP name, \fBstd::string\fP email, \fBstd::string\fP nick)" .PP -Definition at line 250 of file modules.cpp. +Definition at line 244 of file modules.cpp. .PP .nf -250 : Name(name), Email(email), Nick(nick) { }; +244 : Name(name), Email(email), Nick(nick) { }; .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/BanItem.3 b/docs/man/man3/BanItem.3 index 4ae2aa8a1..cbd5e52e0 100644 --- a/docs/man/man3/BanItem.3 +++ b/docs/man/man3/BanItem.3 @@ -1,4 +1,4 @@ -.TH "BanItem" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "BanItem" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/BoolSet.3 b/docs/man/man3/BoolSet.3 index 127f01c99..78ecd755f 100644 --- a/docs/man/man3/BoolSet.3 +++ b/docs/man/man3/BoolSet.3 @@ -1,4 +1,4 @@ -.TH "BoolSet" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "BoolSet" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ConfigReader.3 b/docs/man/man3/ConfigReader.3 index 6edd9f6fa..bc4f7caa3 100644 --- a/docs/man/man3/ConfigReader.3 +++ b/docs/man/man3/ConfigReader.3 @@ -1,4 +1,4 @@ -.TH "ConfigReader" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ConfigReader" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -93,19 +93,19 @@ Default constructor. .PP This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure. .PP -Definition at line 834 of file modules.cpp. +Definition at line 807 of file modules.cpp. .PP References cache, CONF_FILE_NOT_FOUND, error, errorlog, include_stack, and readerror. .PP .nf -835 { -836 include_stack.clear(); -837 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -838 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -839 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -840 if (!this->readerror) -841 this->error = CONF_FILE_NOT_FOUND; -842 } +808 { +809 include_stack.clear(); +810 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +811 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +812 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +813 if (!this->readerror) +814 this->error = CONF_FILE_NOT_FOUND; +815 } .fi .PP .SS "ConfigReader::ConfigReader (\fBstd::string\fP filename)" @@ -114,18 +114,18 @@ Overloaded constructor. .PP This constructor initialises the ConfigReader class to read a user-specified config file .PP -Definition at line 854 of file modules.cpp. +Definition at line 827 of file modules.cpp. .PP References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. .PP .nf -855 { -856 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -857 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -858 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -859 if (!this->readerror) -860 this->error = CONF_FILE_NOT_FOUND; -861 }; +828 { +829 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +830 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +831 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +832 if (!this->readerror) +833 this->error = CONF_FILE_NOT_FOUND; +834 }; .fi .PP .SS "ConfigReader::~ConfigReader ()" @@ -134,17 +134,17 @@ Default destructor. .PP This method destroys the ConfigReader class. .PP -Definition at line 845 of file modules.cpp. +Definition at line 818 of file modules.cpp. .PP References cache, and errorlog. .PP .nf -846 { -847 if (this->cache) -848 delete this->cache; -849 if (this->errorlog) -850 delete this->errorlog; -851 } +819 { +820 if (this->cache) +821 delete this->cache; +822 if (this->errorlog) +823 delete this->errorlog; +824 } .fi .PP .SH "Member Function Documentation" @@ -155,41 +155,41 @@ Dumps the list of errors in a config file to an output location. .PP If bail is true, then the program will abort. If bail is false and user points to a valid user record, the error report will be spooled to the given user by means of NOTICE. if bool is false AND user is false, the error report will be spooled to all opers by means of a NOTICE to all opers. .PP -Definition at line 932 of file modules.cpp. +Definition at line 905 of file modules.cpp. .PP References errorlog, connection::fd, and userrec::nick. .PP .nf -933 { -934 if (bail) -935 { -936 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); -937 exit(0); -938 } -939 else -940 { -941 char dataline[1024]; -942 if (user) -943 { -944 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); -945 while (!errorlog->eof()) -946 { -947 errorlog->getline(dataline,1024); -948 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); -949 } -950 } -951 else -952 { -953 WriteOpers('There were errors in the configuration file:',user->nick); -954 while (!errorlog->eof()) -955 { -956 errorlog->getline(dataline,1024); -957 WriteOpers(dataline); -958 } -959 } -960 return; -961 } -962 } +906 { +907 if (bail) +908 { +909 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); +910 exit(0); +911 } +912 else +913 { +914 char dataline[1024]; +915 if (user) +916 { +917 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); +918 while (!errorlog->eof()) +919 { +920 errorlog->getline(dataline,1024); +921 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); +922 } +923 } +924 else +925 { +926 WriteOpers('There were errors in the configuration file:',user->nick); +927 while (!errorlog->eof()) +928 { +929 errorlog->getline(dataline,1024); +930 WriteOpers(dataline); +931 } +932 } +933 return; +934 } +935 } .fi .PP .SS "int ConfigReader::Enumerate (\fBstd::string\fP tag)" @@ -198,14 +198,14 @@ Counts the number of times a given tag appears in the config file. .PP This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of \fBConfigReader::ReadValue\fP to loop through all copies of a multiple instance tag. .PP -Definition at line 965 of file modules.cpp. +Definition at line 938 of file modules.cpp. .PP References cache. .PP .nf -966 { -967 return EnumConf(cache,tag.c_str()); -968 } +939 { +940 return EnumConf(cache,tag.c_str()); +941 } .fi .PP .SS "int ConfigReader::EnumerateValues (\fBstd::string\fP tag, int index)" @@ -214,14 +214,14 @@ Returns the number of items within a tag. .PP For example if the tag was then this function would return 2. Spaces and newlines both qualify as valid seperators between values. .PP -Definition at line 970 of file modules.cpp. +Definition at line 943 of file modules.cpp. .PP References cache. .PP .nf -971 { -972 return EnumValues(cache, tag.c_str(), index); -973 } +944 { +945 return EnumValues(cache, tag.c_str(), index); +946 } .fi .PP .SS "long ConfigReader::GetError ()" @@ -230,16 +230,16 @@ Returns the last error to occur. .PP Valid errors can be found by looking in \fBmodules.h\fP. Any nonzero value indicates an error condition. A call to \fBGetError()\fP resets the error flag back to 0. .PP -Definition at line 925 of file modules.cpp. +Definition at line 898 of file modules.cpp. .PP References error. .PP .nf -926 { -927 long olderr = this->error; -928 this->error = 0; -929 return olderr; -930 } +899 { +900 long olderr = this->error; +901 this->error = 0; +902 return olderr; +903 } .fi .PP .SS "bool ConfigReader::ReadFlag (\fBstd::string\fP tag, \fBstd::string\fP name, int index)" @@ -248,26 +248,26 @@ Retrieves a boolean value from the config file. .PP This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values '1', 'yes' and 'true' in the config file count as true to ReadFlag, and any other value counts as false. .PP -Definition at line 879 of file modules.cpp. +Definition at line 852 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, and error. .PP .nf -880 { -881 char val[MAXBUF]; -882 char t[MAXBUF]; -883 char n[MAXBUF]; -884 strlcpy(t,tag.c_str(),MAXBUF); -885 strlcpy(n,name.c_str(),MAXBUF); -886 int res = ReadConf(cache,t,n,index,val); -887 if (!res) -888 { -889 this->error = CONF_VALUE_NOT_FOUND; -890 return false; -891 } -892 std::string s = val; -893 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); -894 } +853 { +854 char val[MAXBUF]; +855 char t[MAXBUF]; +856 char n[MAXBUF]; +857 strlcpy(t,tag.c_str(),MAXBUF); +858 strlcpy(n,name.c_str(),MAXBUF); +859 int res = ReadConf(cache,t,n,index,val); +860 if (!res) +861 { +862 this->error = CONF_VALUE_NOT_FOUND; +863 return false; +864 } +865 std::string s = val; +866 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); +867 } .fi .PP .SS "long ConfigReader::ReadInteger (\fBstd::string\fP tag, \fBstd::string\fP name, int index, bool needs_unsigned)" @@ -276,38 +276,38 @@ Retrieves an integer value from the config file. .PP This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to \fBGetError()\fP will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and \fBGetError()\fP will return CONF_NOT_UNSIGNED .PP -Definition at line 896 of file modules.cpp. +Definition at line 869 of file modules.cpp. .PP References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error. .PP .nf -897 { -898 char val[MAXBUF]; -899 char t[MAXBUF]; -900 char n[MAXBUF]; -901 strlcpy(t,tag.c_str(),MAXBUF); -902 strlcpy(n,name.c_str(),MAXBUF); -903 int res = ReadConf(cache,t,n,index,val); -904 if (!res) -905 { -906 this->error = CONF_VALUE_NOT_FOUND; -907 return 0; -908 } -909 for (unsigned int i = 0; i < strlen(val); i++) -910 { -911 if (!isdigit(val[i])) -912 { -913 this->error = CONF_NOT_A_NUMBER; -914 return 0; -915 } -916 } -917 if ((needs_unsigned) && (atoi(val)<0)) -918 { -919 this->error = CONF_NOT_UNSIGNED; -920 return 0; -921 } -922 return atoi(val); -923 } +870 { +871 char val[MAXBUF]; +872 char t[MAXBUF]; +873 char n[MAXBUF]; +874 strlcpy(t,tag.c_str(),MAXBUF); +875 strlcpy(n,name.c_str(),MAXBUF); +876 int res = ReadConf(cache,t,n,index,val); +877 if (!res) +878 { +879 this->error = CONF_VALUE_NOT_FOUND; +880 return 0; +881 } +882 for (unsigned int i = 0; i < strlen(val); i++) +883 { +884 if (!isdigit(val[i])) +885 { +886 this->error = CONF_NOT_A_NUMBER; +887 return 0; +888 } +889 } +890 if ((needs_unsigned) && (atoi(val)<0)) +891 { +892 this->error = CONF_NOT_UNSIGNED; +893 return 0; +894 } +895 return atoi(val); +896 } .fi .PP .SS "\fBstd::string\fP ConfigReader::ReadValue (\fBstd::string\fP tag, \fBstd::string\fP name, int index)" @@ -316,25 +316,25 @@ Retrieves a value from the config file. .PP This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. .PP -Definition at line 863 of file modules.cpp. +Definition at line 836 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, and error. .PP .nf -864 { -865 char val[MAXBUF]; -866 char t[MAXBUF]; -867 char n[MAXBUF]; -868 strlcpy(t,tag.c_str(),MAXBUF); -869 strlcpy(n,name.c_str(),MAXBUF); -870 int res = ReadConf(cache,t,n,index,val); -871 if (!res) -872 { -873 this->error = CONF_VALUE_NOT_FOUND; -874 return ''; -875 } -876 return val; -877 } +837 { +838 char val[MAXBUF]; +839 char t[MAXBUF]; +840 char n[MAXBUF]; +841 strlcpy(t,tag.c_str(),MAXBUF); +842 strlcpy(n,name.c_str(),MAXBUF); +843 int res = ReadConf(cache,t,n,index,val); +844 if (!res) +845 { +846 this->error = CONF_VALUE_NOT_FOUND; +847 return ''; +848 } +849 return val; +850 } .fi .PP .SS "bool ConfigReader::Verify ()" @@ -343,14 +343,14 @@ Returns true if a config file is valid. .PP This method is partially implemented and will only return false if the config file does not exist or could not be opened. .PP -Definition at line 975 of file modules.cpp. +Definition at line 948 of file modules.cpp. .PP References readerror. .PP .nf -976 { -977 return this->readerror; -978 } +949 { +950 return this->readerror; +951 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/ConnectClass.3 b/docs/man/man3/ConnectClass.3 index 0d8ce0778..ae23d9973 100644 --- a/docs/man/man3/ConnectClass.3 +++ b/docs/man/man3/ConnectClass.3 @@ -1,4 +1,4 @@ -.TH "ConnectClass" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ConnectClass" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/DNS.3 b/docs/man/man3/DNS.3 index 95597b880..d88cb6f54 100644 --- a/docs/man/man3/DNS.3 +++ b/docs/man/man3/DNS.3 @@ -1,4 +1,4 @@ -.TH "DNS" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "DNS" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -38,6 +38,10 @@ DNS \- The DNS class allows fast nonblocking resolution of hostnames and ip addr .br .RI "\fIThis method will return true when the lookup is completed. \fP" .ti -1c +.RI "bool \fBHasResult\fP (int fd)" +.br +.RI "\fIThis method will return true if the lookup's fd matches the one provided. \fP" +.ti -1c .RI "\fBstd::string\fP \fBGetResult\fP ()" .br .RI "\fIThis method returns the result of your query as a string, depending upon wether you called \fBDNS::ReverseLookup()\fP or \fBDNS::ForwardLookup\fP. \fP" @@ -186,6 +190,10 @@ This method returns the result of your query as a string, depending upon wether .PP .SS "\fBstd::string\fP DNS::GetResultIP ()" .PP +.SS "bool DNS::HasResult (int fd)" +.PP +This method will return true if the lookup's fd matches the one provided. +.PP .SS "bool DNS::HasResult ()" .PP This method will return true when the lookup is completed. diff --git a/docs/man/man3/ELine.3 b/docs/man/man3/ELine.3 index 1b3b6c7a4..7152c62e3 100644 --- a/docs/man/man3/ELine.3 +++ b/docs/man/man3/ELine.3 @@ -1,4 +1,4 @@ -.TH "ELine" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ELine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Event.3 b/docs/man/man3/Event.3 index 0105be0ae..45e6444b8 100644 --- a/docs/man/man3/Event.3 +++ b/docs/man/man3/Event.3 @@ -1,4 +1,4 @@ -.TH "Event" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Event" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -65,10 +65,10 @@ Definition at line 197 of file modules.h. .PP Create a new Event. .PP -Definition at line 281 of file modules.cpp. +Definition at line 275 of file modules.cpp. .PP .nf -281 : data(anydata), source(src), id(eventid) { }; +275 : data(anydata), source(src), id(eventid) { }; .fi .PP .SH "Member Function Documentation" @@ -77,14 +77,14 @@ Definition at line 281 of file modules.cpp. .PP Get the Event data. .PP -Definition at line 283 of file modules.cpp. +Definition at line 277 of file modules.cpp. .PP References data. .PP .nf -284 { -285 return this->data; -286 } +278 { +279 return this->data; +280 } .fi .PP .SS "\fBstd::string\fP Event::GetEventID ()" @@ -93,28 +93,28 @@ Get the event ID. .PP Use this to determine the event type for safe casting of the data .PP -Definition at line 299 of file modules.cpp. +Definition at line 293 of file modules.cpp. .PP References id. .PP .nf -300 { -301 return this->id; -302 } +294 { +295 return this->id; +296 } .fi .PP .SS "\fBModule\fP * Event::GetSource ()" .PP Get the event Source. .PP -Definition at line 288 of file modules.cpp. +Definition at line 282 of file modules.cpp. .PP References source. .PP .nf -289 { -290 return this->source; -291 } +283 { +284 return this->source; +285 } .fi .PP .SS "char * Event::Send ()\fC [virtual]\fP" @@ -125,15 +125,15 @@ The return result of an \fBEvent::Send()\fP will always be NULL as no replies ar .PP Implements \fBModuleMessage\fP. .PP -Definition at line 293 of file modules.cpp. +Definition at line 287 of file modules.cpp. .PP References FOREACH_MOD. .PP .nf -294 { -295 FOREACH_MOD OnEvent(this); -296 return NULL; -297 } +288 { +289 FOREACH_MOD OnEvent(this); +290 return NULL; +291 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/ExemptItem.3 b/docs/man/man3/ExemptItem.3 index 17e67bdcf..75486b5a5 100644 --- a/docs/man/man3/ExemptItem.3 +++ b/docs/man/man3/ExemptItem.3 @@ -1,4 +1,4 @@ -.TH "ExemptItem" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ExemptItem" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ExtMode.3 b/docs/man/man3/ExtMode.3 index e63ace10d..367d3557d 100644 --- a/docs/man/man3/ExtMode.3 +++ b/docs/man/man3/ExtMode.3 @@ -1,4 +1,4 @@ -.TH "ExtMode" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ExtMode" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -39,37 +39,37 @@ Inherits \fBclassbase\fP. .in -1c .SH "Detailed Description" .PP -Definition at line 139 of file modules.cpp. +Definition at line 133 of file modules.cpp. .SH "Constructor & Destructor Documentation" .PP .SS "ExtMode::ExtMode (char mc, int ty, bool oper, int p_on, int p_off)\fC [inline]\fP" .PP -Definition at line 148 of file modules.cpp. +Definition at line 142 of file modules.cpp. .PP .nf -148 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; +142 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; .fi .PP .SH "Member Data Documentation" .PP .SS "bool \fBExtMode::list\fP" .PP -Definition at line 147 of file modules.cpp. +Definition at line 141 of file modules.cpp. .SS "char \fBExtMode::modechar\fP" .PP -Definition at line 142 of file modules.cpp. +Definition at line 136 of file modules.cpp. .SS "bool \fBExtMode::needsoper\fP" .PP -Definition at line 144 of file modules.cpp. +Definition at line 138 of file modules.cpp. .SS "int \fBExtMode::params_when_off\fP" .PP -Definition at line 146 of file modules.cpp. +Definition at line 140 of file modules.cpp. .SS "int \fBExtMode::params_when_on\fP" .PP -Definition at line 145 of file modules.cpp. +Definition at line 139 of file modules.cpp. .SS "int \fBExtMode::type\fP" .PP -Definition at line 143 of file modules.cpp. +Definition at line 137 of file modules.cpp. .SH "Author" .PP diff --git a/docs/man/man3/Extensible.3 b/docs/man/man3/Extensible.3 index 6c291ce75..4cdb11d5d 100644 --- a/docs/man/man3/Extensible.3 +++ b/docs/man/man3/Extensible.3 @@ -1,4 +1,4 @@ -.TH "Extensible" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Extensible" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/FileReader.3 b/docs/man/man3/FileReader.3 index 09067f8f8..bf779fb9e 100644 --- a/docs/man/man3/FileReader.3 +++ b/docs/man/man3/FileReader.3 @@ -1,4 +1,4 @@ -.TH "FileReader" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "FileReader" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -66,11 +66,11 @@ Default constructor. .PP This method does not load any file into memory, you must use the LoadFile method after constructing the class this way. .PP -Definition at line 988 of file modules.cpp. +Definition at line 961 of file modules.cpp. .PP .nf -989 { -990 } +962 { +963 } .fi .PP .SS "FileReader::FileReader (\fBstd::string\fP filename)" @@ -79,16 +79,16 @@ Secondary constructor. .PP This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, \fBFileReader::FileSize\fP returns 0. .PP -Definition at line 981 of file modules.cpp. +Definition at line 954 of file modules.cpp. .PP References fc. .PP .nf -982 { -983 file_cache c; -984 readfile(c,filename.c_str()); -985 this->fc = c; -986 } +955 { +956 file_cache c; +957 readfile(c,filename.c_str()); +958 this->fc = c; +959 } .fi .PP .SS "FileReader::~FileReader ()" @@ -97,11 +97,11 @@ Default destructor. .PP This deletes the memory allocated to the file. .PP -Definition at line 1000 of file modules.cpp. +Definition at line 973 of file modules.cpp. .PP .nf -1001 { -1002 } +974 { +975 } .fi .PP .SH "Member Function Documentation" @@ -110,21 +110,21 @@ Definition at line 1000 of file modules.cpp. .PP Returns true if the file exists This function will return false if the file could not be opened. .PP -Definition at line 1004 of file modules.cpp. +Definition at line 977 of file modules.cpp. .PP References fc. .PP .nf -1005 { -1006 if (fc.size() == 0) -1007 { -1008 return(false); -1009 } -1010 else -1011 { -1012 return(true); -1013 } -1014 } +978 { +979 if (fc.size() == 0) +980 { +981 return(false); +982 } +983 else +984 { +985 return(true); +986 } +987 } .fi .PP .SS "int FileReader::FileSize ()" @@ -133,14 +133,14 @@ Returns the size of the file in lines. .PP This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems. .PP -Definition at line 1023 of file modules.cpp. +Definition at line 996 of file modules.cpp. .PP References fc. .PP .nf -1024 { -1025 return fc.size(); -1026 } +997 { +998 return fc.size(); +999 } .fi .PP .SS "\fBstd::string\fP FileReader::GetLine (int x)" @@ -149,16 +149,16 @@ Retrieve one line from the file. .PP This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it. .PP -Definition at line 1016 of file modules.cpp. +Definition at line 989 of file modules.cpp. .PP References fc. .PP .nf -1017 { -1018 if ((x<0) || ((unsigned)x>fc.size())) -1019 return ''; -1020 return fc[x]; -1021 } +990 { +991 if ((x<0) || ((unsigned)x>fc.size())) +992 return ''; +993 return fc[x]; +994 } .fi .PP .SS "void FileReader::LoadFile (\fBstd::string\fP filename)" @@ -167,16 +167,16 @@ Used to load a file. .PP This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, \fBFileReader::FileSize\fP returns 0. .PP -Definition at line 992 of file modules.cpp. +Definition at line 965 of file modules.cpp. .PP References fc. .PP .nf -993 { -994 file_cache c; -995 readfile(c,filename.c_str()); -996 this->fc = c; -997 } +966 { +967 file_cache c; +968 readfile(c,filename.c_str()); +969 this->fc = c; +970 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/GLine.3 b/docs/man/man3/GLine.3 index a4dae91d5..039de05ee 100644 --- a/docs/man/man3/GLine.3 +++ b/docs/man/man3/GLine.3 @@ -1,4 +1,4 @@ -.TH "GLine" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "GLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/HostItem.3 b/docs/man/man3/HostItem.3 index 873025613..9adfeb7d4 100644 --- a/docs/man/man3/HostItem.3 +++ b/docs/man/man3/HostItem.3 @@ -1,4 +1,4 @@ -.TH "HostItem" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "HostItem" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/InspSocket.3 b/docs/man/man3/InspSocket.3 index 1dc773958..9e08b1d3c 100644 --- a/docs/man/man3/InspSocket.3 +++ b/docs/man/man3/InspSocket.3 @@ -1,4 +1,4 @@ -.TH "InspSocket" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "InspSocket" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -60,6 +60,9 @@ InspSocket \- .RI "bool \fBPoll\fP ()" .br .ti -1c +.RI "int \fBGetFd\fP ()" +.br +.ti -1c .RI "virtual void \fBClose\fP ()" .br .ti -1c @@ -119,352 +122,367 @@ Definition at line 30 of file socket.h. .PP .SS "InspSocket::InspSocket ()" .PP -Definition at line 46 of file socket.cpp. +Definition at line 49 of file socket.cpp. .PP References I_DISCONNECTED, and state. .PP .nf -47 { -48 this->state = I_DISCONNECTED; -49 } +50 { +51 this->state = I_DISCONNECTED; +52 } .fi .PP .SS "InspSocket::InspSocket (int newfd, char * ip)" .PP -Definition at line 51 of file socket.cpp. +Definition at line 54 of file socket.cpp. .PP -References fd, I_CONNECTED, IP, and state. +References SocketEngine::AddFd(), fd, I_CONNECTED, IP, state, and X_ESTAB_MODULE. .PP .nf -52 { -53 this->fd = newfd; -54 this->state = I_CONNECTED; -55 this->IP = ip; -56 } +55 { +56 this->fd = newfd; +57 this->state = I_CONNECTED; +58 this->IP = ip; +59 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +60 } .fi .PP .SS "InspSocket::InspSocket (\fBstd::string\fP host, int port, bool listening, unsigned long maxtime)" .PP -Definition at line 58 of file socket.cpp. +Definition at line 62 of file socket.cpp. .PP -References addr, addy, Close(), DEBUG, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, IP, OnError(), state, timeout, and timeout_end. +References SocketEngine::AddFd(), addr, addy, Close(), DEBUG, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, IP, OnError(), state, timeout, timeout_end, and X_ESTAB_MODULE. .PP .nf -59 { -60 if (listening) { -61 if ((this->fd = OpenTCPSocket()) == ERROR) -62 { -63 this->fd = -1; -64 this->state = I_ERROR; -65 this->OnError(I_ERR_SOCKET); -66 log(DEBUG,'OpenTCPSocket() error'); -67 return; -68 } -69 else -70 { -71 if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR) -72 { -73 this->Close(); -74 this->fd = -1; -75 this->state = I_ERROR; -76 this->OnError(I_ERR_BIND); -77 log(DEBUG,'BindSocket() error %s',strerror(errno)); -78 return; -79 } -80 else -81 { -82 this->state = I_LISTENING; -83 log(DEBUG,'New socket now in I_LISTENING state'); -84 return; -85 } -86 } -87 } else { -88 char* ip; -89 this->host = host; -90 hostent* hoste = gethostbyname(host.c_str()); -91 if (!hoste) { -92 ip = (char*)host.c_str(); -93 } else { -94 struct in_addr* ia = (in_addr*)hoste->h_addr; -95 ip = inet_ntoa(*ia); -96 } -97 -98 this->IP = ip; -99 -100 timeout_end = time(NULL)+maxtime; -101 timeout = false; -102 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) -103 { -104 this->state = I_ERROR; -105 this->OnError(I_ERR_SOCKET); -106 return; -107 } -108 this->port = port; -109 inet_aton(ip,&addy); -110 addr.sin_family = AF_INET; -111 addr.sin_addr = addy; -112 addr.sin_port = htons(this->port); -113 -114 int flags; -115 flags = fcntl(this->fd, F_GETFL, 0); -116 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); -117 -118 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1) -119 { -120 if (errno != EINPROGRESS) -121 { -122 this->Close(); -123 this->OnError(I_ERR_CONNECT); -124 this->state = I_ERROR; -125 return; -126 } -127 } -128 this->state = I_CONNECTING; -129 return; -130 } -131 } +63 { +64 if (listening) { +65 if ((this->fd = OpenTCPSocket()) == ERROR) +66 { +67 this->fd = -1; +68 this->state = I_ERROR; +69 this->OnError(I_ERR_SOCKET); +70 log(DEBUG,'OpenTCPSocket() error'); +71 return; +72 } +73 else +74 { +75 if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR) +76 { +77 this->Close(); +78 this->fd = -1; +79 this->state = I_ERROR; +80 this->OnError(I_ERR_BIND); +81 log(DEBUG,'BindSocket() error %s',strerror(errno)); +82 return; +83 } +84 else +85 { +86 this->state = I_LISTENING; +87 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +88 log(DEBUG,'New socket now in I_LISTENING state'); +89 return; +90 } +91 } +92 } else { +93 char* ip; +94 this->host = host; +95 hostent* hoste = gethostbyname(host.c_str()); +96 if (!hoste) { +97 ip = (char*)host.c_str(); +98 } else { +99 struct in_addr* ia = (in_addr*)hoste->h_addr; +100 ip = inet_ntoa(*ia); +101 } +102 +103 this->IP = ip; +104 +105 timeout_end = time(NULL)+maxtime; +106 timeout = false; +107 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) +108 { +109 this->state = I_ERROR; +110 this->OnError(I_ERR_SOCKET); +111 return; +112 } +113 this->port = port; +114 inet_aton(ip,&addy); +115 addr.sin_family = AF_INET; +116 addr.sin_addr = addy; +117 addr.sin_port = htons(this->port); +118 +119 int flags; +120 flags = fcntl(this->fd, F_GETFL, 0); +121 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); +122 +123 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1) +124 { +125 if (errno != EINPROGRESS) +126 { +127 this->Close(); +128 this->OnError(I_ERR_CONNECT); +129 this->state = I_ERROR; +130 return; +131 } +132 } +133 this->state = I_CONNECTING; +134 SE->AddFd(this->fd,false,X_ESTAB_MODULE); +135 return; +136 } +137 } .fi .PP .SS "InspSocket::~InspSocket ()\fC [virtual]\fP" .PP -Definition at line 254 of file socket.cpp. +Definition at line 265 of file socket.cpp. .PP References Close(). .PP .nf -255 { -256 this->Close(); -257 } +266 { +267 this->Close(); +268 } .fi .PP .SH "Member Function Documentation" .PP .SS "void InspSocket::Close ()\fC [virtual]\fP" .PP -Definition at line 133 of file socket.cpp. +Definition at line 139 of file socket.cpp. .PP References fd, and OnClose(). .PP Referenced by InspSocket(), and ~InspSocket(). .PP .nf -134 { -135 if (this->fd != -1) -136 { -137 this->OnClose(); -138 shutdown(this->fd,2); -139 close(this->fd); -140 this->fd = -1; -141 } -142 } +140 { +141 if (this->fd != -1) +142 { +143 this->OnClose(); +144 shutdown(this->fd,2); +145 close(this->fd); +146 this->fd = -1; +147 } +148 } +.fi +.PP +.SS "int InspSocket::GetFd ()" +.PP +Definition at line 252 of file socket.cpp. +.PP +References fd. +.PP +.nf +253 { +254 return this->fd; +255 } .fi .PP .SS "\fBstd::string\fP InspSocket::GetIP ()" .PP -Definition at line 144 of file socket.cpp. +Definition at line 150 of file socket.cpp. .PP References IP. .PP .nf -145 { -146 return this->IP; -147 } +151 { +152 return this->IP; +153 } .fi .PP .SS "\fBInspSocketState\fP InspSocket::GetState ()" .PP -Definition at line 241 of file socket.cpp. +Definition at line 247 of file socket.cpp. .PP References state. .PP .nf -242 { -243 return this->state; -244 } +248 { +249 return this->state; +250 } .fi .PP .SS "void InspSocket::OnClose ()\fC [virtual]\fP" .PP -Definition at line 252 of file socket.cpp. +Definition at line 263 of file socket.cpp. .PP Referenced by Close(). .PP .nf -252 { return; } +263 { return; } .fi .PP .SS "bool InspSocket::OnConnected ()\fC [virtual]\fP" .PP -Definition at line 246 of file socket.cpp. +Definition at line 257 of file socket.cpp. .PP Referenced by Poll(). .PP .nf -246 { return true; } +257 { return true; } .fi .PP .SS "bool InspSocket::OnDataReady ()\fC [virtual]\fP" .PP -Definition at line 250 of file socket.cpp. +Definition at line 261 of file socket.cpp. .PP Referenced by Poll(). .PP .nf -250 { return true; } +261 { return true; } .fi .PP .SS "int InspSocket::OnDisconnect ()\fC [virtual]\fP" .PP -Definition at line 248 of file socket.cpp. +Definition at line 259 of file socket.cpp. .PP .nf -248 { return 0; } +259 { return 0; } .fi .PP .SS "void InspSocket::OnError (\fBInspSocketError\fP e)\fC [virtual]\fP" .PP -Definition at line 247 of file socket.cpp. +Definition at line 258 of file socket.cpp. .PP Referenced by InspSocket(), and Poll(). .PP .nf -247 { return; } +258 { return; } .fi .PP .SS "int InspSocket::OnIncomingConnection (int newfd, char * ip)\fC [virtual]\fP" .PP -Definition at line 249 of file socket.cpp. +Definition at line 260 of file socket.cpp. .PP Referenced by Poll(). .PP .nf -249 { return 0; } +260 { return 0; } .fi .PP .SS "void InspSocket::OnTimeout ()\fC [virtual]\fP" .PP -Definition at line 251 of file socket.cpp. +Definition at line 262 of file socket.cpp. .PP Referenced by Poll(). .PP .nf -251 { return; } +262 { return; } .fi .PP .SS "bool InspSocket::Poll ()" .PP -Definition at line 191 of file socket.cpp. +Definition at line 197 of file socket.cpp. .PP -References client, fd, I_CONNECTED, I_CONNECTING, I_ERR_TIMEOUT, I_ERROR, I_LISTENING, length, OnConnected(), OnDataReady(), OnError(), OnIncomingConnection(), OnTimeout(), polls, SetState(), state, timeout, and timeout_end. +References SocketEngine::AddFd(), client, SocketEngine::DelFd(), I_CONNECTED, I_CONNECTING, I_ERR_TIMEOUT, I_ERROR, I_LISTENING, length, OnConnected(), OnDataReady(), OnError(), OnIncomingConnection(), OnTimeout(), SetState(), state, timeout, timeout_end, and X_ESTAB_MODULE. .PP .nf -192 { -193 if ((time(NULL) > timeout_end) && (this->state == I_CONNECTING)) -194 { -195 // for non-listening sockets, the timeout can occur -196 // which causes termination of the connection after -197 // the given number of seconds without a successful -198 // connection. -199 this->OnTimeout(); -200 this->OnError(I_ERR_TIMEOUT); -201 timeout = true; -202 this->state = I_ERROR; -203 return false; -204 } -205 polls.fd = this->fd; -206 state == I_CONNECTING ? polls.events = POLLOUT : polls.events = POLLIN; -207 int ret = poll(&polls,1,1); -208 -209 if (ret > 0) -210 { -211 int incoming = -1; -212 -213 switch (this->state) -214 { -215 case I_CONNECTING: -216 this->SetState(I_CONNECTED); -217 return this->OnConnected(); -218 break; -219 case I_LISTENING: -220 length = sizeof (client); -221 incoming = accept (this->fd, (sockaddr*)&client,&length); -222 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr)); -223 return true; -224 break; -225 case I_CONNECTED: -226 return this->OnDataReady(); -227 break; -228 default: -229 break; -230 } -231 } -232 return true; -233 } +198 { +199 if ((time(NULL) > timeout_end) && (this->state == I_CONNECTING)) +200 { +201 // for non-listening sockets, the timeout can occur +202 // which causes termination of the connection after +203 // the given number of seconds without a successful +204 // connection. +205 this->OnTimeout(); +206 this->OnError(I_ERR_TIMEOUT); +207 timeout = true; +208 this->state = I_ERROR; +209 return false; +210 } +211 +212 int incoming = -1; +213 +214 switch (this->state) +215 { +216 case I_CONNECTING: +217 this->SetState(I_CONNECTED); +218 /* Our socket was in write-state, so delete it and re-add it +219 * in read-state. +220 */ +221 SE->DelFd(this->fd); +222 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +223 return this->OnConnected(); +224 break; +225 case I_LISTENING: +226 length = sizeof (client); +227 incoming = accept (this->fd, (sockaddr*)&client,&length); +228 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr)); +229 return true; +230 break; +231 case I_CONNECTED: +232 return this->OnDataReady(); +233 break; +234 default: +235 break; +236 } +237 +238 return true; +239 } .fi .PP .SS "char * InspSocket::Read ()\fC [virtual]\fP" .PP -Definition at line 149 of file socket.cpp. +Definition at line 155 of file socket.cpp. .PP References DEBUG, and ibuf. .PP .nf -150 { -151 int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0); -152 if (n > 0) -153 { -154 ibuf[n] = 0; -155 return ibuf; -156 } -157 else -158 { -159 log(DEBUG,'EOF or error on socket'); -160 return NULL; -161 } -162 } +156 { +157 int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0); +158 if (n > 0) +159 { +160 ibuf[n] = 0; +161 return ibuf; +162 } +163 else +164 { +165 log(DEBUG,'EOF or error on socket'); +166 return NULL; +167 } +168 } .fi .PP .SS "void InspSocket::SetState (\fBInspSocketState\fP s)" .PP -Definition at line 235 of file socket.cpp. +Definition at line 241 of file socket.cpp. .PP References DEBUG, and state. .PP Referenced by Poll(). .PP .nf -236 { -237 log(DEBUG,'Socket state change'); -238 this->state = s; -239 } +242 { +243 log(DEBUG,'Socket state change'); +244 this->state = s; +245 } .fi .PP .SS "int InspSocket::Write (\fBstd::string\fP data)\fC [virtual]\fP" .PP -Definition at line 168 of file socket.cpp. +Definition at line 174 of file socket.cpp. .PP .nf -169 { -170 char* d = (char*)data.c_str(); -171 unsigned int written = 0; -172 int n = 0; -173 int s = data.length(); -174 while ((written < data.length()) && (n >= 0)) -175 { -176 n = send(this->fd,d,s,0); -177 if (n > 0) -178 { -179 // If we didnt write everything, advance -180 // the pointers so that when we retry -181 // the next time around the loop, we try -182 // to write what we failed to write before. -183 written += n; -184 s -= n; -185 d += n; -186 } -187 } -188 return written; -189 } +175 { +176 char* d = (char*)data.c_str(); +177 unsigned int written = 0; +178 int n = 0; +179 int s = data.length(); +180 while ((written < data.length()) && (n >= 0)) +181 { +182 n = send(this->fd,d,s,0); +183 if (n > 0) +184 { +185 // If we didnt write everything, advance +186 // the pointers so that when we retry +187 // the next time around the loop, we try +188 // to write what we failed to write before. +189 written += n; +190 s -= n; +191 d += n; +192 } +193 } +194 return written; +195 } .fi .PP .SH "Member Data Documentation" @@ -488,7 +506,7 @@ Referenced by Poll(). .PP Definition at line 33 of file socket.h. .PP -Referenced by Close(), InspSocket(), and Poll(). +Referenced by Close(), GetFd(), and InspSocket(). .SS "\fBstd::string\fP \fBInspSocket::host\fP\fC [private]\fP" .PP Definition at line 34 of file socket.h. @@ -510,8 +528,6 @@ Referenced by Poll(). .SS "pollfd \fBInspSocket::polls\fP\fC [private]\fP" .PP Definition at line 41 of file socket.h. -.PP -Referenced by Poll(). .SS "int \fBInspSocket::port\fP\fC [private]\fP" .PP Definition at line 35 of file socket.h. diff --git a/docs/man/man3/InviteItem.3 b/docs/man/man3/InviteItem.3 index 03bba1468..62fb66d89 100644 --- a/docs/man/man3/InviteItem.3 +++ b/docs/man/man3/InviteItem.3 @@ -1,4 +1,4 @@ -.TH "InviteItem" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "InviteItem" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Invited.3 b/docs/man/man3/Invited.3 index faf75bc02..0fbdee50c 100644 --- a/docs/man/man3/Invited.3 +++ b/docs/man/man3/Invited.3 @@ -1,4 +1,4 @@ -.TH "Invited" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Invited" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/KLine.3 b/docs/man/man3/KLine.3 index 81341d10c..823119cc2 100644 --- a/docs/man/man3/KLine.3 +++ b/docs/man/man3/KLine.3 @@ -1,4 +1,4 @@ -.TH "KLine" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "KLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ModeParameter.3 b/docs/man/man3/ModeParameter.3 index a6388f4c3..4a9e1d33e 100644 --- a/docs/man/man3/ModeParameter.3 +++ b/docs/man/man3/ModeParameter.3 @@ -1,4 +1,4 @@ -.TH "ModeParameter" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ModeParameter" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Module.3 b/docs/man/man3/Module.3 index e5b842580..11af088cb 100644 --- a/docs/man/man3/Module.3 +++ b/docs/man/man3/Module.3 @@ -1,4 +1,4 @@ -.TH "Module" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Module" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -354,20 +354,20 @@ Default constructor Creates a module class. .PP .PP -Definition at line 307 of file modules.cpp. +Definition at line 301 of file modules.cpp. .PP .nf -307 { } +301 { } .fi .PP .SS "Module::~Module ()\fC [virtual]\fP" .PP Default destructor destroys a module class. .PP -Definition at line 308 of file modules.cpp. +Definition at line 302 of file modules.cpp. .PP .nf -308 { } +302 { } .fi .PP .SH "Member Function Documentation" @@ -378,12 +378,12 @@ Returns the version number of a Module. .PP The method should return a \fBVersion\fP object with its version information assigned via \fBVersion::Version\fP .PP -Definition at line 321 of file modules.cpp. +Definition at line 313 of file modules.cpp. .PP References VF_VENDOR. .PP .nf -321 { return Version(1,0,0,0,VF_VENDOR); } +313 { return Version(1,0,0,0,VF_VENDOR); } .fi .PP .SS "void Module::On005Numeric (\fBstd::string\fP & output)\fC [virtual]\fP" @@ -399,10 +399,10 @@ The module should modify the 005 numeric if needed to indicate its features. .PP .PP -Definition at line 331 of file modules.cpp. +Definition at line 323 of file modules.cpp. .PP .nf -331 { }; +323 { }; .fi .PP .SS "int Module::OnAccessCheck (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel, int access_type)\fC [virtual]\fP" @@ -446,12 +446,12 @@ This function is called before many functions which check a users status on a ch .PP .PP -Definition at line 330 of file modules.cpp. +Definition at line 322 of file modules.cpp. .PP References ACR_DEFAULT. .PP .nf -330 { return ACR_DEFAULT; }; +322 { return ACR_DEFAULT; }; .fi .PP .SS "int Module::OnAddBan (\fBuserrec\fP * source, \fBchanrec\fP * channel, \fBstd::string\fP banmask)\fC [virtual]\fP" @@ -476,10 +476,10 @@ Return a non-zero value to 'eat' the mode change and prevent the ban from being .PP .PP -Definition at line 356 of file modules.cpp. +Definition at line 348 of file modules.cpp. .PP .nf -356 { return 0; }; +348 { return 0; }; .fi .PP .SS "void Module::OnAddELine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -501,10 +501,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 382 of file modules.cpp. +Definition at line 374 of file modules.cpp. .PP .nf -382 { }; +374 { }; .fi .PP .SS "void Module::OnAddGLine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -526,10 +526,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 378 of file modules.cpp. +Definition at line 370 of file modules.cpp. .PP .nf -378 { }; +370 { }; .fi .PP .SS "void Module::OnAddKLine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -551,10 +551,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 380 of file modules.cpp. +Definition at line 372 of file modules.cpp. .PP .nf -380 { }; +372 { }; .fi .PP .SS "void Module::OnAddQLine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP nickmask)\fC [virtual]\fP" @@ -576,10 +576,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 381 of file modules.cpp. +Definition at line 373 of file modules.cpp. .PP .nf -381 { }; +373 { }; .fi .PP .SS "void Module::OnAddZLine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP ipmask)\fC [virtual]\fP" @@ -601,10 +601,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 379 of file modules.cpp. +Definition at line 371 of file modules.cpp. .PP .nf -379 { }; +371 { }; .fi .PP .SS "void Module::OnBackgroundTimer (time_t curtime)\fC [virtual]\fP" @@ -620,10 +620,10 @@ This timer can be used to control timed features. Its period is not accurate eno .PP .PP -Definition at line 335 of file modules.cpp. +Definition at line 327 of file modules.cpp. .PP .nf -335 { }; +327 { }; .fi .PP .SS "void Module::OnChangeHost (\fBuserrec\fP * user, \fBstd::string\fP newhost)\fC [virtual]\fP" @@ -641,10 +641,10 @@ This event triggers after the host has been set. .PP .PP -Definition at line 376 of file modules.cpp. +Definition at line 368 of file modules.cpp. .PP .nf -376 { }; +368 { }; .fi .PP .SS "int Module::OnChangeLocalUserGECOS (\fBuserrec\fP * user, \fBstd::string\fP newhost)\fC [virtual]\fP" @@ -667,10 +667,10 @@ return 1 to deny the name change, or 0 to allow it. .PP .PP -Definition at line 349 of file modules.cpp. +Definition at line 341 of file modules.cpp. .PP .nf -349 { return 0; }; +341 { return 0; }; .fi .PP .SS "int Module::OnChangeLocalUserHost (\fBuserrec\fP * user, \fBstd::string\fP newhost)\fC [virtual]\fP" @@ -693,10 +693,10 @@ Return 1 to deny the host change, or 0 to allow it. .PP .PP -Definition at line 348 of file modules.cpp. +Definition at line 340 of file modules.cpp. .PP .nf -348 { return 0; }; +340 { return 0; }; .fi .PP .SS "void Module::OnChangeName (\fBuserrec\fP * user, \fBstd::string\fP gecos)\fC [virtual]\fP" @@ -714,10 +714,10 @@ This event triggers after the name has been set. .PP .PP -Definition at line 377 of file modules.cpp. +Definition at line 369 of file modules.cpp. .PP .nf -377 { }; +369 { }; .fi .PP .SS "int Module::OnCheckBan (\fBuserrec\fP * user, \fBchanrec\fP * chan)\fC [virtual]\fP" @@ -740,10 +740,10 @@ This method will always be called for each join, wether or not the user actually .PP .PP -Definition at line 346 of file modules.cpp. +Definition at line 338 of file modules.cpp. .PP .nf -346 { return 0; }; +338 { return 0; }; .fi .PP .SS "int Module::OnCheckInvite (\fBuserrec\fP * user, \fBchanrec\fP * chan)\fC [virtual]\fP" @@ -766,10 +766,10 @@ This method will always be called for each join, wether or not the channel is ac .PP .PP -Definition at line 343 of file modules.cpp. +Definition at line 335 of file modules.cpp. .PP .nf -343 { return 0; }; +335 { return 0; }; .fi .PP .SS "int Module::OnCheckKey (\fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP keygiven)\fC [virtual]\fP" @@ -792,10 +792,10 @@ This method will always be called for each join, wether or not the channel is ac .PP .PP -Definition at line 344 of file modules.cpp. +Definition at line 336 of file modules.cpp. .PP .nf -344 { return 0; }; +336 { return 0; }; .fi .PP .SS "int Module::OnCheckLimit (\fBuserrec\fP * user, \fBchanrec\fP * chan)\fC [virtual]\fP" @@ -818,10 +818,10 @@ This method will always be called for each join, wether or not the channel is ac .PP .PP -Definition at line 345 of file modules.cpp. +Definition at line 337 of file modules.cpp. .PP .nf -345 { return 0; }; +337 { return 0; }; .fi .PP .SS "bool Module::OnCheckReady (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -842,10 +842,10 @@ true to indicate readiness, false if otherwise .PP .PP -Definition at line 338 of file modules.cpp. +Definition at line 330 of file modules.cpp. .PP .nf -338 { return true; }; +330 { return true; }; .fi .PP .SS "void Module::OnCleanup (int target_type, void * item)\fC [virtual]\fP" @@ -863,10 +863,10 @@ This method is called once for every user and channel on the network, so that wh .PP .PP -Definition at line 388 of file modules.cpp. +Definition at line 380 of file modules.cpp. .PP .nf -388 { }; +380 { }; .fi .PP .SS "void Module::OnDecodeMetaData (int target_type, void * target, \fBstd::string\fP extname, \fBstd::string\fP extdata)\fC [virtual]\fP" @@ -888,10 +888,10 @@ Please see src/modules/m_swhois.cpp for a working example of how to use this met .PP .PP -Definition at line 373 of file modules.cpp. +Definition at line 365 of file modules.cpp. .PP .nf -373 { }; +365 { }; .fi .PP .SS "int Module::OnDelBan (\fBuserrec\fP * source, \fBchanrec\fP * channel, \fBstd::string\fP banmask)\fC [virtual]\fP" @@ -916,10 +916,10 @@ Return a non-zero value to 'eat' the mode change and prevent the ban from being .PP .PP -Definition at line 357 of file modules.cpp. +Definition at line 349 of file modules.cpp. .PP .nf -357 { return 0; }; +349 { return 0; }; .fi .PP .SS "void Module::OnDelELine (\fBuserrec\fP * source, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -937,10 +937,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 387 of file modules.cpp. +Definition at line 379 of file modules.cpp. .PP .nf -387 { }; +379 { }; .fi .PP .SS "void Module::OnDelGLine (\fBuserrec\fP * source, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -958,10 +958,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 383 of file modules.cpp. +Definition at line 375 of file modules.cpp. .PP .nf -383 { }; +375 { }; .fi .PP .SS "void Module::OnDelKLine (\fBuserrec\fP * source, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -979,10 +979,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 385 of file modules.cpp. +Definition at line 377 of file modules.cpp. .PP .nf -385 { }; +377 { }; .fi .PP .SS "void Module::OnDelQLine (\fBuserrec\fP * source, \fBstd::string\fP nickmask)\fC [virtual]\fP" @@ -1000,10 +1000,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 386 of file modules.cpp. +Definition at line 378 of file modules.cpp. .PP .nf -386 { }; +378 { }; .fi .PP .SS "void Module::OnDelZLine (\fBuserrec\fP * source, \fBstd::string\fP ipmask)\fC [virtual]\fP" @@ -1021,10 +1021,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 384 of file modules.cpp. +Definition at line 376 of file modules.cpp. .PP .nf -384 { }; +376 { }; .fi .PP .SS "void Module::OnEvent (\fBEvent\fP * event)\fC [virtual]\fP" @@ -1040,10 +1040,10 @@ Please see the documentation of \fBEvent::Send()\fP for further information. The .PP .PP -Definition at line 351 of file modules.cpp. +Definition at line 343 of file modules.cpp. .PP .nf -351 { return; }; +343 { return; }; .fi .PP .SS "int Module::OnExtendedMode (\fBuserrec\fP * user, void * target, char modechar, int type, bool mode_on, \fBstring_list\fP & params)\fC [virtual]\fP" @@ -1069,10 +1069,10 @@ The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the .PP .PP -Definition at line 319 of file modules.cpp. +Definition at line 311 of file modules.cpp. .PP .nf -319 { return false; } +311 { return false; } .fi .PP .SS "void Module::OnGetServerDescription (\fBstd::string\fP servername, \fBstd::string\fP & description)\fC [virtual]\fP" @@ -1090,10 +1090,10 @@ You may change or define the description given in \fBstd::string\fP &description .PP .PP -Definition at line 367 of file modules.cpp. +Definition at line 359 of file modules.cpp. .PP .nf -367 { }; +359 { }; .fi .PP .SS "void Module::OnGlobalConnect (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1109,10 +1109,10 @@ This event is informational only. You should not change any user information in .PP .PP -Definition at line 355 of file modules.cpp. +Definition at line 347 of file modules.cpp. .PP .nf -355 { }; +347 { }; .fi .PP .SS "void Module::OnGlobalOper (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1128,10 +1128,10 @@ You cannot override this and prevent it from happening as it is already happened .PP .PP -Definition at line 354 of file modules.cpp. +Definition at line 346 of file modules.cpp. .PP .nf -354 { }; +346 { }; .fi .PP .SS "void Module::OnInfo (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1149,10 +1149,10 @@ The userrec will contain the information of the user who typed the command. Modu .PP .PP -Definition at line 323 of file modules.cpp. +Definition at line 315 of file modules.cpp. .PP .nf -323 { }; +315 { }; .fi .PP .SS "int Module::OnKill (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1177,10 +1177,10 @@ If a client is killed by a server, e.g. a nickname collision or protocol error, .PP .PP -Definition at line 332 of file modules.cpp. +Definition at line 324 of file modules.cpp. .PP .nf -332 { return 0; }; +324 { return 0; }; .fi .PP .SS "void Module::OnLoadModule (\fBModule\fP * mod, \fBstd::string\fP name)\fC [virtual]\fP" @@ -1198,10 +1198,10 @@ mod will contain a pointer to the module, and string will contain its name, for .PP .PP -Definition at line 333 of file modules.cpp. +Definition at line 325 of file modules.cpp. .PP .nf -333 { }; +325 { }; .fi .PP .SS "int Module::OnLocalTopicChange (\fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP topic)\fC [virtual]\fP" @@ -1223,10 +1223,10 @@ Return 1 to deny the topic change, or 0 to allow it. .PP .PP -Definition at line 350 of file modules.cpp. +Definition at line 342 of file modules.cpp. .PP .nf -350 { return 0; }; +342 { return 0; }; .fi .PP .SS "void Module::OnMode (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1248,10 +1248,10 @@ The text variable contains the remainder of the mode string after the target, e. .PP .PP -Definition at line 320 of file modules.cpp. +Definition at line 312 of file modules.cpp. .PP .nf -320 { }; +312 { }; .fi .PP .SS "void Module::OnOper (\fBuserrec\fP * user, \fBstd::string\fP opertype)\fC [virtual]\fP" @@ -1269,10 +1269,10 @@ The userrec will contain the oper mode 'o' as this function is called after any .PP .PP -Definition at line 322 of file modules.cpp. +Definition at line 314 of file modules.cpp. .PP .nf -322 { }; +314 { }; .fi .PP .SS "int Module::OnOperCompare (\fBstd::string\fP password, \fBstd::string\fP input)\fC [virtual]\fP" @@ -1295,10 +1295,10 @@ The password field (from the config file) is in 'password' and is to be compared .PP .PP -Definition at line 353 of file modules.cpp. +Definition at line 345 of file modules.cpp. .PP .nf -353 { return 0; }; +345 { return 0; }; .fi .PP .SS "void Module::OnPostLocalTopicChange (\fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP topic)\fC [virtual]\fP" @@ -1318,10 +1318,10 @@ To block topic changes you must use OnLocalTopicChange instead. .PP .PP -Definition at line 366 of file modules.cpp. +Definition at line 358 of file modules.cpp. .PP .nf -366 { }; +358 { }; .fi .PP .SS "int Module::OnPreCommand (\fBstd::string\fP command, char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -1348,10 +1348,10 @@ This event occurs for all registered commands, wether they are registered in the .PP .PP -Definition at line 337 of file modules.cpp. +Definition at line 329 of file modules.cpp. .PP .nf -337 { return 0; }; +329 { return 0; }; .fi .PP .SS "int Module::OnRawMode (\fBuserrec\fP * user, \fBchanrec\fP * chan, char mode, \fBstd::string\fP param, bool adding, int pcnt)\fC [virtual]\fP" @@ -1382,10 +1382,10 @@ Return 1 from this function to block the mode character from being processed ent .PP .PP -Definition at line 342 of file modules.cpp. +Definition at line 334 of file modules.cpp. .PP .nf -342 { return 0; }; +334 { return 0; }; .fi .PP .SS "void Module::OnRawSocketAccept (int fd, \fBstd::string\fP ip, int localport)\fC [virtual]\fP" @@ -1405,10 +1405,10 @@ This is intended for raw socket processing (e.g. modules which wrap the tcp conn .PP .PP -Definition at line 358 of file modules.cpp. +Definition at line 350 of file modules.cpp. .PP .nf -358 { }; +350 { }; .fi .PP .SS "void Module::OnRawSocketClose (int fd)\fC [virtual]\fP" @@ -1424,10 +1424,10 @@ When this event is called, shutdown() has not yet been called on the socket. .PP .PP -Definition at line 360 of file modules.cpp. +Definition at line 352 of file modules.cpp. .PP .nf -360 { }; +352 { }; .fi .PP .SS "int Module::OnRawSocketRead (int fd, char * buffer, unsigned int count, int & readresult)\fC [virtual]\fP" @@ -1454,10 +1454,10 @@ nonzero if the event was handled, in which case readresult must be valid on exit .PP .PP -Definition at line 361 of file modules.cpp. +Definition at line 353 of file modules.cpp. .PP .nf -361 { return 0; }; +353 { return 0; }; .fi .PP .SS "int Module::OnRawSocketWrite (int fd, char * buffer, int count)\fC [virtual]\fP" @@ -1482,10 +1482,10 @@ Number of characters actually written or 0 if you didn't handle the operation .PP .PP -Definition at line 359 of file modules.cpp. +Definition at line 351 of file modules.cpp. .PP .nf -359 { return 0; }; +351 { return 0; }; .fi .PP .SS "void Module::OnRehash (\fBstd::string\fP parameter)\fC [virtual]\fP" @@ -1501,10 +1501,10 @@ This method is called prior to a /REHASH or when a SIGHUP is received from the o .PP .PP -Definition at line 316 of file modules.cpp. +Definition at line 308 of file modules.cpp. .PP .nf -316 { } +308 { } .fi .PP .SS "void Module::OnRemoteKill (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1522,10 +1522,10 @@ Called when an oper wants to disconnect a remote user via KILL. .PP .PP -Definition at line 364 of file modules.cpp. +Definition at line 356 of file modules.cpp. .PP .nf -364 { }; +356 { }; .fi .PP .SS "char * Module::OnRequest (\fBRequest\fP * request)\fC [virtual]\fP" @@ -1541,12 +1541,12 @@ Please see the documentation of \fBRequest::Send()\fP for further information. T .PP .PP -Definition at line 352 of file modules.cpp. +Definition at line 344 of file modules.cpp. .PP Referenced by Request::Send(). .PP .nf -352 { return NULL; }; +344 { return NULL; }; .fi .PP .SS "void Module::OnSendList (\fBuserrec\fP * user, \fBchanrec\fP * channel, char mode)\fC [virtual]\fP" @@ -1566,10 +1566,10 @@ For example, when a /MODE channel +b (without any other parameters) is called, i .PP .PP -Definition at line 336 of file modules.cpp. +Definition at line 328 of file modules.cpp. .PP .nf -336 { }; +328 { }; .fi .PP .SS "void Module::OnServerRaw (\fBstd::string\fP & raw, bool inbound, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -1589,10 +1589,10 @@ This method is the lowest level of handler available to a module. It will be cal .PP .PP -Definition at line 317 of file modules.cpp. +Definition at line 309 of file modules.cpp. .PP .nf -317 { } +309 { } .fi .PP .SS "void Module::OnStats (char symbol)\fC [virtual]\fP" @@ -1606,10 +1606,10 @@ Called on all /STATS commands This method is triggered for all /STATS use, inclu .PP .PP -Definition at line 347 of file modules.cpp. +Definition at line 339 of file modules.cpp. .PP .nf -347 { }; +339 { }; .fi .PP .SS "void Module::OnSyncChannel (\fBchanrec\fP * chan, \fBModule\fP * proto, void * opaque)\fC [virtual]\fP" @@ -1631,18 +1631,18 @@ For a good example of how to use this function, please see src/modules/m_chanpro .PP .PP -Definition at line 369 of file modules.cpp. +Definition at line 361 of file modules.cpp. .PP .nf -369 { }; +361 { }; .fi .PP .SS "void Module::OnSyncChannelMetaData (\fBchanrec\fP * chan, \fBModule\fP * proto, void * opaque, \fBstd::string\fP extname)\fC [virtual]\fP" .PP -Definition at line 371 of file modules.cpp. +Definition at line 363 of file modules.cpp. .PP .nf -371 { }; +363 { }; .fi .PP .SS "void Module::OnSyncUser (\fBuserrec\fP * user, \fBModule\fP * proto, void * opaque)\fC [virtual]\fP" @@ -1662,18 +1662,18 @@ When this function is called, it will be called from the module which implements .PP .PP -Definition at line 368 of file modules.cpp. +Definition at line 360 of file modules.cpp. .PP .nf -368 { }; +360 { }; .fi .PP .SS "void Module::OnSyncUserMetaData (\fBuserrec\fP * user, \fBModule\fP * proto, void * opaque, \fBstd::string\fP extname)\fC [virtual]\fP" .PP -Definition at line 372 of file modules.cpp. +Definition at line 364 of file modules.cpp. .PP .nf -372 { }; +364 { }; .fi .PP .SS "void Module::OnUnloadModule (\fBModule\fP * mod, \fBstd::string\fP name)\fC [virtual]\fP" @@ -1691,10 +1691,10 @@ mod will contain a pointer to the module, and string will contain its name, for .PP .PP -Definition at line 334 of file modules.cpp. +Definition at line 326 of file modules.cpp. .PP .nf -334 { }; +326 { }; .fi .PP .SS "void Module::OnUserConnect (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1710,10 +1710,10 @@ The details of the connecting user are available to you in the parameter userrec .PP .PP -Definition at line 309 of file modules.cpp. +Definition at line 303 of file modules.cpp. .PP .nf -309 { } +303 { } .fi .PP .SS "void Module::OnUserDisconnect (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1729,10 +1729,10 @@ The details of the exiting user are available to you in the parameter userrec *u .PP .PP -Definition at line 311 of file modules.cpp. +Definition at line 305 of file modules.cpp. .PP .nf -311 { } +305 { } .fi .PP .SS "void Module::OnUserInvite (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel)\fC [virtual]\fP" @@ -1752,10 +1752,10 @@ You cannot prevent the invite from occuring using this function, to do that, use .PP .PP -Definition at line 365 of file modules.cpp. +Definition at line 357 of file modules.cpp. .PP .nf -365 { }; +357 { }; .fi .PP .SS "void Module::OnUserJoin (\fBuserrec\fP * user, \fBchanrec\fP * channel)\fC [virtual]\fP" @@ -1773,10 +1773,10 @@ The details of the joining user are available to you in the parameter userrec *u .PP .PP -Definition at line 312 of file modules.cpp. +Definition at line 306 of file modules.cpp. .PP .nf -312 { } +306 { } .fi .PP .SS "void Module::OnUserKick (\fBuserrec\fP * source, \fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1798,10 +1798,10 @@ If this method is called, the kick is already underway and cannot be prevented, .PP .PP -Definition at line 341 of file modules.cpp. +Definition at line 333 of file modules.cpp. .PP .nf -341 { }; +333 { }; .fi .PP .SS "void Module::OnUserMessage (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1823,10 +1823,10 @@ The dest variable contains a userrec* if target_type is TYPE_USER and a chanrec* .PP .PP -Definition at line 362 of file modules.cpp. +Definition at line 354 of file modules.cpp. .PP .nf -362 { }; +354 { }; .fi .PP .SS "void Module::OnUserNotice (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1848,10 +1848,10 @@ The dest variable contains a userrec* if target_type is TYPE_USER and a chanrec* .PP .PP -Definition at line 363 of file modules.cpp. +Definition at line 355 of file modules.cpp. .PP .nf -363 { }; +355 { }; .fi .PP .SS "void Module::OnUserPart (\fBuserrec\fP * user, \fBchanrec\fP * channel)\fC [virtual]\fP" @@ -1869,10 +1869,10 @@ The details of the leaving user are available to you in the parameter userrec *u .PP .PP -Definition at line 313 of file modules.cpp. +Definition at line 307 of file modules.cpp. .PP .nf -313 { } +307 { } .fi .PP .SS "void Module::OnUserPostNick (\fBuserrec\fP * user, \fBstd::string\fP oldnick)\fC [virtual]\fP" @@ -1890,10 +1890,10 @@ This can be used to track users after nickchanges have been applied. Please note .PP .PP -Definition at line 329 of file modules.cpp. +Definition at line 321 of file modules.cpp. .PP .nf -329 { }; +321 { }; .fi .PP .SS "int Module::OnUserPreInvite (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel)\fC [virtual]\fP" @@ -1918,10 +1918,10 @@ Returning 1 from this function stops the process immediately, causing no output .PP .PP -Definition at line 325 of file modules.cpp. +Definition at line 317 of file modules.cpp. .PP .nf -325 { return 0; }; +317 { return 0; }; .fi .PP .SS "int Module::OnUserPreJoin (\fBuserrec\fP * user, \fBchanrec\fP * chan, const char * cname)\fC [virtual]\fP" @@ -1948,10 +1948,10 @@ If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be .PP .PP -Definition at line 318 of file modules.cpp. +Definition at line 310 of file modules.cpp. .PP .nf -318 { return 0; } +310 { return 0; } .fi .PP .SS "int Module::OnUserPreKick (\fBuserrec\fP * source, \fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1978,10 +1978,10 @@ Returning a value of 1 from this function stops the process immediately, causing .PP .PP -Definition at line 340 of file modules.cpp. +Definition at line 332 of file modules.cpp. .PP .nf -340 { return 0; }; +332 { return 0; }; .fi .PP .SS "int Module::OnUserPreMessage (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP & text)\fC [virtual]\fP" @@ -2008,10 +2008,10 @@ Returning any nonzero value from this function stops the process immediately, ca .PP .PP -Definition at line 326 of file modules.cpp. +Definition at line 318 of file modules.cpp. .PP .nf -326 { return 0; }; +318 { return 0; }; .fi .PP .SS "int Module::OnUserPreNick (\fBuserrec\fP * user, \fBstd::string\fP newnick)\fC [virtual]\fP" @@ -2034,10 +2034,10 @@ This can be used to implement Q-lines etc. Please note that although you can see .PP .PP -Definition at line 328 of file modules.cpp. +Definition at line 320 of file modules.cpp. .PP .nf -328 { return 0; }; +320 { return 0; }; .fi .PP .SS "int Module::OnUserPreNotice (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP & text)\fC [virtual]\fP" @@ -2064,10 +2064,10 @@ Returning any nonzero value from this function stops the process immediately, ca .PP .PP -Definition at line 327 of file modules.cpp. +Definition at line 319 of file modules.cpp. .PP .nf -327 { return 0; }; +319 { return 0; }; .fi .PP .SS "void Module::OnUserQuit (\fBuserrec\fP * user, \fBstd::string\fP message)\fC [virtual]\fP" @@ -2085,10 +2085,10 @@ The details of the exiting user are available to you in the parameter userrec *u .PP .PP -Definition at line 310 of file modules.cpp. +Definition at line 304 of file modules.cpp. .PP .nf -310 { } +304 { } .fi .PP .SS "void Module::OnUserRegister (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -2104,10 +2104,10 @@ before the user is sent the MOTD etc). Modules can use this method if they are p .PP .PP -Definition at line 339 of file modules.cpp. +Definition at line 331 of file modules.cpp. .PP .nf -339 { }; +331 { }; .fi .PP .SS "void Module::OnWallops (\fBuserrec\fP * user, \fBstd::string\fP text)\fC [virtual]\fP" @@ -2123,10 +2123,10 @@ Called after every WALLOPS command. .PP .PP -Definition at line 375 of file modules.cpp. +Definition at line 367 of file modules.cpp. .PP .nf -375 { }; +367 { }; .fi .PP .SS "void Module::OnWhois (\fBuserrec\fP * source, \fBuserrec\fP * dest)\fC [virtual]\fP" @@ -2144,10 +2144,10 @@ The source parameter contains the details of the user who issued the WHOIS comma .PP .PP -Definition at line 324 of file modules.cpp. +Definition at line 316 of file modules.cpp. .PP .nf -324 { }; +316 { }; .fi .PP .SS "void Module::ProtoSendMetaData (void * opaque, int target_type, void * target, \fBstd::string\fP extname, \fBstd::string\fP extdata)\fC [virtual]\fP" @@ -2173,10 +2173,10 @@ More documentation to follow soon. Please see src/modules/m_swhois.cpp for examp .PP .PP -Definition at line 374 of file modules.cpp. +Definition at line 366 of file modules.cpp. .PP .nf -374 { }; +366 { }; .fi .PP .SS "void Module::ProtoSendMode (void * opaque, int target_type, void * target, \fBstd::string\fP modeline)\fC [virtual]\fP" @@ -2200,10 +2200,10 @@ More documentation to follow soon. Please see src/modules/m_chanprotect.cpp for .PP .PP -Definition at line 370 of file modules.cpp. +Definition at line 362 of file modules.cpp. .PP .nf -370 { }; +362 { }; .fi .PP diff --git a/docs/man/man3/ModuleFactory.3 b/docs/man/man3/ModuleFactory.3 index 07c23ad69..be471b88d 100644 --- a/docs/man/man3/ModuleFactory.3 +++ b/docs/man/man3/ModuleFactory.3 @@ -1,4 +1,4 @@ -.TH "ModuleFactory" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ModuleFactory" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ModuleMessage.3 b/docs/man/man3/ModuleMessage.3 index 88ca58ca7..422325015 100644 --- a/docs/man/man3/ModuleMessage.3 +++ b/docs/man/man3/ModuleMessage.3 @@ -1,4 +1,4 @@ -.TH "ModuleMessage" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ModuleMessage" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/QLine.3 b/docs/man/man3/QLine.3 index f50afbdd4..4859a543d 100644 --- a/docs/man/man3/QLine.3 +++ b/docs/man/man3/QLine.3 @@ -1,4 +1,4 @@ -.TH "QLine" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "QLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Request.3 b/docs/man/man3/Request.3 index bd8f3ab8f..e77724e7a 100644 --- a/docs/man/man3/Request.3 +++ b/docs/man/man3/Request.3 @@ -1,4 +1,4 @@ -.TH "Request" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Request" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -65,10 +65,10 @@ Definition at line 157 of file modules.h. .PP Create a new Request. .PP -Definition at line 252 of file modules.cpp. +Definition at line 246 of file modules.cpp. .PP .nf -252 : data(anydata), source(src), dest(dst) { }; +246 : data(anydata), source(src), dest(dst) { }; .fi .PP .SH "Member Function Documentation" @@ -77,42 +77,42 @@ Definition at line 252 of file modules.cpp. .PP Fetch the Request data. .PP -Definition at line 254 of file modules.cpp. +Definition at line 248 of file modules.cpp. .PP References data. .PP .nf -255 { -256 return this->data; -257 } +249 { +250 return this->data; +251 } .fi .PP .SS "\fBModule\fP * Request::GetDest ()" .PP Fetch the request destination (should be 'this' in the receiving module). .PP -Definition at line 264 of file modules.cpp. +Definition at line 258 of file modules.cpp. .PP References dest. .PP .nf -265 { -266 return this->dest; -267 } +259 { +260 return this->dest; +261 } .fi .PP .SS "\fBModule\fP * Request::GetSource ()" .PP Fetch the request source. .PP -Definition at line 259 of file modules.cpp. +Definition at line 253 of file modules.cpp. .PP References source. .PP .nf -260 { -261 return this->source; -262 } +254 { +255 return this->source; +256 } .fi .PP .SS "char * Request::Send ()\fC [virtual]\fP" @@ -123,21 +123,21 @@ Upon returning the result will be arbitary data returned by the module you sent .PP Implements \fBModuleMessage\fP. .PP -Definition at line 269 of file modules.cpp. +Definition at line 263 of file modules.cpp. .PP References dest, and Module::OnRequest(). .PP .nf -270 { -271 if (this->dest) -272 { -273 return dest->OnRequest(this); -274 } -275 else -276 { -277 return NULL; -278 } -279 } +264 { +265 if (this->dest) +266 { +267 return dest->OnRequest(this); +268 } +269 else +270 { +271 return NULL; +272 } +273 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/Server.3 b/docs/man/man3/Server.3 index cca17c7e4..f65da0bef 100644 --- a/docs/man/man3/Server.3 +++ b/docs/man/man3/Server.3 @@ -1,4 +1,4 @@ -.TH "Server" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Server" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -261,11 +261,11 @@ Default constructor. .PP Creates a Server object. .PP -Definition at line 394 of file modules.cpp. +Definition at line 386 of file modules.cpp. .PP .nf -395 { -396 } +387 { +388 } .fi .PP .SS "Server::~Server ()\fC [virtual]\fP" @@ -274,11 +274,11 @@ Default destructor. .PP Destroys a Server object. .PP -Definition at line 398 of file modules.cpp. +Definition at line 390 of file modules.cpp. .PP .nf -399 { -400 } +391 { +392 } .fi .PP .SH "Member Function Documentation" @@ -293,14 +293,14 @@ typedef void (handlerfunc) (char**, int, userrec*); ... void \fBhandle_kill(char .PP When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'. The source parameter is used for resource tracking, and should contain the name of your module (with file extension) e.g. 'm_blarp.so'. If you place the wrong identifier here, you can cause crashes if your module is unloaded. .PP -Definition at line 495 of file modules.cpp. +Definition at line 487 of file modules.cpp. .PP References createcommand(). .PP .nf -496 { -497 createcommand(cmd,f,flags,minparams,source); -498 } +488 { +489 createcommand(cmd,f,flags,minparams,source); +490 } .fi .PP .SS "void Server::AddELine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -309,14 +309,14 @@ Adds a E-line The E-line is enforced as soon as it is added. .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 758 of file modules.cpp. +Definition at line 731 of file modules.cpp. .PP References add_eline(). .PP .nf -759 { -760 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -761 } +732 { +733 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +734 } .fi .PP .SS "bool Server::AddExtendedListMode (char modechar)\fC [virtual]\fP" @@ -335,17 +335,17 @@ This call is used to implement modes like +q and +a. The characteristics of thes .PP It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use Server::Find to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing. .PP -Definition at line 663 of file modules.cpp. +Definition at line 655 of file modules.cpp. .PP References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL. .PP .nf -664 { -665 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -666 if (res) -667 ModeMakeList(modechar); -668 return res; -669 } +656 { +657 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +658 if (res) +659 ModeMakeList(modechar); +660 return res; +661 } .fi .PP .SS "bool Server::AddExtendedMode (char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)\fC [virtual]\fP" @@ -354,37 +354,37 @@ Adds an extended mode letter which is parsed by a module. .PP This allows modules to add extra mode letters, e.g. +x for hostcloak. the 'type' parameter is either MT_CHANNEL, MT_CLIENT, or MT_SERVER, to indicate wether the mode is a channel mode, a client mode, or a server mode. requires_oper is used with MT_CLIENT type modes only to indicate the mode can only be set or unset by an oper. If this is used for MT_CHANNEL type modes it is ignored. params_when_on is the number of modes to expect when the mode is turned on (for type MT_CHANNEL only), e.g. with mode +k, this would have a value of 1. the params_when_off value has a similar value to params_when_on, except it indicates the number of parameters to expect when the mode is disabled. Modes which act in a similar way to channel mode +l (e.g. require a parameter to enable, but not to disable) should use this parameter. The function returns false if the mode is unavailable, and will not attempt to allocate another character, as this will confuse users. This also means that as only one module can claim a specific mode character, the core does not need to keep track of which modules own which modes, which speeds up operation of the server. In this version, a mode can have at most one parameter, attempting to use more parameters will have undefined effects. .PP -Definition at line 635 of file modules.cpp. +Definition at line 627 of file modules.cpp. .PP References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. .PP .nf -636 { -637 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) -638 { -639 if (type == MT_SERVER) -640 { -641 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); -642 return false; -643 } -644 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -645 { -646 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); -647 return false; -648 } -649 if ((params_when_on>1) || (params_when_off>1)) -650 { -651 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); -652 return false; -653 } -654 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -655 } -656 else -657 { -658 log(DEBUG,'*** API ERROR *** Muppet modechar detected.'); -659 } -660 return false; -661 } +628 { +629 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) +630 { +631 if (type == MT_SERVER) +632 { +633 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); +634 return false; +635 } +636 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +637 { +638 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); +639 return false; +640 } +641 if ((params_when_on>1) || (params_when_off>1)) +642 { +643 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); +644 return false; +645 } +646 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +647 } +648 else +649 { +650 log(DEBUG,'*** API ERROR *** Muppet modechar detected.'); +651 } +652 return false; +653 } .fi .PP .SS "void Server::AddGLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -393,14 +393,14 @@ Adds a G-line The G-line is propogated to all of the servers in the mesh and enf .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 738 of file modules.cpp. +Definition at line 711 of file modules.cpp. .PP References add_gline(). .PP .nf -739 { -740 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -741 } +712 { +713 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +714 } .fi .PP .SS "void Server::AddKLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -409,14 +409,14 @@ Adds a K-line The K-line is enforced as soon as it is added. .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 753 of file modules.cpp. +Definition at line 726 of file modules.cpp. .PP References add_kline(). .PP .nf -754 { -755 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -756 } +727 { +728 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +729 } .fi .PP .SS "void Server::AddQLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP nickname)\fC [virtual]\fP" @@ -425,28 +425,28 @@ Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enf .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 743 of file modules.cpp. +Definition at line 716 of file modules.cpp. .PP References add_qline(). .PP .nf -744 { -745 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); -746 } +717 { +718 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +719 } .fi .PP .SS "void Server::AddSocket (\fBInspSocket\fP * sock)\fC [virtual]\fP" .PP Adds a class derived from \fBInspSocket\fP to the server's socket engine. .PP -Definition at line 402 of file modules.cpp. +Definition at line 394 of file modules.cpp. .PP References module_sockets. .PP .nf -403 { -404 module_sockets.push_back(sock); -405 } +395 { +396 module_sockets.push_back(sock); +397 } .fi .PP .SS "void Server::AddZLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP ipaddr)\fC [virtual]\fP" @@ -455,14 +455,14 @@ Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enf .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 748 of file modules.cpp. +Definition at line 721 of file modules.cpp. .PP References add_zline(). .PP .nf -749 { -750 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -751 } +722 { +723 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +724 } .fi .PP .SS "long Server::CalcDuration (\fBstd::string\fP duration)\fC [virtual]\fP" @@ -471,14 +471,14 @@ Calculates a duration This method will take a string containing a formatted dura .PP '1w2d') and return its value as a total number of seconds. This is the same function used internally by /GLINE etc to set the ban times. .PP -Definition at line 788 of file modules.cpp. +Definition at line 761 of file modules.cpp. .PP References duration(). .PP .nf -789 { -790 return duration(delta.c_str()); -791 } +762 { +763 return duration(delta.c_str()); +764 } .fi .PP .SS "void Server::CallCommandHandler (\fBstd::string\fP commandname, char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -489,12 +489,12 @@ You can use this function to trigger other commands in the ircd, such as PRIVMSG .br ) you may use them as callback identifiers. The first parameter to this method is the name of the command handler you wish to call, e.g. PRIVMSG. This will be a command handler previously registered by the core or wih \fBAddCommand()\fP. The second parameter is an array of parameters, and the third parameter is a count of parameters in the array. If you do not pass enough parameters to meet the minimum needed by the handler, the functiom will silently ignore it. The final parameter is the user executing the command handler, used for privilage checks, etc. .PP -Definition at line 480 of file modules.cpp. +Definition at line 472 of file modules.cpp. .PP .nf -481 { -482 call_handler(commandname.c_str(),parameters,pcnt,user); -483 } +473 { +474 call_handler(commandname.c_str(),parameters,pcnt,user); +475 } .fi .PP .SS "void Server::ChangeGECOS (\fBuserrec\fP * user, \fBstd::string\fP gecos)\fC [virtual]\fP" @@ -503,14 +503,14 @@ Change GECOS (fullname) of a user. .PP You should always call this method to change a user's GECOS rather than writing directly to the fullname member of userrec, as any change applied via this method will be propogated to any linked servers. .PP -Definition at line 578 of file modules.cpp. +Definition at line 570 of file modules.cpp. .PP References ChangeName(). .PP .nf -579 { -580 ChangeName(user,gecos.c_str()); -581 } +571 { +572 ChangeName(user,gecos.c_str()); +573 } .fi .PP .SS "void Server::ChangeHost (\fBuserrec\fP * user, \fBstd::string\fP host)\fC [virtual]\fP" @@ -519,14 +519,14 @@ Change displayed hostname of a user. .PP You should always call this method to change a user's host rather than writing directly to the dhost member of userrec, as any change applied via this method will be propogated to any linked servers. .PP -Definition at line 573 of file modules.cpp. +Definition at line 565 of file modules.cpp. .PP References ChangeDisplayedHost(). .PP .nf -574 { -575 ChangeDisplayedHost(user,host.c_str()); -576 } +566 { +567 ChangeDisplayedHost(user,host.c_str()); +568 } .fi .PP .SS "void Server::ChangeUserNick (\fBuserrec\fP * user, \fBstd::string\fP nickname)\fC [virtual]\fP" @@ -535,12 +535,12 @@ Forces a user nickchange. .PP This command works similarly to SVSNICK, and can be used to implement Q-lines etc. If you specify an invalid nickname, the nick change will be dropped and the target user will receive the error numeric for it. .PP -Definition at line 465 of file modules.cpp. +Definition at line 457 of file modules.cpp. .PP .nf -466 { -467 force_nickchange(user,nickname.c_str()); -468 } +458 { +459 force_nickchange(user,nickname.c_str()); +460 } .fi .PP .SS "\fBstd::string\fP Server::ChanMode (\fBuserrec\fP * User, \fBchanrec\fP * Chan)\fC [virtual]\fP" @@ -549,14 +549,14 @@ Attempts to look up a user's privilages on a channel. .PP This function will return a string containing either @, %, +, or an empty string, representing the user's privilages upon the channel you specify. .PP -Definition at line 603 of file modules.cpp. +Definition at line 595 of file modules.cpp. .PP References cmode(). .PP .nf -604 { -605 return cmode(User,Chan); -606 } +596 { +597 return cmode(User,Chan); +598 } .fi .PP .SS "bool Server::CommonChannels (\fBuserrec\fP * u1, \fBuserrec\fP * u2)\fC [virtual]\fP" @@ -565,14 +565,14 @@ Returns true if two users share a common channel. .PP This method is used internally by the NICK and QUIT commands, and the \fBServer::SendCommon\fP method. .PP -Definition at line 551 of file modules.cpp. +Definition at line 543 of file modules.cpp. .PP References common_channels(). .PP .nf -552 { -553 return (common_channels(u1,u2) != 0); -554 } +544 { +545 return (common_channels(u1,u2) != 0); +546 } .fi .PP .SS "int Server::CountUsers (\fBchanrec\fP * c)\fC [virtual]\fP" @@ -581,103 +581,103 @@ Returns a count of the number of users on a channel. .PP This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel. .PP -Definition at line 671 of file modules.cpp. +Definition at line 663 of file modules.cpp. .PP .nf -672 { -673 return usercount(c); -674 } +664 { +665 return usercount(c); +666 } .fi .PP .SS "bool Server::DelELine (\fBstd::string\fP hostmask)\fC [virtual]\fP" .PP Deletes a local E-Line. .PP -Definition at line 783 of file modules.cpp. +Definition at line 756 of file modules.cpp. .PP References del_eline(). .PP .nf -784 { -785 return del_eline(hostmask.c_str()); -786 } +757 { +758 return del_eline(hostmask.c_str()); +759 } .fi .PP .SS "bool Server::DelGLine (\fBstd::string\fP hostmask)\fC [virtual]\fP" .PP Deletes a G-Line from all servers on the mesh. .PP -Definition at line 763 of file modules.cpp. +Definition at line 736 of file modules.cpp. .PP References del_gline(). .PP .nf -764 { -765 return del_gline(hostmask.c_str()); -766 } +737 { +738 return del_gline(hostmask.c_str()); +739 } .fi .PP .SS "bool Server::DelKLine (\fBstd::string\fP hostmask)\fC [virtual]\fP" .PP Deletes a local K-Line. .PP -Definition at line 778 of file modules.cpp. +Definition at line 751 of file modules.cpp. .PP References del_kline(). .PP .nf -779 { -780 return del_kline(hostmask.c_str()); -781 } +752 { +753 return del_kline(hostmask.c_str()); +754 } .fi .PP .SS "bool Server::DelQLine (\fBstd::string\fP nickname)\fC [virtual]\fP" .PP Deletes a Q-Line from all servers on the mesh. .PP -Definition at line 768 of file modules.cpp. +Definition at line 741 of file modules.cpp. .PP References del_qline(). .PP .nf -769 { -770 return del_qline(nickname.c_str()); -771 } +742 { +743 return del_qline(nickname.c_str()); +744 } .fi .PP .SS "void Server::DelSocket (\fBInspSocket\fP * sock)\fC [virtual]\fP" .PP Deletes a class derived from \fBInspSocket\fP from the server's socket engine. .PP -Definition at line 413 of file modules.cpp. +Definition at line 405 of file modules.cpp. .PP References module_sockets. .PP .nf -414 { -415 for (std::vector::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) -416 { -417 if (*a == sock) -418 { -419 module_sockets.erase(a); -420 return; -421 } -422 } -423 } +406 { +407 for (std::vector::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) +408 { +409 if (*a == sock) +410 { +411 module_sockets.erase(a); +412 return; +413 } +414 } +415 } .fi .PP .SS "bool Server::DelZLine (\fBstd::string\fP ipaddr)\fC [virtual]\fP" .PP Deletes a Z-Line from all servers on the mesh. .PP -Definition at line 773 of file modules.cpp. +Definition at line 746 of file modules.cpp. .PP References del_zline(). .PP .nf -774 { -775 return del_zline(ipaddr.c_str()); -776 } +747 { +748 return del_zline(ipaddr.c_str()); +749 } .fi .PP .SS "\fBchanrec\fP * Server::FindChannel (\fBstd::string\fP channel)\fC [virtual]\fP" @@ -686,12 +686,12 @@ Attempts to look up a channel and return a pointer to it. .PP This function will return NULL if the channel does not exist. .PP -Definition at line 598 of file modules.cpp. +Definition at line 590 of file modules.cpp. .PP .nf -599 { -600 return FindChan(channel.c_str()); -601 } +591 { +592 return FindChan(channel.c_str()); +593 } .fi .PP .SS "\fBuserrec\fP * Server::FindDescriptor (int socket)\fC [virtual]\fP" @@ -700,12 +700,12 @@ Attempts to look up a nick using the file descriptor associated with that nick. .PP This function will return NULL if the file descriptor is not associated with a valid user. .PP -Definition at line 593 of file modules.cpp. +Definition at line 585 of file modules.cpp. .PP .nf -594 { -595 return (socket < 65536 ? fd_ref_table[socket] : NULL); -596 } +586 { +587 return (socket < 65536 ? fd_ref_table[socket] : NULL); +588 } .fi .PP .SS "\fBModule\fP * Server::FindModule (\fBstd::string\fP name)\fC [virtual]\fP" @@ -714,21 +714,21 @@ This function finds a module by name. .PP You must provide the filename of the module. If the module cannot be found (is not loaded) the function will return NULL. .PP -Definition at line 822 of file modules.cpp. +Definition at line 795 of file modules.cpp. .PP References MODCOUNT, module_names, and modules. .PP .nf -823 { -824 for (int i = 0; i <= MODCOUNT; i++) -825 { -826 if (module_names[i] == name) -827 { -828 return modules[i]; -829 } -830 } -831 return NULL; -832 } +796 { +797 for (int i = 0; i <= MODCOUNT; i++) +798 { +799 if (module_names[i] == name) +800 { +801 return modules[i]; +802 } +803 } +804 return NULL; +805 } .fi .PP .SS "\fBuserrec\fP * Server::FindNick (\fBstd::string\fP nick)\fC [virtual]\fP" @@ -737,12 +737,12 @@ Attempts to look up a nick and return a pointer to it. .PP This function will return NULL if the nick does not exist. .PP -Definition at line 588 of file modules.cpp. +Definition at line 580 of file modules.cpp. .PP .nf -589 { -590 return Find(nick); -591 } +581 { +582 return Find(nick); +583 } .fi .PP .SS "\fBAdmin\fP Server::GetAdmin ()\fC [virtual]\fP" @@ -751,48 +751,48 @@ Returns the information of the server as returned by the /ADMIN command. .PP See the \fBAdmin\fP class for further information of the return value. The members \fBAdmin::Nick\fP, \fBAdmin::Email\fP and \fBAdmin::Name\fP contain the information for the server where the module is loaded. .PP -Definition at line 628 of file modules.cpp. +Definition at line 620 of file modules.cpp. .PP .nf -629 { -630 return Admin(getadminname(),getadminemail(),getadminnick()); -631 } +621 { +622 return Admin(getadminname(),getadminemail(),getadminnick()); +623 } .fi .PP .SS "\fBstd::string\fP Server::GetNetworkName ()\fC [virtual]\fP" .PP Returns the network name, global to all linked servers. .PP -Definition at line 618 of file modules.cpp. +Definition at line 610 of file modules.cpp. .PP .nf -619 { -620 return getnetworkname(); -621 } +611 { +612 return getnetworkname(); +613 } .fi .PP .SS "\fBstd::string\fP Server::GetServerDescription ()\fC [virtual]\fP" .PP Returns the server description string of the local server. .PP -Definition at line 623 of file modules.cpp. +Definition at line 615 of file modules.cpp. .PP .nf -624 { -625 return getserverdesc(); -626 } +616 { +617 return getserverdesc(); +618 } .fi .PP .SS "\fBstd::string\fP Server::GetServerName ()\fC [virtual]\fP" .PP Returns the server name of the server where the module is loaded. .PP -Definition at line 613 of file modules.cpp. +Definition at line 605 of file modules.cpp. .PP .nf -614 { -615 return getservername(); -616 } +606 { +607 return getservername(); +608 } .fi .PP .SS "\fBchanuserlist\fP Server::GetUsers (\fBchanrec\fP * chan)\fC [virtual]\fP" @@ -801,22 +801,22 @@ Fetches the userlist of a channel. .PP This function must be here and not a member of userrec or chanrec due to include constraints. .PP -Definition at line 453 of file modules.cpp. +Definition at line 445 of file modules.cpp. .PP References chanrec::GetUsers(), and list. .PP .nf -454 { -455 chanuserlist userl; -456 userl.clear(); -457 std::vector *list = chan->GetUsers(); -458 for (std::vector::iterator i = list->begin(); i != list->end(); i++) -459 { -460 char* o = *i; -461 userl.push_back((userrec*)o); -462 } -463 return userl; -464 } +446 { +447 chanuserlist userl; +448 userl.clear(); +449 std::vector *list = chan->GetUsers(); +450 for (std::vector::iterator i = list->begin(); i != list->end(); i++) +451 { +452 char* o = *i; +453 userl.push_back((userrec*)o); +454 } +455 return userl; +456 } .fi .PP .SS "bool Server::IsNick (\fBstd::string\fP nick)\fC [virtual]\fP" @@ -825,14 +825,14 @@ Returns true if a nick is valid. .PP Nicks for unregistered connections will return false. .PP -Definition at line 583 of file modules.cpp. +Definition at line 575 of file modules.cpp. .PP References isnick(). .PP .nf -584 { -585 return (isnick(nick.c_str()) != 0); -586 } +576 { +577 return (isnick(nick.c_str()) != 0); +578 } .fi .PP .SS "bool Server::IsOnChannel (\fBuserrec\fP * User, \fBchanrec\fP * Chan)\fC [virtual]\fP" @@ -841,14 +841,14 @@ Checks if a user is on a channel. .PP This function will return true or false to indicate if user 'User' is on channel 'Chan'. .PP -Definition at line 608 of file modules.cpp. +Definition at line 600 of file modules.cpp. .PP References has_channel(). .PP .nf -609 { -610 return has_channel(User,Chan); -611 } +601 { +602 return has_channel(User,Chan); +603 } .fi .PP .SS "bool Server::IsUlined (\fBstd::string\fP server)\fC [virtual]\fP" @@ -857,60 +857,60 @@ Returns true if the servername you give is ulined. .PP ULined servers have extra privilages. They are allowed to change nicknames on remote servers, change modes of clients which are on remote servers and set modes of channels where there are no channel operators for that channel on the ulined server, amongst other things. Ulined server data is also broadcast across the mesh at all times as opposed to selectively messaged in the case of normal servers, as many ulined server types (such as services) do not support meshed links and must operate in this manner. .PP -Definition at line 475 of file modules.cpp. +Definition at line 467 of file modules.cpp. .PP References is_uline(). .PP .nf -476 { -477 return is_uline(server.c_str()); -478 } +468 { +469 return is_uline(server.c_str()); +470 } .fi .PP .SS "bool Server::IsValidMask (\fBstd::string\fP mask)\fC [virtual]\fP" .PP Returns true if a nick!ident string is correctly formatted, false if otherwise. .PP -Definition at line 793 of file modules.cpp. +Definition at line 766 of file modules.cpp. .PP .nf -794 { -795 const char* dest = mask.c_str(); -796 if (strchr(dest,'!')==0) -797 return false; -798 if (strchr(dest,'@')==0) -799 return false; -800 for (unsigned int i = 0; i < strlen(dest); i++) -801 if (dest[i] < 32) -802 return false; -803 for (unsigned int i = 0; i < strlen(dest); i++) -804 if (dest[i] > 126) -805 return false; -806 unsigned int c = 0; -807 for (unsigned int i = 0; i < strlen(dest); i++) -808 if (dest[i] == '!') -809 c++; -810 if (c>1) -811 return false; -812 c = 0; -813 for (unsigned int i = 0; i < strlen(dest); i++) -814 if (dest[i] == '@') -815 c++; -816 if (c>1) -817 return false; -818 -819 return true; -820 } +767 { +768 const char* dest = mask.c_str(); +769 if (strchr(dest,'!')==0) +770 return false; +771 if (strchr(dest,'@')==0) +772 return false; +773 for (unsigned int i = 0; i < strlen(dest); i++) +774 if (dest[i] < 32) +775 return false; +776 for (unsigned int i = 0; i < strlen(dest); i++) +777 if (dest[i] > 126) +778 return false; +779 unsigned int c = 0; +780 for (unsigned int i = 0; i < strlen(dest); i++) +781 if (dest[i] == '!') +782 c++; +783 if (c>1) +784 return false; +785 c = 0; +786 for (unsigned int i = 0; i < strlen(dest); i++) +787 if (dest[i] == '@') +788 c++; +789 if (c>1) +790 return false; +791 +792 return true; +793 } .fi .PP .SS "bool Server::IsValidModuleCommand (\fBstd::string\fP commandname, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" .PP -Definition at line 485 of file modules.cpp. +Definition at line 477 of file modules.cpp. .PP .nf -486 { -487 return is_valid_cmd(commandname.c_str(), pcnt, user); -488 } +478 { +479 return is_valid_cmd(commandname.c_str(), pcnt, user); +480 } .fi .PP .SS "\fBchanrec\fP * Server::JoinUserToChannel (\fBuserrec\fP * user, \fBstd::string\fP cname, \fBstd::string\fP key)\fC [virtual]\fP" @@ -919,12 +919,12 @@ Forces a user to join a channel. .PP This is similar to svsjoin and can be used to implement redirection, etc. On success, the return value is a valid pointer to a chanrec* of the channel the user was joined to. On failure, the result is NULL. .PP -Definition at line 443 of file modules.cpp. +Definition at line 435 of file modules.cpp. .PP .nf -444 { -445 return add_channel(user,cname.c_str(),key.c_str(),false); -446 } +436 { +437 return add_channel(user,cname.c_str(),key.c_str(),false); +438 } .fi .PP .SS "void Server::Log (int level, \fBstd::string\fP s)\fC [virtual]\fP" @@ -933,12 +933,12 @@ Writes a log string. .PP This method writes a line of text to the log. If the level given is lower than the level given in the configuration, this command has no effect. .PP -Definition at line 490 of file modules.cpp. +Definition at line 482 of file modules.cpp. .PP .nf -491 { -492 log(level,'%s',s.c_str()); -493 } +483 { +484 log(level,'%s',s.c_str()); +485 } .fi .PP .SS "bool Server::MatchText (\fBstd::string\fP sliteral, \fBstd::string\fP spattern)\fC [virtual]\fP" @@ -947,15 +947,15 @@ Matches text against a glob pattern. .PP Uses the ircd's internal matching function to match string against a globbing pattern, e.g. *!*@*.com Returns true if the literal successfully matches the pattern, false if otherwise. .PP -Definition at line 430 of file modules.cpp. +Definition at line 422 of file modules.cpp. .PP .nf -431 { -432 char literal[MAXBUF],pattern[MAXBUF]; -433 strlcpy(literal,sliteral.c_str(),MAXBUF); -434 strlcpy(pattern,spattern.c_str(),MAXBUF); -435 return match(literal,pattern); -436 } +423 { +424 char literal[MAXBUF],pattern[MAXBUF]; +425 strlcpy(literal,sliteral.c_str(),MAXBUF); +426 strlcpy(pattern,spattern.c_str(),MAXBUF); +427 return match(literal,pattern); +428 } .fi .PP .SS "\fBchanrec\fP * Server::PartUserFromChannel (\fBuserrec\fP * user, \fBstd::string\fP cname, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -964,12 +964,12 @@ Forces a user to part a channel. .PP This is similar to svspart and can be used to implement redirection, etc. Although the return value of this function is a pointer to a channel record, the returned data is undefined and should not be read or written to. This behaviour may be changed in a future version. .PP -Definition at line 448 of file modules.cpp. +Definition at line 440 of file modules.cpp. .PP .nf -449 { -450 return del_channel(user,cname.c_str(),reason.c_str(),false); -451 } +441 { +442 return del_channel(user,cname.c_str(),reason.c_str(),false); +443 } .fi .PP .SS "bool Server::PseudoToUser (\fBuserrec\fP * alive, \fBuserrec\fP * zombie, \fBstd::string\fP message)\fC [virtual]\fP" @@ -978,39 +978,39 @@ This user takes one user, and switches their file descriptor with another user, .PP The user in 'alive' is booted off the server with the given message. The user referred to by 'zombie' should have previously been locked with Server::ZombifyUser, otherwise stale sockets and file descriptor leaks can occur. After this call, the pointer to alive will be invalid, and the pointer to zombie will be equivalent in effect to the old pointer to alive. .PP -Definition at line 708 of file modules.cpp. +Definition at line 681 of file modules.cpp. .PP References ucrec::channel, userrec::chans, userrec::ClearBuffer(), connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset. .PP .nf -709 { -710 zombie->fd = alive->fd; -711 alive->fd = FD_MAGIC_NUMBER; -712 alive->ClearBuffer(); -713 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); -714 kill_link(alive,message.c_str()); -715 fd_ref_table[zombie->fd] = zombie; -716 for (int i = 0; i != MAXCHANS; i++) -717 { -718 if (zombie->chans[i].channel != NULL) -719 { -720 if (zombie->chans[i].channel->name) -721 { -722 chanrec* Ptr = zombie->chans[i].channel; -723 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); -724 if (Ptr->topicset) -725 { -726 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); -727 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -728 } -729 userlist(zombie,Ptr); -730 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); -731 -732 } -733 } -734 } -735 return true; -736 } +682 { +683 zombie->fd = alive->fd; +684 alive->fd = FD_MAGIC_NUMBER; +685 alive->ClearBuffer(); +686 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); +687 kill_link(alive,message.c_str()); +688 fd_ref_table[zombie->fd] = zombie; +689 for (int i = 0; i != MAXCHANS; i++) +690 { +691 if (zombie->chans[i].channel != NULL) +692 { +693 if (zombie->chans[i].channel->name) +694 { +695 chanrec* Ptr = zombie->chans[i].channel; +696 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); +697 if (Ptr->topicset) +698 { +699 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); +700 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +701 } +702 userlist(zombie,Ptr); +703 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); +704 +705 } +706 } +707 } +708 return true; +709 } .fi .PP .SS "void Server::QuitUser (\fBuserrec\fP * user, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1023,23 +1023,23 @@ WARNING! .PP Once you call this function, userrec* user will immediately become INVALID. You MUST NOT write to, or read from this pointer after calling the QuitUser method UNDER ANY CIRCUMSTANCES! The best course of action after calling this method is to immediately bail from your handler. .PP -Definition at line 470 of file modules.cpp. +Definition at line 462 of file modules.cpp. .PP .nf -471 { -472 kill_link(user,reason.c_str()); -473 } +463 { +464 kill_link(user,reason.c_str()); +465 } .fi .PP .SS "void Server::RehashServer ()\fC [virtual]\fP" .PP -Definition at line 407 of file modules.cpp. +Definition at line 399 of file modules.cpp. .PP .nf -408 { -409 WriteOpers('*** Rehashing config file'); -410 ReadConfig(false,NULL); -411 } +400 { +401 WriteOpers('*** Rehashing config file'); +402 ReadConfig(false,NULL); +403 } .fi .PP .SS "void Server::Send (int Socket, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1048,12 +1048,12 @@ Sends a line of text down a TCP/IP socket. .PP This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required. .PP -Definition at line 505 of file modules.cpp. +Definition at line 497 of file modules.cpp. .PP .nf -506 { -507 Write(Socket,'%s',s.c_str()); -508 } +498 { +499 Write(Socket,'%s',s.c_str()); +500 } .fi .PP .SS "void Server::SendChannel (\fBuserrec\fP * User, \fBchanrec\fP * Channel, \fBstd::string\fP s, bool IncludeSender)\fC [virtual]\fP" @@ -1062,19 +1062,19 @@ Sends text from a user to a channel (mulicast). .PP This method writes a line of text to a channel, with the given user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in MODE (see RFC 1459). .PP -Definition at line 539 of file modules.cpp. +Definition at line 531 of file modules.cpp. .PP .nf -540 { -541 if (IncludeSender) -542 { -543 WriteChannel(Channel,User,'%s',s.c_str()); -544 } -545 else -546 { -547 ChanExceptSender(Channel,User,'%s',s.c_str()); -548 } -549 } +532 { +533 if (IncludeSender) +534 { +535 WriteChannel(Channel,User,'%s',s.c_str()); +536 } +537 else +538 { +539 ChanExceptSender(Channel,User,'%s',s.c_str()); +540 } +541 } .fi .PP .SS "void Server::SendChannelServerNotice (\fBstd::string\fP ServName, \fBchanrec\fP * Channel, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1083,12 +1083,12 @@ Writes text to a channel, but from a server, including all. .PP This can be used to send server notices to a group of users. .PP -Definition at line 534 of file modules.cpp. +Definition at line 526 of file modules.cpp. .PP .nf -535 { -536 WriteChannelWithServ((char*)ServName.c_str(), Channel, '%s', text.c_str()); -537 } +527 { +528 WriteChannelWithServ((char*)ServName.c_str(), Channel, '%s', text.c_str()); +529 } .fi .PP .SS "void Server::SendCommon (\fBuserrec\fP * User, \fBstd::string\fP text, bool IncludeSender)\fC [virtual]\fP" @@ -1097,19 +1097,19 @@ Sends text from a user to one or more channels (mulicast). .PP This method writes a line of text to all users which share a common channel with a given user, with the user's nick/ident/host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it is only sent to the other recipients, as seen in QUIT. .PP -Definition at line 556 of file modules.cpp. +Definition at line 548 of file modules.cpp. .PP .nf -557 { -558 if (IncludeSender) -559 { -560 WriteCommon(User,'%s',text.c_str()); -561 } -562 else -563 { -564 WriteCommonExcept(User,'%s',text.c_str()); -565 } -566 } +549 { +550 if (IncludeSender) +551 { +552 WriteCommon(User,'%s',text.c_str()); +553 } +554 else +555 { +556 WriteCommonExcept(User,'%s',text.c_str()); +557 } +558 } .fi .PP .SS "void Server::SendFrom (int Socket, \fBuserrec\fP * User, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1118,12 +1118,12 @@ Sends text from a user to a socket. .PP This method writes a line of text to an established socket, with the given user's nick/ident /host combination prepended, as used in PRIVSG etc commands (see RFC 1459) .PP -Definition at line 515 of file modules.cpp. +Definition at line 507 of file modules.cpp. .PP .nf -516 { -517 WriteFrom(Socket,User,'%s',s.c_str()); -518 } +508 { +509 WriteFrom(Socket,User,'%s',s.c_str()); +510 } .fi .PP .SS "void Server::SendMode (char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -1146,14 +1146,14 @@ Srv->SendMode(modes,3,user); .PP The modes will originate from the server where the command was issued, however responses (e.g. numerics) will be sent to the user you provide as the third parameter. You must be sure to get the number of parameters correct in the pcnt parameter otherwise you could leave your server in an unstable state! .PP -Definition at line 500 of file modules.cpp. +Definition at line 492 of file modules.cpp. .PP References server_mode(). .PP .nf -501 { -502 server_mode(parameters,pcnt,user); -503 } +493 { +494 server_mode(parameters,pcnt,user); +495 } .fi .PP .SS "void Server::SendOpers (\fBstd::string\fP s)\fC [virtual]\fP" @@ -1162,12 +1162,12 @@ Sends text to all opers. .PP This method sends a server notice to all opers with the usermode +s. .PP -Definition at line 425 of file modules.cpp. +Definition at line 417 of file modules.cpp. .PP .nf -426 { -427 WriteOpers('%s',s.c_str()); -428 } +418 { +419 WriteOpers('%s',s.c_str()); +420 } .fi .PP .SS "void Server::SendServ (int Socket, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1176,12 +1176,12 @@ Sends text from the server to a socket. .PP This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459) .PP -Definition at line 510 of file modules.cpp. +Definition at line 502 of file modules.cpp. .PP .nf -511 { -512 WriteServ(Socket,'%s',s.c_str()); -513 } +503 { +504 WriteServ(Socket,'%s',s.c_str()); +505 } .fi .PP .SS "void Server::SendTo (\fBuserrec\fP * Source, \fBuserrec\fP * Dest, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1198,23 +1198,23 @@ The format will become: .PP Which is useful for numerics and server notices to single users, etc. .PP -Definition at line 520 of file modules.cpp. +Definition at line 512 of file modules.cpp. .PP References connection::fd. .PP .nf -521 { -522 if (!Source) -523 { -524 // if source is NULL, then the message originates from the local server -525 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); -526 } -527 else -528 { -529 // otherwise it comes from the user specified -530 WriteTo(Source,Dest,'%s',s.c_str()); -531 } -532 } +513 { +514 if (!Source) +515 { +516 // if source is NULL, then the message originates from the local server +517 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); +518 } +519 else +520 { +521 // otherwise it comes from the user specified +522 WriteTo(Source,Dest,'%s',s.c_str()); +523 } +524 } .fi .PP .SS "void Server::SendToModeMask (\fBstd::string\fP modes, int flags, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1227,12 +1227,12 @@ Serv->SendToModeMask('xi', WM_OR, 'm00'); .PP Then the text 'm00' will be sent to all users with EITHER mode x or i. Conversely if you used WM_AND, the user must have both modes set to receive the message. .PP -Definition at line 438 of file modules.cpp. +Definition at line 430 of file modules.cpp. .PP .nf -439 { -440 WriteMode(modes.c_str(),flags,'%s',text.c_str()); -441 } +431 { +432 WriteMode(modes.c_str(),flags,'%s',text.c_str()); +433 } .fi .PP .SS "void Server::SendWallops (\fBuserrec\fP * User, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1241,12 +1241,12 @@ Sends a WALLOPS message. .PP This method writes a WALLOPS message to all users with the +w flag, originating from the specified user. .PP -Definition at line 568 of file modules.cpp. +Definition at line 560 of file modules.cpp. .PP .nf -569 { -570 WriteWallOps(User,false,'%s',text.c_str()); -571 } +561 { +562 WriteWallOps(User,false,'%s',text.c_str()); +563 } .fi .PP .SS "bool Server::UserToPseudo (\fBuserrec\fP * user, \fBstd::string\fP message)\fC [virtual]\fP" @@ -1255,40 +1255,21 @@ Remove a user's connection to the irc server, but leave their client in existenc .PP When you call this function, the user's file descriptor will be replaced with the value of FD_MAGIC_NUMBER and their old file descriptor will be closed. This idle client will remain until it is restored with a valid file descriptor, or is removed from IRC by an operator After this call, the pointer to user will be invalid. .PP -Definition at line 677 of file modules.cpp. +Definition at line 669 of file modules.cpp. .PP -References userrec::ClearBuffer(), DEBUG, connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident. +References userrec::ClearBuffer(), SocketEngine::DelFd(), connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident. .PP .nf -678 { -679 unsigned int old_fd = user->fd; -680 user->fd = FD_MAGIC_NUMBER; -681 user->ClearBuffer(); -682 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); -683 #ifdef USE_KQUEUE -684 struct kevent ke; -685 EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL); -686 int i = kevent(kq, &ke, 1, 0, 0, NULL); -687 if (i == -1) -688 { -689 log(DEBUG,'kqueue: Failed to remove user from queue!'); -690 } -691 #endif -692 #ifdef USE_EPOLL -693 struct epoll_event ev; -694 ev.events = EPOLLIN | EPOLLET; -695 ev.data.fd = old_fd; -696 int i = epoll_ctl(ep, EPOLL_CTL_DEL, old_fd, &ev); -697 if (i < 0) -698 { -699 log(DEBUG,'epoll: List deletion failure!'); -700 } -701 #endif -702 -703 shutdown(old_fd,2); -704 close(old_fd); -705 return true; -706 } +670 { +671 unsigned int old_fd = user->fd; +672 user->fd = FD_MAGIC_NUMBER; +673 user->ClearBuffer(); +674 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); +675 SE->DelFd(old_fd); +676 shutdown(old_fd,2); +677 close(old_fd); +678 return true; +679 } .fi .PP diff --git a/docs/man/man3/SocketEngine.3 b/docs/man/man3/SocketEngine.3 new file mode 100644 index 000000000..299dff3f4 --- /dev/null +++ b/docs/man/man3/SocketEngine.3 @@ -0,0 +1,345 @@ +.TH "SocketEngine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +SocketEngine \- The actual socketengine class presents the same interface on all operating systems, but its private members and internal behaviour should be treated as blackboxed, and vary from system to system and upon the config settings chosen by the server admin. + +.PP +.SH SYNOPSIS +.br +.PP +\fC#include \fP +.PP +.SS "Public Member Functions" + +.in +1c +.ti -1c +.RI "\fBSocketEngine\fP ()" +.br +.RI "\fIConstructor The constructor transparently initializes the socket engine which the ircd is using. \fP" +.ti -1c +.RI "\fB~SocketEngine\fP ()" +.br +.RI "\fIDestructor The destructor transparently tidies up any resources used by the socket engine. \fP" +.ti -1c +.RI "bool \fBAddFd\fP (int fd, bool readable, char type)" +.br +.RI "\fIAdd a file descriptor to the engine Use AddFd to add a file descriptor to the engine and have the socket engine monitor it. \fP" +.ti -1c +.RI "char \fBGetType\fP (int fd)" +.br +.RI "\fIReturns the type value for this file descriptor This function masks off the X_READBIT value so that the type of the socket can be obtained. \fP" +.ti -1c +.RI "bool \fBDelFd\fP (int fd)" +.br +.RI "\fIDelete a file descriptor f rom the engine This function call deletes a file descriptor from the engine, returning true if it succeeded and false if it failed. \fP" +.ti -1c +.RI "bool \fBWait\fP (std::vector< int > &fdlist)" +.br +.RI "\fIWaits for an event. \fP" +.ti -1c +.RI "\fBstd::string\fP \fBGetName\fP ()" +.br +.RI "\fIReturns the socket engines name This returns the name of the engine for use in /VERSION responses. \fP" +.in -1c +.SS "Private Attributes" + +.in +1c +.ti -1c +.RI "std::vector< int > \fBfds\fP" +.br +.ti -1c +.RI "int \fBEngineHandle\fP" +.br +.ti -1c +.RI "kevent \fBke_list\fP [65535]" +.br +.ti -1c +.RI "timespec \fBts\fP" +.br +.in -1c +.SH "Detailed Description" +.PP +The actual socketengine class presents the same interface on all operating systems, but its private members and internal behaviour should be treated as blackboxed, and vary from system to system and upon the config settings chosen by the server admin. + +The current version supports select, epoll and kqueue. +.PP +Definition at line 66 of file socketengine.h. +.SH "Constructor & Destructor Documentation" +.PP +.SS "SocketEngine::SocketEngine ()" +.PP +Constructor The constructor transparently initializes the socket engine which the ircd is using. +.PP +Please note that if there is a catastrophic failure (for example, you try and enable epoll on a 2.4 linux kernel) then this function may bail back to the shell. +.PP +Definition at line 35 of file socketengine.cpp. +.PP +References DEBUG, and EngineHandle. +.PP +.nf +36 { +37 log(DEBUG,'SocketEngine::SocketEngine()'); +38 #ifdef USE_EPOLL +39 EngineHandle = epoll_create(65535); +40 #endif +41 #ifdef USE_KQUEUE +42 EngineHandle = kqueue(); +43 #endif +44 } +.fi +.PP +.SS "SocketEngine::~SocketEngine ()" +.PP +Destructor The destructor transparently tidies up any resources used by the socket engine. +.PP +Definition at line 46 of file socketengine.cpp. +.PP +References DEBUG, and EngineHandle. +.PP +.nf +47 { +48 log(DEBUG,'SocketEngine::~SocketEngine()'); +49 #ifdef USE_EPOLL +50 close(EngineHandle); +51 #endif +52 #ifdef USE_KQUEUE +53 close(EngineHandle); +54 #endif +55 } +.fi +.PP +.SH "Member Function Documentation" +.PP +.SS "bool SocketEngine::AddFd (int fd, bool readable, char type)" +.PP +Add a file descriptor to the engine Use AddFd to add a file descriptor to the engine and have the socket engine monitor it. +.PP +You must provide a type (see the consts in \fBsocketengine.h\fP) and a boolean flag to indicate wether to watch this fd for read or write events (there is currently no need for support of both). +.PP +Definition at line 65 of file socketengine.cpp. +.PP +References DEBUG, EngineHandle, fds, ref, and X_READBIT. +.PP +Referenced by InspSocket::InspSocket(), and InspSocket::Poll(). +.PP +.nf +66 { +67 if ((fd < 0) || (fd > 65535)) +68 return false; +69 this->fds.push_back(fd); +70 ref[fd] = type; +71 if (readable) +72 { +73 log(DEBUG,'Set readbit'); +74 ref[fd] |= X_READBIT; +75 } +76 log(DEBUG,'Add socket %d',fd); +77 #ifdef USE_EPOLL +78 struct epoll_event ev; +79 log(DEBUG,'epoll: Add socket to events, ep=%d socket=%d',EngineHandle,fd); +80 readable ? ev.events = EPOLLIN | EPOLLET : ev.events = EPOLLOUT | EPOLLET; +81 ev.data.fd = fd; +82 int i = epoll_ctl(EngineHandle, EPOLL_CTL_ADD, fd, &ev); +83 if (i < 0) +84 { +85 log(DEBUG,'epoll: List insertion failure!'); +86 return false; +87 } +88 #endif +89 #ifdef USE_KQUEUE +90 struct kevent ke; +91 log(DEBUG,'kqueue: Add socket to events, kq=%d socket=%d',EngineHandle,fd); +92 EV_SET(&ke, fd, readable ? EVFILT_READ : EVFILT_WRITE, EV_ADD, 0, 0, NULL); +93 int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL); +94 if (i == -1) +95 { +96 log(DEBUG,'kqueue: List insertion failure!'); +97 return false; +98 } +99 #endif +100 return true; +101 } +.fi +.PP +.SS "bool SocketEngine::DelFd (int fd)" +.PP +Delete a file descriptor f rom the engine This function call deletes a file descriptor from the engine, returning true if it succeeded and false if it failed. +.PP +Definition at line 103 of file socketengine.cpp. +.PP +References DEBUG, EngineHandle, fds, ref, and X_READBIT. +.PP +Referenced by InspSocket::Poll(), and Server::UserToPseudo(). +.PP +.nf +104 { +105 log(DEBUG,'SocketEngine::DelFd(%d)',fd); +106 +107 if ((fd < 0) || (fd > 65535)) +108 return false; +109 +110 bool found = false; +111 for (std::vector::iterator i = fds.begin(); i != fds.end(); i++) +112 { +113 if (*i == fd) +114 { +115 fds.erase(i); +116 log(DEBUG,'Deleted fd %d',fd); +117 found = true; +118 break; +119 } +120 } +121 #ifdef USE_KQUEUE +122 struct kevent ke; +123 EV_SET(&ke, fd, ref[fd] && X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); +124 int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL); +125 if (i == -1) +126 { +127 log(DEBUG,'kqueue: Failed to remove socket from queue!'); +128 return false; +129 } +130 #endif +131 #ifdef USE_EPOLL +132 struct epoll_event ev; +133 ref[fd] && X_READBIT ? ev.events = EPOLLIN | EPOLLET : ev.events = EPOLLOUT | EPOLLET; +134 ev.data.fd = fd; +135 int i = epoll_ctl(EngineHandle, EPOLL_CTL_DEL, fd, &ev); +136 if (i < 0) +137 { +138 log(DEBUG,'epoll: List deletion failure!'); +139 return false; +140 } +141 #endif +142 ref[fd] = 0; +143 return found; +144 } +.fi +.PP +.SS "\fBstd::string\fP SocketEngine::GetName ()" +.PP +Returns the socket engines name This returns the name of the engine for use in /VERSION responses. +.PP +Definition at line 196 of file socketengine.cpp. +.PP +.nf +197 { +198 #ifdef USE_SELECT +199 return 'select'; +200 #endif +201 #ifdef USE_KQUEUE +202 return 'kqueue'; +203 #endif +204 #ifdef USE_EPOLL +205 return 'epoll'; +206 #endif +207 return 'misconfigured'; +208 } +.fi +.PP +.SS "char SocketEngine::GetType (int fd)" +.PP +Returns the type value for this file descriptor This function masks off the X_READBIT value so that the type of the socket can be obtained. +.PP +The core uses this to decide where to dispatch the event to. Please note that some engines such as select() have an upper limit of 1024 descriptors which may be active at any one time, where others such as kqueue have no practical limits at all. +.PP +Definition at line 57 of file socketengine.cpp. +.PP +References ref, and X_EMPTY_SLOT. +.PP +.nf +58 { +59 if ((fd < 0) || (fd > 65535)) +60 return X_EMPTY_SLOT; +61 /* Mask off the top bit used for 'read/write' state */ +62 return (ref[fd] & ~0x80); +63 } +.fi +.PP +.SS "bool SocketEngine::Wait (std::vector< int > & fdlist)" +.PP +Waits for an event. +.PP +Please note that this doesnt wait long, only a couple of milliseconds. It returns a list of active file descriptors in the vector fdlist which the core may then act upon. +.PP +Definition at line 146 of file socketengine.cpp. +.PP +References DEBUG, EngineHandle, fds, ke_list, ref, ts, and X_READBIT. +.PP +.nf +147 { +148 fdlist.clear(); +149 #ifdef USE_SELECT +150 FD_ZERO(&wfdset); +151 FD_ZERO(&rfdset); +152 timeval tval; +153 int sresult; +154 for (unsigned int a = 0; a < fds.size(); a++) +155 { +156 if (ref[fds[a]] & X_READBIT) +157 { +158 FD_SET (fds[a], &rfdset); +159 } +160 else +161 { +162 FD_SET (fds[a], &wfdset); +163 } +164 +165 } +166 tval.tv_sec = 0; +167 tval.tv_usec = 1000L; +168 sresult = select(FD_SETSIZE, &rfdset, &wfdset, NULL, &tval); +169 if (sresult > 0) +170 { +171 for (unsigned int a = 0; a < fds.size(); a++) +172 { +173 if ((FD_ISSET (fds[a], &rfdset)) || (FD_ISSET (fds[a], &wfdset))) +174 { +175 log(DEBUG,'...Adding active %d',fds[a]); +176 fdlist.push_back(fds[a]); +177 } +178 } +179 } +180 #endif +181 #ifdef USE_KQUEUE +182 ts.tv_nsec = 1000L; +183 ts.tv_sec = 0; +184 int i = kevent(EngineHandle, NULL, 0, &ke_list[0], 65535, &ts); +185 for (int j = 0; j < i; j++) +186 fdlist.push_back(ke_list[j].ident); +187 #endif +188 #ifdef USE_EPOLL +189 int i = epoll_wait(EngineHandle, events, 65535, 1); +190 for (int j = 0; j < i; j++) +191 fdlist.push_back(events[j].data.fd); +192 #endif +193 return true; +194 } +.fi +.PP +.SH "Member Data Documentation" +.PP +.SS "int \fBSocketEngine::EngineHandle\fP\fC [private]\fP" +.PP +Definition at line 69 of file socketengine.h. +.PP +Referenced by AddFd(), DelFd(), SocketEngine(), Wait(), and ~SocketEngine(). +.SS "std::vector \fBSocketEngine::fds\fP\fC [private]\fP" +.PP +Definition at line 68 of file socketengine.h. +.PP +Referenced by AddFd(), DelFd(), and Wait(). +.SS "struct kevent \fBSocketEngine::ke_list\fP[65535]\fC [private]\fP" +.PP +Definition at line 74 of file socketengine.h. +.PP +Referenced by Wait(). +.SS "struct timespec \fBSocketEngine::ts\fP\fC [private]\fP" +.PP +Definition at line 75 of file socketengine.h. +.PP +Referenced by Wait(). + +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/Version.3 b/docs/man/man3/Version.3 index 4cc7e69ab..049c18e95 100644 --- a/docs/man/man3/Version.3 +++ b/docs/man/man3/Version.3 @@ -1,4 +1,4 @@ -.TH "Version" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Version" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -49,10 +49,10 @@ Definition at line 113 of file modules.h. .PP .SS "Version::Version (int major, int minor, int revision, int build, int flags)" .PP -Definition at line 246 of file modules.cpp. +Definition at line 240 of file modules.cpp. .PP .nf -246 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; +240 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/WhoWasUser.3 b/docs/man/man3/WhoWasUser.3 index 14441a78c..49e8e61ea 100644 --- a/docs/man/man3/WhoWasUser.3 +++ b/docs/man/man3/WhoWasUser.3 @@ -1,4 +1,4 @@ -.TH "WhoWasUser" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "WhoWasUser" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/XLine.3 b/docs/man/man3/XLine.3 index 531448d3d..0c98f6fb8 100644 --- a/docs/man/man3/XLine.3 +++ b/docs/man/man3/XLine.3 @@ -1,4 +1,4 @@ -.TH "XLine" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "XLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ZLine.3 b/docs/man/man3/ZLine.3 index 887f4b3f7..c52b909bd 100644 --- a/docs/man/man3/ZLine.3 +++ b/docs/man/man3/ZLine.3 @@ -1,4 +1,4 @@ -.TH "ZLine" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ZLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/_home_.3 b/docs/man/man3/_home_.3 index 4e407fde9..eaef28c19 100644 --- a/docs/man/man3/_home_.3 +++ b/docs/man/man3/_home_.3 @@ -1,4 +1,4 @@ -.TH "/home/ Directory Reference" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/_home_brain_.3 b/docs/man/man3/_home_brain_.3 index de4a2293e..51ba923b1 100644 --- a/docs/man/man3/_home_brain_.3 +++ b/docs/man/man3/_home_brain_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/ Directory Reference" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/_home_brain_inspircd-cvs_.3 b/docs/man/man3/_home_brain_inspircd-cvs_.3 index 475459bfd..a70c8e255 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/inspircd-cvs/ Directory Reference" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/inspircd-cvs/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 index 840161aaa..19a4103cb 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/inspircd-cvs/inspircd/ Directory Reference" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/inspircd-cvs/inspircd/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 index 3f8773d1f..750f41485 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/inspircd-cvs/inspircd/include/ Directory Reference" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/inspircd-cvs/inspircd/include/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -40,6 +40,9 @@ .RI "file \fBsocket.h\fP" .br .ti -1c +.RI "file \fBsocketengine.h\fP" +.br +.ti -1c .RI "file \fBusers.h\fP" .br .ti -1c diff --git a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_src_.3 b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_src_.3 index 0a1c37a31..c79335d94 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_src_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_src_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/inspircd-cvs/inspircd/src/ Directory Reference" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/inspircd-cvs/inspircd/src/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -16,6 +16,9 @@ .RI "file \fBsocket.cpp\fP" .br .ti -1c +.RI "file \fBsocketengine.cpp\fP" +.br +.ti -1c .RI "file \fBusers.cpp\fP" .br .in -1c diff --git a/docs/man/man3/base.h.3 b/docs/man/man3/base.h.3 index 2ccad4081..b455c26f7 100644 --- a/docs/man/man3/base.h.3 +++ b/docs/man/man3/base.h.3 @@ -1,4 +1,4 @@ -.TH "base.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "base.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/channels.cpp.3 b/docs/man/man3/channels.cpp.3 index 43d39173b..710a729f5 100644 --- a/docs/man/man3/channels.cpp.3 +++ b/docs/man/man3/channels.cpp.3 @@ -1,4 +1,4 @@ -.TH "channels.cpp" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "channels.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -221,7 +221,7 @@ Referenced by Server::GetUsers(). Definition at line 81 of file channels.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 1032 of file modules.cpp. +Definition at line 1005 of file modules.cpp. .PP Referenced by Server::FindModule(). .SS "std::vector<\fBstd::string\fP> \fBmodule_names\fP" diff --git a/docs/man/man3/channels.h.3 b/docs/man/man3/channels.h.3 index 3ea8129b0..8665d0189 100644 --- a/docs/man/man3/channels.h.3 +++ b/docs/man/man3/channels.h.3 @@ -1,4 +1,4 @@ -.TH "channels.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "channels.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/chanrec.3 b/docs/man/man3/chanrec.3 index 35dc47ddf..f6e50a153 100644 --- a/docs/man/man3/chanrec.3 +++ b/docs/man/man3/chanrec.3 @@ -1,4 +1,4 @@ -.TH "chanrec" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "chanrec" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/classbase.3 b/docs/man/man3/classbase.3 index e8000432a..88d263294 100644 --- a/docs/man/man3/classbase.3 +++ b/docs/man/man3/classbase.3 @@ -1,4 +1,4 @@ -.TH "classbase" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "classbase" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/command_t.3 b/docs/man/man3/command_t.3 index 3856f66d6..a7338bde8 100644 --- a/docs/man/man3/command_t.3 +++ b/docs/man/man3/command_t.3 @@ -1,4 +1,4 @@ -.TH "command_t" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "command_t" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/commands.h.3 b/docs/man/man3/commands.h.3 index 643a4d95f..6655b2170 100644 --- a/docs/man/man3/commands.h.3 +++ b/docs/man/man3/commands.h.3 @@ -1,4 +1,4 @@ -.TH "commands.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "commands.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/connection.3 b/docs/man/man3/connection.3 index ca56a0899..36aaf10c6 100644 --- a/docs/man/man3/connection.3 +++ b/docs/man/man3/connection.3 @@ -1,4 +1,4 @@ -.TH "connection" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "connection" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/connection.h.3 b/docs/man/man3/connection.h.3 index 9ddbe7517..c53c68eb5 100644 --- a/docs/man/man3/connection.h.3 +++ b/docs/man/man3/connection.h.3 @@ -1,4 +1,4 @@ -.TH "connection.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "connection.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ctables.h.3 b/docs/man/man3/ctables.h.3 index 4579fc91f..6af542e0a 100644 --- a/docs/man/man3/ctables.h.3 +++ b/docs/man/man3/ctables.h.3 @@ -1,4 +1,4 @@ -.TH "ctables.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ctables.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/dns.h.3 b/docs/man/man3/dns.h.3 index fd601d288..e17b454c1 100644 --- a/docs/man/man3/dns.h.3 +++ b/docs/man/man3/dns.h.3 @@ -1,4 +1,4 @@ -.TH "dns.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "dns.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/dns_ip4list.3 b/docs/man/man3/dns_ip4list.3 index e857eff47..2d199c572 100644 --- a/docs/man/man3/dns_ip4list.3 +++ b/docs/man/man3/dns_ip4list.3 @@ -1,4 +1,4 @@ -.TH "dns_ip4list" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "dns_ip4list" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/hashcomp.h.3 b/docs/man/man3/hashcomp.h.3 index fc7453492..935f03185 100644 --- a/docs/man/man3/hashcomp.h.3 +++ b/docs/man/man3/hashcomp.h.3 @@ -1,4 +1,4 @@ -.TH "hashcomp.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "hashcomp.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/irc.3 b/docs/man/man3/irc.3 index 192b4a0ea..0e751fd80 100644 --- a/docs/man/man3/irc.3 +++ b/docs/man/man3/irc.3 @@ -1,4 +1,4 @@ -.TH "irc" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "irc" 3 "12 Dec 2005" "Version 1.0Betareleases" "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 e4d8d0720..3ae4dda7f 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 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "irc::InAddr_HashComp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/irc_StrHashComp.3 b/docs/man/man3/irc_StrHashComp.3 index dae5027b7..f5f557969 100644 --- a/docs/man/man3/irc_StrHashComp.3 +++ b/docs/man/man3/irc_StrHashComp.3 @@ -1,4 +1,4 @@ -.TH "irc::StrHashComp" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "irc::StrHashComp" 3 "12 Dec 2005" "Version 1.0Betareleases" "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 118de0f30..b67ec6d03 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 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "irc::irc_char_traits" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/message.h.3 b/docs/man/man3/message.h.3 index 1fde59aac..75ecb0ac3 100644 --- a/docs/man/man3/message.h.3 +++ b/docs/man/man3/message.h.3 @@ -1,4 +1,4 @@ -.TH "message.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "message.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/mode.h.3 b/docs/man/man3/mode.h.3 index 15a7a3541..02d665158 100644 --- a/docs/man/man3/mode.h.3 +++ b/docs/man/man3/mode.h.3 @@ -1,4 +1,4 @@ -.TH "mode.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "mode.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/modules.cpp.3 b/docs/man/man3/modules.cpp.3 index ea563e279..0abe14ea7 100644 --- a/docs/man/man3/modules.cpp.3 +++ b/docs/man/man3/modules.cpp.3 @@ -1,4 +1,4 @@ -.TH "modules.cpp" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "modules.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -60,6 +60,8 @@ modules.cpp \- .br \fC#include 'socket.h'\fP .br +\fC#include 'socketengine.h'\fP +.br .SS "Classes" @@ -128,6 +130,9 @@ modules.cpp \- .in +1c .ti -1c +.RI "\fBSocketEngine\fP * \fBSE\fP" +.br +.ti -1c .RI "int \fBMODCOUNT\fP = -1" .br .ti -1c @@ -261,164 +266,164 @@ modules.cpp \- .PP .SS "typedef nspace::hash_map, \fBirc::InAddr_HashComp\fP> \fBaddress_cache\fP" .PP -Definition at line 123 of file modules.cpp. +Definition at line 117 of file modules.cpp. .SS "typedef nspace::hash_map<\fBstd::string\fP, \fBchanrec\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBchan_hash\fP" .PP -Definition at line 122 of file modules.cpp. +Definition at line 116 of file modules.cpp. .SS "typedef std::deque<\fBcommand_t\fP> \fBcommand_table\fP" .PP -Definition at line 125 of file modules.cpp. +Definition at line 119 of file modules.cpp. .SS "typedef std::vector<\fBExtMode\fP> \fBExtModeList\fP" .PP -Definition at line 151 of file modules.cpp. +Definition at line 145 of file modules.cpp. .SS "typedef ExtModeList::iterator \fBExtModeListIter\fP" .PP -Definition at line 152 of file modules.cpp. +Definition at line 146 of file modules.cpp. .SS "typedef nspace::hash_map<\fBstd::string\fP, \fBuserrec\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBuser_hash\fP" .PP -Definition at line 121 of file modules.cpp. +Definition at line 115 of file modules.cpp. .SS "typedef nspace::hash_map<\fBstd::string\fP, \fBWhoWasUser\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBwhowas_hash\fP" .PP -Definition at line 124 of file modules.cpp. +Definition at line 118 of file modules.cpp. .SH "Function Documentation" .PP .SS "bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off)" .PP -Definition at line 221 of file modules.cpp. +Definition at line 215 of file modules.cpp. .PP References EMode, and ModeDefined(). .PP Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode(). .PP .nf -222 { -223 if (ModeDefined(modechar,type)) { -224 return false; -225 } -226 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -227 return true; -228 } +216 { +217 if (ModeDefined(modechar,type)) { +218 return false; +219 } +220 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); +221 return true; +222 } .fi .PP .SS "std::vector<\fBircd_module\fP*> factory (255)" .PP .SS "bool ModeDefined (char modechar, int type)" .PP -Definition at line 158 of file modules.cpp. +Definition at line 152 of file modules.cpp. .PP References EMode. .PP Referenced by DoAddExtendedMode(). .PP .nf -159 { -160 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -161 { -162 if ((i->modechar == modechar) && (i->type == type)) -163 { -164 return true; -165 } -166 } -167 return false; -168 } +153 { +154 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +155 { +156 if ((i->modechar == modechar) && (i->type == type)) +157 { +158 return true; +159 } +160 } +161 return false; +162 } .fi .PP .SS "int ModeDefinedOff (char modechar, int type)" .PP -Definition at line 208 of file modules.cpp. +Definition at line 202 of file modules.cpp. .PP References EMode. .PP .nf -209 { -210 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -211 { -212 if ((i->modechar == modechar) && (i->type == type)) -213 { -214 return i->params_when_off; -215 } -216 } -217 return 0; -218 } +203 { +204 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +205 { +206 if ((i->modechar == modechar) && (i->type == type)) +207 { +208 return i->params_when_off; +209 } +210 } +211 return 0; +212 } .fi .PP .SS "int ModeDefinedOn (char modechar, int type)" .PP -Definition at line 195 of file modules.cpp. +Definition at line 189 of file modules.cpp. .PP References EMode. .PP .nf -196 { -197 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -198 { -199 if ((i->modechar == modechar) && (i->type == type)) -200 { -201 return i->params_when_on; -202 } -203 } -204 return 0; -205 } +190 { +191 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +192 { +193 if ((i->modechar == modechar) && (i->type == type)) +194 { +195 return i->params_when_on; +196 } +197 } +198 return 0; +199 } .fi .PP .SS "bool ModeDefinedOper (char modechar, int type)" .PP -Definition at line 182 of file modules.cpp. +Definition at line 176 of file modules.cpp. .PP References EMode. .PP .nf -183 { -184 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -185 { -186 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -187 { -188 return true; -189 } -190 } -191 return false; -192 } +177 { +178 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +179 { +180 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) +181 { +182 return true; +183 } +184 } +185 return false; +186 } .fi .PP .SS "bool ModeIsListMode (char modechar, int type)" .PP -Definition at line 170 of file modules.cpp. +Definition at line 164 of file modules.cpp. .PP References EMode. .PP .nf -171 { -172 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -173 { -174 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -175 { -176 return true; -177 } -178 } -179 return false; -180 } +165 { +166 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +167 { +168 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) +169 { +170 return true; +171 } +172 } +173 return false; +174 } .fi .PP .SS "void ModeMakeList (char modechar)" .PP -Definition at line 231 of file modules.cpp. +Definition at line 225 of file modules.cpp. .PP References EMode, and MT_CHANNEL. .PP Referenced by Server::AddExtendedListMode(). .PP .nf -232 { -233 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -234 { -235 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -236 { -237 i->list = true; -238 return; -239 } -240 } -241 return; -242 } +226 { +227 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +228 { +229 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) +230 { +231 i->list = true; +232 return; +233 } +234 } +235 return; +236 } .fi .PP .SS "std::vector<\fBModule\fP*> modules (255)" @@ -451,7 +456,7 @@ Referenced by Server::AddExtendedListMode(). .PP .SS "\fBExtModeList\fP \fBEMode\fP" .PP -Definition at line 155 of file modules.cpp. +Definition at line 149 of file modules.cpp. .PP Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). .SS "std::vector<\fBircd_module\fP*> factory" @@ -474,7 +479,7 @@ Referenced by ConfigReader::ConfigReader(). Definition at line 81 of file channels.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 1032 of file modules.cpp. +Definition at line 1005 of file modules.cpp. .SS "std::vector<\fBstd::string\fP> \fBmodule_names\fP" .PP .SS "std::vector<\fBInspSocket\fP*> \fBmodule_sockets\fP" @@ -504,6 +509,8 @@ Referenced by Server::AddSocket(), and Server::DelSocket(). .PP .SS "char \fBrules\fP[MAXBUF]" .PP +.SS "\fBSocketEngine\fP* \fBSE\fP" +.PP .SS "char \fBServerDesc\fP[MAXBUF]" .PP .SS "char \fBServerName\fP[MAXBUF]" diff --git a/docs/man/man3/modules.h.3 b/docs/man/man3/modules.h.3 index c6eb1ac55..928941c19 100644 --- a/docs/man/man3/modules.h.3 +++ b/docs/man/man3/modules.h.3 @@ -1,4 +1,4 @@ -.TH "modules.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "modules.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -262,7 +262,7 @@ log levels .PP Definition at line 23 of file modules.h. .PP -Referenced by Server::AddExtendedMode(), chanrec::AddUser(), chanrec::DelUser(), InspSocket::InspSocket(), chanrec::IsCustomModeSet(), InspSocket::Read(), userrec::ReadData(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), and Server::UserToPseudo(). +Referenced by Server::AddExtendedMode(), SocketEngine::AddFd(), chanrec::AddUser(), SocketEngine::DelFd(), chanrec::DelUser(), InspSocket::InspSocket(), chanrec::IsCustomModeSet(), InspSocket::Read(), userrec::ReadData(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), SocketEngine::SocketEngine(), SocketEngine::Wait(), and SocketEngine::~SocketEngine(). .SS "#define DEFAULT 30" .PP Definition at line 25 of file modules.h. diff --git a/docs/man/man3/nspace.3 b/docs/man/man3/nspace.3 index 6459e68a2..504564def 100644 --- a/docs/man/man3/nspace.3 +++ b/docs/man/man3/nspace.3 @@ -1,4 +1,4 @@ -.TH "nspace" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "nspace" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_hash_ in_addr _.3 b/docs/man/man3/nspace_hash_ in_addr _.3 index 2058787ef..9cf95474a 100644 --- a/docs/man/man3/nspace_hash_ in_addr _.3 +++ b/docs/man/man3/nspace_hash_ in_addr _.3 @@ -1,4 +1,4 @@ -.TH "nspace::hash< in_addr >" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "nspace::hash< in_addr >" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_hash_ string _.3 b/docs/man/man3/nspace_hash_ string _.3 index c9cd5e252..325a269ce 100644 --- a/docs/man/man3/nspace_hash_ string _.3 +++ b/docs/man/man3/nspace_hash_ string _.3 @@ -1,4 +1,4 @@ -.TH "nspace::hash< string >" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "nspace::hash< string >" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/socket.cpp.3 b/docs/man/man3/socket.cpp.3 index 136a95e21..a71385032 100644 --- a/docs/man/man3/socket.cpp.3 +++ b/docs/man/man3/socket.cpp.3 @@ -1,4 +1,4 @@ -.TH "socket.cpp" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "socket.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -44,11 +44,16 @@ socket.cpp \- .br \fC#include 'helperfuncs.h'\fP .br +\fC#include 'socketengine.h'\fP +.br .SS "Variables" .in +1c .ti -1c +.RI "\fBSocketEngine\fP * \fBSE\fP" +.br +.ti -1c .RI "FILE * \fBlog_file\fP" .br .ti -1c @@ -77,6 +82,8 @@ socket.cpp \- .PP .SS "int \fBopenSockfd\fP[MAXSOCKS]" .PP +.SS "\fBSocketEngine\fP* \fBSE\fP" +.PP .SS "time_t \fBTIME\fP" .PP .SS "bool \fBunlimitcore\fP" diff --git a/docs/man/man3/socket.h.3 b/docs/man/man3/socket.h.3 index bdb68566b..89e2a1c07 100644 --- a/docs/man/man3/socket.h.3 +++ b/docs/man/man3/socket.h.3 @@ -1,4 +1,4 @@ -.TH "socket.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "socket.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/socketengine.cpp.3 b/docs/man/man3/socketengine.cpp.3 new file mode 100644 index 000000000..3a6ac0550 --- /dev/null +++ b/docs/man/man3/socketengine.cpp.3 @@ -0,0 +1,38 @@ +.TH "socketengine.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +socketengine.cpp \- +.SH SYNOPSIS +.br +.PP +\fC#include 'inspircd_config.h'\fP +.br +\fC#include 'globals.h'\fP +.br +\fC#include 'inspircd.h'\fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include 'socketengine.h'\fP +.br + +.SS "Variables" + +.in +1c +.ti -1c +.RI "char \fBref\fP [65535]" +.br +.in -1c +.SH "Variable Documentation" +.PP +.SS "char \fBref\fP[65535]" +.PP +Definition at line 33 of file socketengine.cpp. +.PP +Referenced by SocketEngine::AddFd(), SocketEngine::DelFd(), SocketEngine::GetType(), and SocketEngine::Wait(). +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/socketengine.h.3 b/docs/man/man3/socketengine.h.3 new file mode 100644 index 000000000..7be4a00e5 --- /dev/null +++ b/docs/man/man3/socketengine.h.3 @@ -0,0 +1,92 @@ +.TH "socketengine.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +socketengine.h \- +.SH SYNOPSIS +.br +.PP +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include 'inspircd_config.h'\fP +.br +\fC#include 'globals.h'\fP +.br +\fC#include 'inspircd.h'\fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br + +.SS "Classes" + +.in +1c +.ti -1c +.RI "class \fBSocketEngine\fP" +.br +.RI "\fIThe actual socketengine class presents the same interface on all operating systems, but its private members and internal behaviour should be treated as blackboxed, and vary from system to system and upon the config settings chosen by the server admin. \fP" +.in -1c +.SS "Variables" + +.in +1c +.ti -1c +.RI "const char \fBX_EMPTY_SLOT\fP = 0" +.br +.RI "\fIEach of these values represents a socket type in our reference table (the reference table itself is only accessible to \fBsocketengine.cpp\fP). \fP" +.ti -1c +.RI "const char \fBX_LISTEN\fP = 1" +.br +.ti -1c +.RI "const char \fBX_ESTAB_CLIENT\fP = 2" +.br +.ti -1c +.RI "const char \fBX_ESTAB_MODULE\fP = 3" +.br +.ti -1c +.RI "const char \fBX_ESTAB_DNS\fP = 4" +.br +.ti -1c +.RI "const char \fBX_READBIT\fP = 0x80" +.br +.RI "\fITo indicate that a socket is readable, we mask its top bit with this X_READBIT value. \fP" +.in -1c +.SH "Variable Documentation" +.PP +.SS "const char \fBX_EMPTY_SLOT\fP = 0" +.PP +Each of these values represents a socket type in our reference table (the reference table itself is only accessible to \fBsocketengine.cpp\fP). +.PP +Definition at line 41 of file socketengine.h. +.PP +Referenced by SocketEngine::GetType(). +.SS "const char \fBX_ESTAB_CLIENT\fP = 2" +.PP +Definition at line 43 of file socketengine.h. +.SS "const char \fBX_ESTAB_DNS\fP = 4" +.PP +Definition at line 45 of file socketengine.h. +.SS "const char \fBX_ESTAB_MODULE\fP = 3" +.PP +Definition at line 44 of file socketengine.h. +.PP +Referenced by InspSocket::InspSocket(), and InspSocket::Poll(). +.SS "const char \fBX_LISTEN\fP = 1" +.PP +Definition at line 42 of file socketengine.h. +.SS "const char \fBX_READBIT\fP = 0x80" +.PP +To indicate that a socket is readable, we mask its top bit with this X_READBIT value. +.PP +The socket engine can handle two types of socket, readable and writeable (error sockets are dealt with when read() and write() return negative or zero values). +.PP +Definition at line 55 of file socketengine.h. +.PP +Referenced by SocketEngine::AddFd(), SocketEngine::DelFd(), and SocketEngine::Wait(). +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/std.3 b/docs/man/man3/std.3 index 03a3fe2ea..8d5eaebc2 100644 --- a/docs/man/man3/std.3 +++ b/docs/man/man3/std.3 @@ -1,4 +1,4 @@ -.TH "std" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "std" 3 "12 Dec 2005" "Version 1.0Betareleases" "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 6dd1f9220..89807e969 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 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "std::char_traits" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ucrec.3 b/docs/man/man3/ucrec.3 index fdf24381c..5e07b9214 100644 --- a/docs/man/man3/ucrec.3 +++ b/docs/man/man3/ucrec.3 @@ -1,4 +1,4 @@ -.TH "ucrec" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ucrec" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/userrec.3 b/docs/man/man3/userrec.3 index 38c346b28..8fc0aa420 100644 --- a/docs/man/man3/userrec.3 +++ b/docs/man/man3/userrec.3 @@ -1,4 +1,4 @@ -.TH "userrec" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "userrec" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/users.cpp.3 b/docs/man/man3/users.cpp.3 index 392e603cc..520931d6d 100644 --- a/docs/man/man3/users.cpp.3 +++ b/docs/man/man3/users.cpp.3 @@ -1,4 +1,4 @@ -.TH "users.cpp" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "users.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/users.h.3 b/docs/man/man3/users.h.3 index ec37125ae..f8eb8ac82 100644 --- a/docs/man/man3/users.h.3 +++ b/docs/man/man3/users.h.3 @@ -1,4 +1,4 @@ -.TH "users.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "users.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/xline.h.3 b/docs/man/man3/xline.h.3 index b2eaee5de..1ee046631 100644 --- a/docs/man/man3/xline.h.3 +++ b/docs/man/man3/xline.h.3 @@ -1,4 +1,4 @@ -.TH "xline.h" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "xline.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index bd438814f..e74a92089 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -41,6 +41,7 @@ QLineQLine class RequestUnicast message directed at a given module ServerAllows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers + SocketEngineThe actual socketengine class presents the same interface on all operating systems, but its private members and internal behaviour should be treated as blackboxed, and vary from system to system and upon the config settings chosen by the server admin irc::StrHashCompThis class returns true if two strings match ucrecHolds a user's modes on a channel This class associates a users privilages with a channel by creating a pointer link between a userrec and chanrec class userrecHolds all information about a user This class stores all information about a user connected to the irc server @@ -49,7 +50,7 @@ XLineXLine is the base class for ban lines such as G lines and K lines ZLineZLine class -
Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index 3a161dafb..5a410a39a 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -88,7 +88,7 @@ 00161 00162 #endif 00163 -
Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index 775e3da7e..16588bd44 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -76,7 +76,7 @@ This graph shows which files directly or indirectly include this file:

26 of file base.h. -
Generated on Fri Dec 9 20:20:04 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index 2d0f5739d..6306fdb45 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -225,7 +225,7 @@ 00216 { 00217 return &internal_userlist; 00218 } -
Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index 5d78dcae2..e9048af4e 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -430,7 +430,7 @@ Referenced by chanrec::Get

-Referenced by Server::GetUsers(). +Referenced by Server::GetUsers().

@@ -526,9 +526,9 @@ Definition at line 81

-Definition at line 1032 of file modules.cpp. +Definition at line 1005 of file modules.cpp.

-Referenced by Server::FindModule(). +Referenced by Server::FindModule().

@@ -553,7 +553,7 @@ Referenced by Server::FindM

-Referenced by Server::FindModule(). +Referenced by Server::FindModule().

@@ -578,7 +578,7 @@ Referenced by Server::FindM

-Referenced by Server::FindModule(). +Referenced by Server::FindModule().

@@ -930,7 +930,7 @@ Referenced by userrec::userre -


Generated on Fri Dec 9 20:20:05 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index 26d81b34d..324652b3b 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -148,7 +148,7 @@ 00257 00258 #endif 00259 -
Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index 2374c6875..1d85b92c7 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -449,7 +449,7 @@ Holds a complete invite list. Definition at line 95 of file channels.h. -
Generated on Fri Dec 9 20:20:06 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index f00b7f227..095fa7680 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 2dba3923c..6632e2016 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -81,7 +81,7 @@ Definition at line 125 of

-Definition at line 250 of file modules.cpp.

00250 : Name(name), Email(email), Nick(nick) { };
+Definition at line 244 of file modules.cpp.
00244 : Name(name), Email(email), Nick(nick) { };
 

@@ -165,7 +165,7 @@ Definition at line 128 of


The documentation for this class was generated from the following files: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 6f4b5a8c3..c66067064 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index a485356af..b41bd32c8 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classBoolSet-members.html b/docs/module-doc/classBoolSet-members.html index 9a39a66b9..986778b33 100644 --- a/docs/module-doc/classBoolSet-members.html +++ b/docs/module-doc/classBoolSet-members.html @@ -17,7 +17,7 @@ operator|(BoolSet other)BoolSet Set(int number)BoolSet Unset(int number)BoolSet -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classBoolSet.html b/docs/module-doc/classBoolSet.html index 5cf4610b1..56a7b8aa4 100644 --- a/docs/module-doc/classBoolSet.html +++ b/docs/module-doc/classBoolSet.html @@ -405,7 +405,7 @@ Definition at line 106 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index ad8fb8962..459e786fb 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 6a8a95db9..fee5b1e48 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -102,16 +102,16 @@ Default constructor.

This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure.

-Definition at line 834 of file modules.cpp. -

-References cache, CONF_FILE_NOT_FOUND, error, errorlog, include_stack, and readerror.

00835 {
-00836         include_stack.clear();
-00837         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00838         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00839         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
-00840         if (!this->readerror)
-00841                 this->error = CONF_FILE_NOT_FOUND;
-00842 }
+Definition at line 807 of file modules.cpp.
+

+References cache, CONF_FILE_NOT_FOUND, error, errorlog, include_stack, and readerror.

00808 {
+00809         include_stack.clear();
+00810         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00811         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00812         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
+00813         if (!this->readerror)
+00814                 this->error = CONF_FILE_NOT_FOUND;
+00815 }
 

@@ -146,15 +146,15 @@ Overloaded constructor.

This constructor initialises the ConfigReader class to read a user-specified config file

-Definition at line 854 of file modules.cpp. +Definition at line 827 of file modules.cpp.

-References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror.

00855 {
-00856         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00857         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00858         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
-00859         if (!this->readerror)
-00860                 this->error = CONF_FILE_NOT_FOUND;
-00861 };
+References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror.
00828 {
+00829         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00830         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00831         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
+00832         if (!this->readerror)
+00833                 this->error = CONF_FILE_NOT_FOUND;
+00834 };
 

@@ -188,14 +188,14 @@ Default destructor.

This method destroys the ConfigReader class.

-Definition at line 845 of file modules.cpp. +Definition at line 818 of file modules.cpp.

-References cache, and errorlog.

00846 {
-00847         if (this->cache)
-00848                 delete this->cache;
-00849         if (this->errorlog)
-00850                 delete this->errorlog;
-00851 }
+References cache, and errorlog.
00819 {
+00820         if (this->cache)
+00821                 delete this->cache;
+00822         if (this->errorlog)
+00823                 delete this->errorlog;
+00824 }
 

@@ -240,38 +240,38 @@ Dumps the list of errors in a config file to an output location.

If bail is true, then the program will abort. If bail is false and user points to a valid user record, the error report will be spooled to the given user by means of NOTICE. if bool is false AND user is false, the error report will be spooled to all opers by means of a NOTICE to all opers.

-Definition at line 932 of file modules.cpp. -

-References errorlog, connection::fd, and userrec::nick.

00933 {
-00934         if (bail)
-00935         {
-00936                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
-00937                 exit(0);
-00938         }
-00939         else
-00940         {
-00941                 char dataline[1024];
-00942                 if (user)
-00943                 {
-00944                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
-00945                         while (!errorlog->eof())
-00946                         {
-00947                                 errorlog->getline(dataline,1024);
-00948                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
-00949                         }
-00950                 }
-00951                 else
-00952                 {
-00953                         WriteOpers("There were errors in the configuration file:",user->nick);
-00954                         while (!errorlog->eof())
-00955                         {
-00956                                 errorlog->getline(dataline,1024);
-00957                                 WriteOpers(dataline);
-00958                         }
-00959                 }
-00960                 return;
-00961         }
-00962 }
+Definition at line 905 of file modules.cpp.
+

+References errorlog, connection::fd, and userrec::nick.

00906 {
+00907         if (bail)
+00908         {
+00909                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
+00910                 exit(0);
+00911         }
+00912         else
+00913         {
+00914                 char dataline[1024];
+00915                 if (user)
+00916                 {
+00917                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
+00918                         while (!errorlog->eof())
+00919                         {
+00920                                 errorlog->getline(dataline,1024);
+00921                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
+00922                         }
+00923                 }
+00924                 else
+00925                 {
+00926                         WriteOpers("There were errors in the configuration file:",user->nick);
+00927                         while (!errorlog->eof())
+00928                         {
+00929                                 errorlog->getline(dataline,1024);
+00930                                 WriteOpers(dataline);
+00931                         }
+00932                 }
+00933                 return;
+00934         }
+00935 }
 

@@ -306,11 +306,11 @@ Counts the number of times a given tag appears in the config file.

This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of ConfigReader::ReadValue to loop through all copies of a multiple instance tag.

-Definition at line 965 of file modules.cpp. +Definition at line 938 of file modules.cpp.

-References cache.

00966 {
-00967         return EnumConf(cache,tag.c_str());
-00968 }
+References cache.
00939 {
+00940         return EnumConf(cache,tag.c_str());
+00941 }
 

@@ -354,11 +354,11 @@ Returns the number of items within a tag.

For example if the tag was <test tag="blah" data="foo"> then this function would return 2. Spaces and newlines both qualify as valid seperators between values.

-Definition at line 970 of file modules.cpp. +Definition at line 943 of file modules.cpp.

-References cache.

00971 {
-00972         return EnumValues(cache, tag.c_str(), index);
-00973 }
+References cache.
00944 {
+00945         return EnumValues(cache, tag.c_str(), index);
+00946 }
 

@@ -392,13 +392,13 @@ Returns the last error to occur.

Valid errors can be found by looking in modules.h. Any nonzero value indicates an error condition. A call to GetError() resets the error flag back to 0.

-Definition at line 925 of file modules.cpp. +Definition at line 898 of file modules.cpp.

-References error.

00926 {
-00927         long olderr = this->error;
-00928         this->error = 0;
-00929         return olderr;
-00930 }
+References error.
00899 {
+00900         long olderr = this->error;
+00901         this->error = 0;
+00902         return olderr;
+00903 }
 

@@ -448,23 +448,23 @@ Retrieves a boolean value from the config file.

This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values "1", "yes" and "true" in the config file count as true to ReadFlag, and any other value counts as false.

-Definition at line 879 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error.

00880 {
-00881         char val[MAXBUF];
-00882         char t[MAXBUF];
-00883         char n[MAXBUF];
-00884         strlcpy(t,tag.c_str(),MAXBUF);
-00885         strlcpy(n,name.c_str(),MAXBUF);
-00886         int res = ReadConf(cache,t,n,index,val);
-00887         if (!res)
-00888         {
-00889                 this->error = CONF_VALUE_NOT_FOUND;
-00890                 return false;
-00891         }
-00892         std::string s = val;
-00893         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
-00894 }
+Definition at line 852 of file modules.cpp.
+

+References cache, CONF_VALUE_NOT_FOUND, and error.

00853 {
+00854         char val[MAXBUF];
+00855         char t[MAXBUF];
+00856         char n[MAXBUF];
+00857         strlcpy(t,tag.c_str(),MAXBUF);
+00858         strlcpy(n,name.c_str(),MAXBUF);
+00859         int res = ReadConf(cache,t,n,index,val);
+00860         if (!res)
+00861         {
+00862                 this->error = CONF_VALUE_NOT_FOUND;
+00863                 return false;
+00864         }
+00865         std::string s = val;
+00866         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
+00867 }
 

@@ -520,35 +520,35 @@ Retrieves an integer value from the config file.

This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to GetError() will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and GetError() will return CONF_NOT_UNSIGNED

-Definition at line 896 of file modules.cpp. -

-References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error.

00897 {
-00898         char val[MAXBUF];
-00899         char t[MAXBUF];
-00900         char n[MAXBUF];
-00901         strlcpy(t,tag.c_str(),MAXBUF);
-00902         strlcpy(n,name.c_str(),MAXBUF);
-00903         int res = ReadConf(cache,t,n,index,val);
-00904         if (!res)
-00905         {
-00906                 this->error = CONF_VALUE_NOT_FOUND;
-00907                 return 0;
-00908         }
-00909         for (unsigned int i = 0; i < strlen(val); i++)
-00910         {
-00911                 if (!isdigit(val[i]))
-00912                 {
-00913                         this->error = CONF_NOT_A_NUMBER;
-00914                         return 0;
-00915                 }
-00916         }
-00917         if ((needs_unsigned) && (atoi(val)<0))
-00918         {
-00919                 this->error = CONF_NOT_UNSIGNED;
-00920                 return 0;
-00921         }
-00922         return atoi(val);
-00923 }
+Definition at line 869 of file modules.cpp.
+

+References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error.

00870 {
+00871         char val[MAXBUF];
+00872         char t[MAXBUF];
+00873         char n[MAXBUF];
+00874         strlcpy(t,tag.c_str(),MAXBUF);
+00875         strlcpy(n,name.c_str(),MAXBUF);
+00876         int res = ReadConf(cache,t,n,index,val);
+00877         if (!res)
+00878         {
+00879                 this->error = CONF_VALUE_NOT_FOUND;
+00880                 return 0;
+00881         }
+00882         for (unsigned int i = 0; i < strlen(val); i++)
+00883         {
+00884                 if (!isdigit(val[i]))
+00885                 {
+00886                         this->error = CONF_NOT_A_NUMBER;
+00887                         return 0;
+00888                 }
+00889         }
+00890         if ((needs_unsigned) && (atoi(val)<0))
+00891         {
+00892                 this->error = CONF_NOT_UNSIGNED;
+00893                 return 0;
+00894         }
+00895         return atoi(val);
+00896 }
 

@@ -598,22 +598,22 @@ Retrieves a value from the config file.

This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve.

-Definition at line 863 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error.

00864 {
-00865         char val[MAXBUF];
-00866         char t[MAXBUF];
-00867         char n[MAXBUF];
-00868         strlcpy(t,tag.c_str(),MAXBUF);
-00869         strlcpy(n,name.c_str(),MAXBUF);
-00870         int res = ReadConf(cache,t,n,index,val);
-00871         if (!res)
-00872         {
-00873                 this->error = CONF_VALUE_NOT_FOUND;
-00874                 return "";
-00875         }
-00876         return val;
-00877 }
+Definition at line 836 of file modules.cpp.
+

+References cache, CONF_VALUE_NOT_FOUND, and error.

00837 {
+00838         char val[MAXBUF];
+00839         char t[MAXBUF];
+00840         char n[MAXBUF];
+00841         strlcpy(t,tag.c_str(),MAXBUF);
+00842         strlcpy(n,name.c_str(),MAXBUF);
+00843         int res = ReadConf(cache,t,n,index,val);
+00844         if (!res)
+00845         {
+00846                 this->error = CONF_VALUE_NOT_FOUND;
+00847                 return "";
+00848         }
+00849         return val;
+00850 }
 

@@ -647,11 +647,11 @@ Returns true if a config file is valid.

This method is partially implemented and will only return false if the config file does not exist or could not be opened.

-Definition at line 975 of file modules.cpp. +Definition at line 948 of file modules.cpp.

-References readerror.

00976 {
-00977         return this->readerror;
-00978 }
+References readerror.
00949 {
+00950         return this->readerror;
+00951 }
 

@@ -684,7 +684,7 @@ It will contain a pointer to the configuration file data with unneeded data (suc

Definition at line 1518 of file modules.h.

-Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader(). +Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader().

@@ -711,7 +711,7 @@ Referenced by ConfigReader(

Definition at line 1523 of file modules.h.

-Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue(). +Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue().

@@ -738,7 +738,7 @@ Referenced by ConfigReader(

Definition at line 1519 of file modules.h.

-Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader(). +Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader().

@@ -767,12 +767,12 @@ Used to store errors.

Definition at line 1522 of file modules.h.

-Referenced by ConfigReader(), and Verify(). +Referenced by ConfigReader(), and Verify().


The documentation for this class was generated from the following files: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index ee728b9b1..d467d32ed 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index ad1f05e34..d37f5e875 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -363,7 +363,7 @@ Definition at line 53 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classDNS-members.html b/docs/module-doc/classDNS-members.html index 168801c8c..dda275b64 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -28,6 +28,7 @@ GetResult()DNS GetResultIP()DNS HasResult()DNS + HasResult(int fd)DNS localbufDNS [private] myfdDNS [private] resultDNS [private] @@ -35,7 +36,7 @@ SetNS(std::string dnsserver)DNS tDNS [private] ~DNS()DNS -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index 56c81e054..11214801e 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -32,6 +32,9 @@ Collaboration diagram for DNS:

bool HasResult ()  This method will return true when the lookup is completed.
+bool HasResult (int fd) + + This method will return true if the lookup's fd matches the one provided.
std::string GetResult ()  This method returns the result of your query as a string, depending upon wether you called DNS::ReverseLookup() or DNS::ForwardLookup.
@@ -709,6 +712,36 @@ This method returns the result of your query as a string, depending upon wether +

+ + + +

+ + + + +
+ + + + + + + + + +
bool DNS::HasResult int  fd  ) 
+
+ + + + @@ -928,7 +961,7 @@ Definition at line 41 of file
+   + + +

+This method will return true if the lookup's fd matches the one provided.


The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classELine-members.html b/docs/module-doc/classELine-members.html index a89e471aa..9d6c2aeb9 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index 5a9afa2b1..7a46d4c39 100644 --- a/docs/module-doc/classELine.html +++ b/docs/module-doc/classELine.html @@ -59,7 +59,7 @@ Definition at line 88 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classEvent-members.html b/docs/module-doc/classEvent-members.html index bf5d0ea7d..4bc7a9ebf 100644 --- a/docs/module-doc/classEvent-members.html +++ b/docs/module-doc/classEvent-members.html @@ -18,7 +18,7 @@ sourceEvent [protected] ~classbase()classbase [inline] ~ModuleMessage()ModuleMessage [inline, virtual] -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classEvent.html b/docs/module-doc/classEvent.html index cba0e76e8..882fb8422 100644 --- a/docs/module-doc/classEvent.html +++ b/docs/module-doc/classEvent.html @@ -102,7 +102,7 @@ Create a new Event.

-Definition at line 281 of file modules.cpp.

00281 : data(anydata), source(src), id(eventid) { };
+Definition at line 275 of file modules.cpp.
00275 : data(anydata), source(src), id(eventid) { };
 

@@ -137,11 +137,11 @@ Get the Event data.

-Definition at line 283 of file modules.cpp. +Definition at line 277 of file modules.cpp.

-References data.

00284 {
-00285         return this->data;
-00286 }
+References data.
00278 {
+00279         return this->data;
+00280 }
 

@@ -175,11 +175,11 @@ Get the event ID.

Use this to determine the event type for safe casting of the data

-Definition at line 299 of file modules.cpp. +Definition at line 293 of file modules.cpp.

-References id.

00300 {
-00301         return this->id;
-00302 }
+References id.
00294 {
+00295         return this->id;
+00296 }
 

@@ -213,11 +213,11 @@ Get the event Source.

-Definition at line 288 of file modules.cpp. +Definition at line 282 of file modules.cpp.

-References source.

00289 {
-00290         return this->source;
-00291 }
+References source.
00283 {
+00284         return this->source;
+00285 }
 

@@ -253,12 +253,12 @@ The return result of an Event::S

Implements ModuleMessage.

-Definition at line 293 of file modules.cpp. +Definition at line 287 of file modules.cpp.

-References FOREACH_MOD.

00294 {
-00295         FOREACH_MOD OnEvent(this);
-00296         return NULL;
-00297 }
+References FOREACH_MOD.
00288 {
+00289         FOREACH_MOD OnEvent(this);
+00290         return NULL;
+00291 }
 

@@ -291,7 +291,7 @@ This member holds a pointer to arbitary data set by the emitter of the message.

Definition at line 202 of file modules.h.

-Referenced by GetData(). +Referenced by GetData().

@@ -320,7 +320,7 @@ This is arbitary text which should be used to distinguish one type of event from

Definition at line 211 of file modules.h.

-Referenced by GetEventID(). +Referenced by GetEventID().

@@ -349,12 +349,12 @@ This is a pointer to the sender of the message, which can be used to directly tr

Definition at line 206 of file modules.h.

-Referenced by GetSource(). +Referenced by GetSource().


The documentation for this class was generated from the following files: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index fda27de54..23065b8dd 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index c49acaf37..e57ec8a7c 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index 21efddd55..93e0a3037 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index c643babee..55db0a3df 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -37,7 +37,7 @@

-Definition at line 139 of file modules.cpp.


Constructor & Destructor Documentation

+Definition at line 133 of file modules.cpp.

Constructor & Destructor Documentation

@@ -92,7 +92,7 @@ Definition at line 139

-Definition at line 148 of file modules.cpp.

00148 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
+Definition at line 142 of file modules.cpp.
00142 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
 

@@ -121,7 +121,7 @@ Definition at line 148

-Definition at line 147 of file modules.cpp. +Definition at line 141 of file modules.cpp.

@@ -146,7 +146,7 @@ Definition at line 147

-Definition at line 142 of file modules.cpp. +Definition at line 136 of file modules.cpp.

@@ -171,7 +171,7 @@ Definition at line 142

-Definition at line 144 of file modules.cpp. +Definition at line 138 of file modules.cpp.

@@ -196,7 +196,7 @@ Definition at line 144

-Definition at line 146 of file modules.cpp. +Definition at line 140 of file modules.cpp.

@@ -221,7 +221,7 @@ Definition at line 146

-Definition at line 145 of file modules.cpp. +Definition at line 139 of file modules.cpp.

@@ -246,12 +246,12 @@ Definition at line 145

-Definition at line 143 of file modules.cpp. +Definition at line 137 of file modules.cpp.


The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExtensible-members.html b/docs/module-doc/classExtensible-members.html index fb1606799..13c5133d7 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -14,7 +14,7 @@ GetExtList(std::deque< std::string > &list)Extensible Shrink(std::string key)Extensible ~classbase()classbase [inline] -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index 0deebba1a..051166e14 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -236,7 +236,7 @@ Definition at line 55 of fil
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index da64ad375..c3082972b 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index afa717b3b..26db36d52 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -82,8 +82,8 @@ Default constructor.

This method does not load any file into memory, you must use the LoadFile method after constructing the class this way.

-Definition at line 988 of file modules.cpp.

00989 {
-00990 }
+Definition at line 961 of file modules.cpp.
00962 {
+00963 }
 

@@ -118,13 +118,13 @@ Secondary constructor.

This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, FileReader::FileSize returns 0.

-Definition at line 981 of file modules.cpp. +Definition at line 954 of file modules.cpp.

-References fc.

00982 {
-00983         file_cache c;
-00984         readfile(c,filename.c_str());
-00985         this->fc = c;
-00986 }
+References fc.
00955 {
+00956         file_cache c;
+00957         readfile(c,filename.c_str());
+00958         this->fc = c;
+00959 }
 

@@ -158,8 +158,8 @@ Default destructor.

This deletes the memory allocated to the file.

-Definition at line 1000 of file modules.cpp.

01001 {
-01002 }
+Definition at line 973 of file modules.cpp.
00974 {
+00975 }
 

@@ -194,18 +194,18 @@ Returns true if the file exists This function will return false if the file coul

-Definition at line 1004 of file modules.cpp. -

-References fc.

01005 {
-01006         if (fc.size() == 0)
-01007         {
-01008                 return(false);
-01009         }
-01010         else
-01011         {
-01012                 return(true);
-01013         }
-01014 }
+Definition at line 977 of file modules.cpp.
+

+References fc.

00978 {
+00979         if (fc.size() == 0)
+00980         {
+00981                 return(false);
+00982         }
+00983         else
+00984         {
+00985                 return(true);
+00986         }
+00987 }
 

@@ -239,11 +239,11 @@ Returns the size of the file in lines.

This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems.

-Definition at line 1023 of file modules.cpp. +Definition at line 996 of file modules.cpp.

-References fc.

01024 {
-01025         return fc.size();
-01026 }
+References fc.
00997 {
+00998         return fc.size();
+00999 }
 

@@ -278,13 +278,13 @@ Retrieve one line from the file.

This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it.

-Definition at line 1016 of file modules.cpp. +Definition at line 989 of file modules.cpp.

-References fc.

01017 {
-01018         if ((x<0) || ((unsigned)x>fc.size()))
-01019                 return "";
-01020         return fc[x];
-01021 }
+References fc.
00990 {
+00991         if ((x<0) || ((unsigned)x>fc.size()))
+00992                 return "";
+00993         return fc[x];
+00994 }
 

@@ -319,13 +319,13 @@ Used to load a file.

This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, FileReader::FileSize returns 0.

-Definition at line 992 of file modules.cpp. +Definition at line 965 of file modules.cpp.

-References fc.

00993 {
-00994         file_cache c;
-00995         readfile(c,filename.c_str());
-00996         this->fc = c;
-00997 }
+References fc.
00966 {
+00967         file_cache c;
+00968         readfile(c,filename.c_str());
+00969         this->fc = c;
+00970 }
 

@@ -356,12 +356,12 @@ References fc.

Definition at line 1601 of file modules.h.

-Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile(). +Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile().


The documentation for this class was generated from the following files: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classGLine-members.html b/docs/module-doc/classGLine-members.html index 7b280769c..137f2d424 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index 87544b0d1..1a7ddd6bb 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -62,7 +62,7 @@ Definition at line 79 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index 5c90d36c3..4779a7e82 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index e22456404..79d1af478 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -186,7 +186,7 @@ Definition at line 39 of
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classInspSocket-members.html b/docs/module-doc/classInspSocket-members.html index efbe82517..af7e785ba 100644 --- a/docs/module-doc/classInspSocket-members.html +++ b/docs/module-doc/classInspSocket-members.html @@ -11,6 +11,7 @@ clientInspSocket [private] Close()InspSocket [virtual] fdInspSocket [private] + GetFd()InspSocket GetIP()InspSocket GetState()InspSocket hostInspSocket [private] @@ -38,7 +39,7 @@ timeout_endInspSocket [private] Write(std::string data)InspSocket [virtual] ~InspSocket()InspSocket [virtual] -
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classInspSocket.html b/docs/module-doc/classInspSocket.html index 6aee4b7e0..b4c7e7fba 100644 --- a/docs/module-doc/classInspSocket.html +++ b/docs/module-doc/classInspSocket.html @@ -43,6 +43,8 @@ Collaboration diagram for InspSocket:

bool Poll () +int GetFd () + virtual void Close () virtual ~InspSocket () @@ -109,11 +111,11 @@ Definition at line 30 of f

-Definition at line 46 of file socket.cpp. +Definition at line 49 of file socket.cpp.

-References I_DISCONNECTED, and state.

00047 {
-00048         this->state = I_DISCONNECTED;
-00049 }
+References I_DISCONNECTED, and state.
00050 {
+00051         this->state = I_DISCONNECTED;
+00052 }
 

@@ -155,13 +157,14 @@ References I

-Definition at line 51 of file socket.cpp. +Definition at line 54 of file socket.cpp.

-References fd, I_CONNECTED, IP, and state.

00052 {
-00053         this->fd = newfd;
-00054         this->state = I_CONNECTED;
-00055         this->IP = ip;
-00056 }
+References SocketEngine::AddFd(), fd, I_CONNECTED, IP, state, and X_ESTAB_MODULE.
00055 {
+00056         this->fd = newfd;
+00057         this->state = I_CONNECTED;
+00058         this->IP = ip;
+00059         SE->AddFd(this->fd,true,X_ESTAB_MODULE);
+00060 }
 

@@ -215,81 +218,83 @@ References fd, 58 of file socket.cpp. -

-References addr, addy, Close(), DEBUG, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, IP, OnError(), state, timeout, and timeout_end.

00059 {
-00060         if (listening) {
-00061                 if ((this->fd = OpenTCPSocket()) == ERROR)
-00062                 {
-00063                         this->fd = -1;
-00064                         this->state = I_ERROR;
-00065                         this->OnError(I_ERR_SOCKET);
-00066                         log(DEBUG,"OpenTCPSocket() error");
-00067                         return;
-00068                 }
-00069                 else
-00070                 {
-00071                         if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR)
-00072                         {
-00073                                 this->Close();
-00074                                 this->fd = -1;
-00075                                 this->state = I_ERROR;
-00076                                 this->OnError(I_ERR_BIND);
-00077                                 log(DEBUG,"BindSocket() error %s",strerror(errno));
-00078                                 return;
-00079                         }
-00080                         else
-00081                         {
-00082                                 this->state = I_LISTENING;
-00083                                 log(DEBUG,"New socket now in I_LISTENING state");
-00084                                 return;
-00085                         }
-00086                 }                       
-00087         } else {
-00088                 char* ip;
-00089                 this->host = host;
-00090                 hostent* hoste = gethostbyname(host.c_str());
-00091                 if (!hoste) {
-00092                         ip = (char*)host.c_str();
-00093                 } else {
-00094                         struct in_addr* ia = (in_addr*)hoste->h_addr;
-00095                         ip = inet_ntoa(*ia);
-00096                 }
-00097 
-00098                 this->IP = ip;
-00099 
-00100                 timeout_end = time(NULL)+maxtime;
-00101                 timeout = false;
-00102                 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
-00103                 {
-00104                         this->state = I_ERROR;
-00105                         this->OnError(I_ERR_SOCKET);
-00106                         return;
-00107                 }
-00108                 this->port = port;
-00109                 inet_aton(ip,&addy);
-00110                 addr.sin_family = AF_INET;
-00111                 addr.sin_addr = addy;
-00112                 addr.sin_port = htons(this->port);
-00113 
-00114                 int flags;
-00115                 flags = fcntl(this->fd, F_GETFL, 0);
-00116                 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK);
-00117 
-00118                 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1)
-00119                 {
-00120                         if (errno != EINPROGRESS)
-00121                         {
-00122                                 this->Close();
-00123                                 this->OnError(I_ERR_CONNECT);
-00124                                 this->state = I_ERROR;
-00125                                 return;
-00126                         }
-00127                 }
-00128                 this->state = I_CONNECTING;
-00129                 return;
-00130         }
-00131 }
+Definition at line 62 of file socket.cpp.
+

+References SocketEngine::AddFd(), addr, addy, Close(), DEBUG, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, IP, OnError(), state, timeout, timeout_end, and X_ESTAB_MODULE.

00063 {
+00064         if (listening) {
+00065                 if ((this->fd = OpenTCPSocket()) == ERROR)
+00066                 {
+00067                         this->fd = -1;
+00068                         this->state = I_ERROR;
+00069                         this->OnError(I_ERR_SOCKET);
+00070                         log(DEBUG,"OpenTCPSocket() error");
+00071                         return;
+00072                 }
+00073                 else
+00074                 {
+00075                         if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR)
+00076                         {
+00077                                 this->Close();
+00078                                 this->fd = -1;
+00079                                 this->state = I_ERROR;
+00080                                 this->OnError(I_ERR_BIND);
+00081                                 log(DEBUG,"BindSocket() error %s",strerror(errno));
+00082                                 return;
+00083                         }
+00084                         else
+00085                         {
+00086                                 this->state = I_LISTENING;
+00087                                 SE->AddFd(this->fd,true,X_ESTAB_MODULE);
+00088                                 log(DEBUG,"New socket now in I_LISTENING state");
+00089                                 return;
+00090                         }
+00091                 }                       
+00092         } else {
+00093                 char* ip;
+00094                 this->host = host;
+00095                 hostent* hoste = gethostbyname(host.c_str());
+00096                 if (!hoste) {
+00097                         ip = (char*)host.c_str();
+00098                 } else {
+00099                         struct in_addr* ia = (in_addr*)hoste->h_addr;
+00100                         ip = inet_ntoa(*ia);
+00101                 }
+00102 
+00103                 this->IP = ip;
+00104 
+00105                 timeout_end = time(NULL)+maxtime;
+00106                 timeout = false;
+00107                 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
+00108                 {
+00109                         this->state = I_ERROR;
+00110                         this->OnError(I_ERR_SOCKET);
+00111                         return;
+00112                 }
+00113                 this->port = port;
+00114                 inet_aton(ip,&addy);
+00115                 addr.sin_family = AF_INET;
+00116                 addr.sin_addr = addy;
+00117                 addr.sin_port = htons(this->port);
+00118 
+00119                 int flags;
+00120                 flags = fcntl(this->fd, F_GETFL, 0);
+00121                 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK);
+00122 
+00123                 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1)
+00124                 {
+00125                         if (errno != EINPROGRESS)
+00126                         {
+00127                                 this->Close();
+00128                                 this->OnError(I_ERR_CONNECT);
+00129                                 this->state = I_ERROR;
+00130                                 return;
+00131                         }
+00132                 }
+00133                 this->state = I_CONNECTING;
+00134                 SE->AddFd(this->fd,false,X_ESTAB_MODULE);
+00135                 return;
+00136         }
+00137 }
 

@@ -321,11 +326,11 @@ References addr,

-Definition at line 254 of file socket.cpp. +Definition at line 265 of file socket.cpp.

-References Close().

00255 {
-00256         this->Close();
-00257 }
+References Close().
00266 {
+00267         this->Close();
+00268 }
 

@@ -358,19 +363,55 @@ References Close().

-Definition at line 133 of file socket.cpp. +Definition at line 139 of file socket.cpp. +

+References fd, and OnClose(). +

+Referenced by InspSocket(), and ~InspSocket().

00140 {
+00141         if (this->fd != -1)
+00142         {
+00143                 this->OnClose();
+00144                 shutdown(this->fd,2);
+00145                 close(this->fd);
+00146                 this->fd = -1;
+00147         }
+00148 }
+
+

+ + + +

+ + + + +
+ + + + + + + + +
int InspSocket::GetFd  ) 
+
+ + + + @@ -402,11 +443,11 @@ Referenced by InspSocket()

-Definition at line 144 of file socket.cpp. +Definition at line 150 of file socket.cpp.

-References IP.

00145 {
-00146         return this->IP;
-00147 }
+References IP.
00151 {
+00152         return this->IP;
+00153 }
 

@@ -438,11 +479,11 @@ References IP.

241 of file socket.cpp. +Definition at line 247 of file socket.cpp.

-References state.

00242 {
-00243         return this->state;
-00244 }
+References state.
00248 {
+00249         return this->state;
+00250 }
 

@@ -474,9 +515,9 @@ References state.

-Definition at line 252 of file socket.cpp. +Definition at line 263 of file socket.cpp.

-Referenced by Close().

00252 { return; }
+Referenced by Close().
00263 { return; }
 

@@ -508,9 +549,9 @@ Referenced by Close().

-Definition at line 246 of file socket.cpp. +Definition at line 257 of file socket.cpp.

-Referenced by Poll().

00246 { return true; }
+Referenced by Poll().
00257 { return true; }
 

@@ -542,9 +583,9 @@ Referenced by Poll().

-Definition at line 250 of file socket.cpp. +Definition at line 261 of file socket.cpp.

-Referenced by Poll().

00250 { return true; }
+Referenced by Poll().
00261 { return true; }
 

@@ -576,7 +617,7 @@ Referenced by Poll().

-Definition at line 248 of file socket.cpp.

00248 { return 0; }
+Definition at line 259 of file socket.cpp.
00259 { return 0; }
 

@@ -609,9 +650,9 @@ Definition at line 248 o

-Definition at line 247 of file socket.cpp. +Definition at line 258 of file socket.cpp.

-Referenced by InspSocket(), and Poll().

00247 { return; }
+Referenced by InspSocket(), and Poll().
00258 { return; }
 

@@ -653,9 +694,9 @@ Referenced by InspSocket()

-Definition at line 249 of file socket.cpp. +Definition at line 260 of file socket.cpp.

-Referenced by Poll().

00249 { return 0; }
+Referenced by Poll().
00260 { return 0; }
 

@@ -687,9 +728,9 @@ Referenced by Poll().

-Definition at line 251 of file socket.cpp. +Definition at line 262 of file socket.cpp.

-Referenced by Poll().

00251 { return; }
+Referenced by Poll().
00262 { return; }
 

@@ -721,50 +762,50 @@ Referenced by Poll().

-Definition at line 191 of file socket.cpp. -

-References client, fd, I_CONNECTED, I_CONNECTING, I_ERR_TIMEOUT, I_ERROR, I_LISTENING, length, OnConnected(), OnDataReady(), OnError(), OnIncomingConnection(), OnTimeout(), polls, SetState(), state, timeout, and timeout_end.

00192 {
-00193         if ((time(NULL) > timeout_end) && (this->state == I_CONNECTING))
-00194         {
-00195                 // for non-listening sockets, the timeout can occur
-00196                 // which causes termination of the connection after
-00197                 // the given number of seconds without a successful
-00198                 // connection.
-00199                 this->OnTimeout();
-00200                 this->OnError(I_ERR_TIMEOUT);
-00201                 timeout = true;
-00202                 this->state = I_ERROR;
-00203                 return false;
-00204         }
-00205         polls.fd = this->fd;
-00206         state == I_CONNECTING ? polls.events = POLLOUT : polls.events = POLLIN;
-00207         int ret = poll(&polls,1,1);
-00208 
-00209         if (ret > 0)
-00210         {
-00211                 int incoming = -1;
-00212                 
-00213                 switch (this->state)
-00214                 {
-00215                         case I_CONNECTING:
-00216                                 this->SetState(I_CONNECTED);
-00217                                 return this->OnConnected();
-00218                         break;
-00219                         case I_LISTENING:
-00220                                 length = sizeof (client);
-00221                                 incoming = accept (this->fd, (sockaddr*)&client,&length);
-00222                                 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr));
-00223                                 return true;
-00224                         break;
-00225                         case I_CONNECTED:
-00226                                 return this->OnDataReady();
-00227                         break;
-00228                         default:
-00229                         break;
-00230                 }
-00231         }
-00232         return true;
-00233 }
+Definition at line 197 of file socket.cpp.
+

+References SocketEngine::AddFd(), client, SocketEngine::DelFd(), I_CONNECTED, I_CONNECTING, I_ERR_TIMEOUT, I_ERROR, I_LISTENING, length, OnConnected(), OnDataReady(), OnError(), OnIncomingConnection(), OnTimeout(), SetState(), state, timeout, timeout_end, and X_ESTAB_MODULE.

00198 {
+00199         if ((time(NULL) > timeout_end) && (this->state == I_CONNECTING))
+00200         {
+00201                 // for non-listening sockets, the timeout can occur
+00202                 // which causes termination of the connection after
+00203                 // the given number of seconds without a successful
+00204                 // connection.
+00205                 this->OnTimeout();
+00206                 this->OnError(I_ERR_TIMEOUT);
+00207                 timeout = true;
+00208                 this->state = I_ERROR;
+00209                 return false;
+00210         }
+00211 
+00212         int incoming = -1;
+00213         
+00214         switch (this->state)
+00215         {
+00216                 case I_CONNECTING:
+00217                         this->SetState(I_CONNECTED);
+00218                         /* Our socket was in write-state, so delete it and re-add it
+00219                          * in read-state.
+00220                          */
+00221                         SE->DelFd(this->fd);
+00222                         SE->AddFd(this->fd,true,X_ESTAB_MODULE);
+00223                         return this->OnConnected();
+00224                 break;
+00225                 case I_LISTENING:
+00226                         length = sizeof (client);
+00227                         incoming = accept (this->fd, (sockaddr*)&client,&length);
+00228                         this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr));
+00229                         return true;
+00230                 break;
+00231                 case I_CONNECTED:
+00232                         return this->OnDataReady();
+00233                 break;
+00234                 default:
+00235                 break;
+00236         }
+00237 
+00238         return true;
+00239 }
 

@@ -796,21 +837,21 @@ References client,

-Definition at line 149 of file socket.cpp. +Definition at line 155 of file socket.cpp.

-References DEBUG, and ibuf.

00150 {
-00151         int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0);
-00152         if (n > 0)
-00153         {
-00154                 ibuf[n] = 0;
-00155                 return ibuf;
-00156         }
-00157         else
-00158         {
-00159                 log(DEBUG,"EOF or error on socket");
-00160                 return NULL;
-00161         }
-00162 }
+References DEBUG, and ibuf.
00156 {
+00157         int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0);
+00158         if (n > 0)
+00159         {
+00160                 ibuf[n] = 0;
+00161                 return ibuf;
+00162         }
+00163         else
+00164         {
+00165                 log(DEBUG,"EOF or error on socket");
+00166                 return NULL;
+00167         }
+00168 }
 

@@ -843,14 +884,14 @@ References DEBUG, and

-Definition at line 235 of file socket.cpp. +Definition at line 241 of file socket.cpp.

References DEBUG, and state.

-Referenced by Poll().

00236 {
-00237         log(DEBUG,"Socket state change");
-00238         this->state = s;
-00239 }
+Referenced by Poll().
00242 {
+00243         log(DEBUG,"Socket state change");
+00244         this->state = s;
+00245 }
 

@@ -883,27 +924,27 @@ Referenced by Poll().

-Definition at line 168 of file socket.cpp.

00169 {
-00170         char* d = (char*)data.c_str();
-00171         unsigned int written = 0;
-00172         int n = 0;
-00173         int s = data.length();
-00174         while ((written < data.length()) && (n >= 0))
-00175         {
-00176                 n = send(this->fd,d,s,0);
-00177                 if (n > 0)
-00178                 {
-00179                         // If we didnt write everything, advance
-00180                         // the pointers so that when we retry
-00181                         // the next time around the loop, we try
-00182                         // to write what we failed to write before.
-00183                         written += n;
-00184                         s -= n;
-00185                         d += n;
-00186                 }
-00187         }
-00188         return written;
-00189 }
+Definition at line 174 of file socket.cpp.
00175 {
+00176         char* d = (char*)data.c_str();
+00177         unsigned int written = 0;
+00178         int n = 0;
+00179         int s = data.length();
+00180         while ((written < data.length()) && (n >= 0))
+00181         {
+00182                 n = send(this->fd,d,s,0);
+00183                 if (n > 0)
+00184                 {
+00185                         // If we didnt write everything, advance
+00186                         // the pointers so that when we retry
+00187                         // the next time around the loop, we try
+00188                         // to write what we failed to write before.
+00189                         written += n;
+00190                         s -= n;
+00191                         d += n;
+00192                 }
+00193         }
+00194         return written;
+00195 }
 

@@ -934,7 +975,7 @@ Definition at line 168 o

Definition at line 37 of file socket.h.

-Referenced by InspSocket(). +Referenced by InspSocket().

+   + + +

+

-References fd, and OnClose(). +Definition at line 252 of file socket.cpp.

-Referenced by InspSocket(), and ~InspSocket().

00134 {
-00135         if (this->fd != -1)
-00136         {
-00137                 this->OnClose();
-00138                 shutdown(this->fd,2);
-00139                 close(this->fd);
-00140                 this->fd = -1;
-00141         }
-00142 }
+References fd.
00253 {
+00254         return this->fd;
+00255 }
 

@@ -961,7 +1002,7 @@ Referenced by InspSocket() Definition at line 38 of file socket.h.

-Referenced by InspSocket(). +Referenced by InspSocket().

@@ -988,7 +1029,7 @@ Referenced by InspSocket() Definition at line 44 of file socket.h.

-Referenced by Poll(). +Referenced by Poll().

@@ -1015,7 +1056,7 @@ Referenced by Poll().

Definition at line 33 of file socket.h.

-Referenced by Close(), InspSocket(), and Poll(). +Referenced by Close(), GetFd(), and InspSocket().

@@ -1067,7 +1108,7 @@ Definition at line 34 of f

Definition at line 42 of file socket.h.

-Referenced by Read(). +Referenced by Read().

@@ -1094,7 +1135,7 @@ Referenced by Read().

Definition at line 43 of file socket.h.

-Referenced by GetIP(), and InspSocket(). +Referenced by GetIP(), and InspSocket().

@@ -1121,7 +1162,7 @@ Referenced by GetIP(), a

Definition at line 46 of file socket.h.

-Referenced by Poll(). +Referenced by Poll().

@@ -1146,9 +1187,7 @@ Referenced by Poll().

-Definition at line 41 of file socket.h. -

-Referenced by Poll(). +Definition at line 41 of file socket.h.

@@ -1225,7 +1264,7 @@ Definition at line 45 of f

Definition at line 36 of file socket.h.

-Referenced by GetState(), InspSocket(), Poll(), and SetState(). +Referenced by GetState(), InspSocket(), Poll(), and SetState().

@@ -1252,7 +1291,7 @@ Referenced by GetState()

Definition at line 40 of file socket.h.

-Referenced by InspSocket(), and Poll(). +Referenced by InspSocket(), and Poll().

@@ -1279,12 +1318,12 @@ Referenced by InspSocket() Definition at line 39 of file socket.h.

-Referenced by InspSocket(), and Poll(). +Referenced by InspSocket(), and Poll().


The documentation for this class was generated from the following files: -
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index b63f569dc..07a439605 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 Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index b1f14360b..6abd07eb1 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 Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index 7c4b21450..3f859a681 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 Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index 8b0434bb5..bd78ba927 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -59,7 +59,7 @@ Referenced by userrec::Invite
The documentation for this class was generated from the following file:
-
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classKLine-members.html b/docs/module-doc/classKLine-members.html index e0006eebb..aabe88fbd 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 Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index 4a3660712..2329fd01f 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -62,7 +62,7 @@ Definition at line 68 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModeParameter-members.html b/docs/module-doc/classModeParameter-members.html index 8ed231973..2648a18a1 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 Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index 8cd857a03..1f19cfcac 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -119,7 +119,7 @@ Referenced by chanrec::Set
The documentation for this class was generated from the following file:
-
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index 368a410c1..8c7e9bc47 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -89,7 +89,7 @@ ProtoSendMode(void *opaque, int target_type, void *target, std::string modeline)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index deef06e8c..5a348e263 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -302,7 +302,7 @@ Default constructor Creates a module class.

-Definition at line 307 of file modules.cpp.

00307 { }
+Definition at line 301 of file modules.cpp.
00301 { }
 

@@ -336,7 +336,7 @@ Default destructor destroys a module class.

-Definition at line 308 of file modules.cpp.

00308 { }
+Definition at line 302 of file modules.cpp.
00302 { }
 

@@ -371,9 +371,9 @@ Returns the version number of a Module.

The method should return a Version object with its version information assigned via Version::Version

-Definition at line 321 of file modules.cpp. +Definition at line 313 of file modules.cpp.

-References VF_VENDOR.

00321 { return Version(1,0,0,0,VF_VENDOR); }
+References VF_VENDOR.
00313 { return Version(1,0,0,0,VF_VENDOR); }
 

@@ -413,7 +413,7 @@ The module should modify the 005 numeric if needed to indicate its features.

-Definition at line 331 of file modules.cpp.

00331 { };
+Definition at line 323 of file modules.cpp.
00323 { };
 

@@ -488,9 +488,9 @@ This function is called before many functions which check a users status on a ch

-Definition at line 330 of file modules.cpp. +Definition at line 322 of file modules.cpp.

-References ACR_DEFAULT.

00330 { return ACR_DEFAULT; };
+References ACR_DEFAULT.
00322 { return ACR_DEFAULT; };
 

@@ -548,7 +548,7 @@ Return a non-zero value to 'eat' the mode change and prevent the ban from being

Returns:
1 to block the ban, 0 to continue as normal

-Definition at line 356 of file modules.cpp.

00356 { return 0; };
+Definition at line 348 of file modules.cpp.
00348 { return 0; };
 

@@ -612,7 +612,7 @@ This method is triggered after the line is added.

Parameters:

-Definition at line 382 of file modules.cpp.

00382 { };
+Definition at line 374 of file modules.cpp.
00374 { };
 

@@ -676,7 +676,7 @@ This method is triggered after the line is added.

Parameters:

-Definition at line 378 of file modules.cpp.

00378 { };
+Definition at line 370 of file modules.cpp.
00370 { };
 

@@ -740,7 +740,7 @@ This method is triggered after the line is added.

Parameters:

-Definition at line 380 of file modules.cpp.

00380 { };
+Definition at line 372 of file modules.cpp.
00372 { };
 

@@ -804,7 +804,7 @@ This method is triggered after the line is added.

Parameters:

-Definition at line 381 of file modules.cpp.

00381 { };
+Definition at line 373 of file modules.cpp.
00373 { };
 

@@ -868,7 +868,7 @@ This method is triggered after the line is added.

Parameters:

-Definition at line 379 of file modules.cpp.

00379 { };
+Definition at line 371 of file modules.cpp.
00371 { };
 

@@ -908,7 +908,7 @@ This timer can be used to control timed features. Its period is not accurate eno

-Definition at line 335 of file modules.cpp.

00335 { };
+Definition at line 327 of file modules.cpp.
00327 { };
 

@@ -958,7 +958,7 @@ This event triggers after the host has been set.

Parameters:<

-Definition at line 376 of file modules.cpp.

00376 { };
+Definition at line 368 of file modules.cpp.
00368 { };
 

@@ -1009,7 +1009,7 @@ return 1 to deny the name change, or 0 to allow it.

Parameter
Returns:
1 to deny the GECOS change, 0 to allow

-Definition at line 349 of file modules.cpp.

00349 { return 0; };
+Definition at line 341 of file modules.cpp.
00341 { return 0; };
 

@@ -1060,7 +1060,7 @@ Return 1 to deny the host change, or 0 to allow it.

Parameter
Returns:
1 to deny the host change, 0 to allow

-Definition at line 348 of file modules.cpp.

00348 { return 0; };
+Definition at line 340 of file modules.cpp.
00340 { return 0; };
 

@@ -1110,7 +1110,7 @@ This event triggers after the name has been set.

Parameters:<

-Definition at line 377 of file modules.cpp.

00377 { };
+Definition at line 369 of file modules.cpp.
00369 { };
 

@@ -1161,7 +1161,7 @@ This method will always be called for each join, wether or not the user actually

Returns:
1 to explicitly allow the join, 0 to proceed as normal

-Definition at line 346 of file modules.cpp.

00346 { return 0; };
+Definition at line 338 of file modules.cpp.
00338 { return 0; };
 

@@ -1212,7 +1212,7 @@ This method will always be called for each join, wether or not the channel is ac

Returns:
1 to explicitly allow the join, 0 to proceed as normal

-Definition at line 343 of file modules.cpp.

00343 { return 0; };
+Definition at line 335 of file modules.cpp.
00335 { return 0; };
 

@@ -1269,7 +1269,7 @@ This method will always be called for each join, wether or not the channel is ac

Returns:
1 to explicitly allow the join, 0 to proceed as normal

-Definition at line 344 of file modules.cpp.

00344 { return 0; };
+Definition at line 336 of file modules.cpp.
00336 { return 0; };
 

@@ -1320,7 +1320,7 @@ This method will always be called for each join, wether or not the channel is ac

Returns:
1 to explicitly allow the join, 0 to proceed as normal

-Definition at line 345 of file modules.cpp.

00345 { return 0; };
+Definition at line 337 of file modules.cpp.
00337 { return 0; };
 

@@ -1361,7 +1361,7 @@ For example a module which implements ident lookups will continue to return fals

Returns:
true to indicate readiness, false if otherwise

-Definition at line 338 of file modules.cpp.

00338 { return true; };
+Definition at line 330 of file modules.cpp.
00330 { return true; };
 

@@ -1411,7 +1411,7 @@ This method is called once for every user and channel on the network, so that wh

-Definition at line 388 of file modules.cpp.

00388 { };
+Definition at line 380 of file modules.cpp.
00380 { };
 

@@ -1475,7 +1475,7 @@ Please see src/modules/m_swhois.cpp for a working example of how to use this met

-Definition at line 373 of file modules.cpp.

00373 { };
+Definition at line 365 of file modules.cpp.
00365 { };
 

@@ -1533,7 +1533,7 @@ Return a non-zero value to 'eat' the mode change and prevent the ban from being

Returns:
1 to block the unban, 0 to continue as normal

-Definition at line 357 of file modules.cpp.

00357 { return 0; };
+Definition at line 349 of file modules.cpp.
00349 { return 0; };
 

@@ -1583,7 +1583,7 @@ This method is triggered after the line is deleted.

Parameter

-Definition at line 387 of file modules.cpp.

00387 { };
+Definition at line 379 of file modules.cpp.
00379 { };
 

@@ -1633,7 +1633,7 @@ This method is triggered after the line is deleted.

Parameter

-Definition at line 383 of file modules.cpp.

00383 { };
+Definition at line 375 of file modules.cpp.
00375 { };
 

@@ -1683,7 +1683,7 @@ This method is triggered after the line is deleted.

Parameter

-Definition at line 385 of file modules.cpp.

00385 { };
+Definition at line 377 of file modules.cpp.
00377 { };
 

@@ -1733,7 +1733,7 @@ This method is triggered after the line is deleted.

Parameter

-Definition at line 386 of file modules.cpp.

00386 { };
+Definition at line 378 of file modules.cpp.
00378 { };
 

@@ -1783,7 +1783,7 @@ This method is triggered after the line is deleted.

Parameter

-Definition at line 384 of file modules.cpp.

00384 { };
+Definition at line 376 of file modules.cpp.
00376 { };
 

@@ -1823,7 +1823,7 @@ Please see the documentation of

-Definition at line 351 of file modules.cpp.

00351 { return; };
+Definition at line 343 of file modules.cpp.
00343 { return; };
 

@@ -1901,7 +1901,7 @@ The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the

-Definition at line 319 of file modules.cpp.

00319 { return false; }
+Definition at line 311 of file modules.cpp.
00311 { return false; }
 

@@ -1951,7 +1951,7 @@ You may change or define the description given in 367 of file modules.cpp.

00367 { };
+Definition at line 359 of file modules.cpp.
00359 { };
 

@@ -1991,7 +1991,7 @@ This event is informational only. You should not change any user information in

-Definition at line 355 of file modules.cpp.

00355 { };
+Definition at line 347 of file modules.cpp.
00347 { };
 

@@ -2031,7 +2031,7 @@ You cannot override this and prevent it from happening as it is already happened

-Definition at line 354 of file modules.cpp.

00354 { };
+Definition at line 346 of file modules.cpp.
00346 { };
 

@@ -2073,7 +2073,7 @@ The userrec will contain the information of the user who typed the command. Modu

-Definition at line 323 of file modules.cpp.

00323 { };
+Definition at line 315 of file modules.cpp.
00315 { };
 

@@ -2131,7 +2131,7 @@ If a client is killed by a server, e.g. a nickname collision or protocol error,

Returns:
1 to prevent the kill, 0 to allow

-Definition at line 332 of file modules.cpp.

00332 { return 0; };
+Definition at line 324 of file modules.cpp.
00324 { return 0; };
 

@@ -2181,7 +2181,7 @@ mod will contain a pointer to the module, and string will contain its name, for

-Definition at line 333 of file modules.cpp.

00333 { };
+Definition at line 325 of file modules.cpp.
00325 { };
 

@@ -2239,7 +2239,7 @@ Return 1 to deny the topic change, or 0 to allow it.

Paramete

-Definition at line 350 of file modules.cpp.

00350 { return 0; };
+Definition at line 342 of file modules.cpp.
00342 { return 0; };
 

@@ -2303,7 +2303,7 @@ The text variable contains the remainder of the mode string after the target, e.

-Definition at line 320 of file modules.cpp.

00320 { };
+Definition at line 312 of file modules.cpp.
00312 { };
 

@@ -2353,7 +2353,7 @@ The userrec will contain the oper mode 'o' as this function is called after any

-Definition at line 322 of file modules.cpp.

00322 { };
+Definition at line 314 of file modules.cpp.
00314 { };
 

@@ -2404,7 +2404,7 @@ The password field (from the config file) is in 'password' and is to be compared

Returns:
1 to match the passwords, 0 to do nothing

-Definition at line 353 of file modules.cpp.

00353 { return 0; };
+Definition at line 345 of file modules.cpp.
00345 { return 0; };
 

@@ -2461,7 +2461,7 @@ To block topic changes you must use OnLocalTopicChange instead.

-Definition at line 366 of file modules.cpp.

00366 { };
+Definition at line 358 of file modules.cpp.
00358 { };
 

@@ -2526,7 +2526,7 @@ This event occurs for all registered commands, wether they are registered in the

Returns:
1 to block the command, 0 to allow

-Definition at line 337 of file modules.cpp.

00337 { return 0; };
+Definition at line 329 of file modules.cpp.
00329 { return 0; };
 

@@ -2605,7 +2605,7 @@ Return 1 from this function to block the mode character from being processed ent

Returns:
1 to deny the mode, 0 to allow

-Definition at line 342 of file modules.cpp.

00342 { return 0; };
+Definition at line 334 of file modules.cpp.
00334 { return 0; };
 

@@ -2662,7 +2662,7 @@ This is intended for raw socket processing (e.g. modules which wrap the tcp conn

-Definition at line 358 of file modules.cpp.

00358 { };
+Definition at line 350 of file modules.cpp.
00350 { };
 

@@ -2702,7 +2702,7 @@ When this event is called, shutdown() has not yet been called on the socket.

-Definition at line 360 of file modules.cpp.

00360 { };
+Definition at line 352 of file modules.cpp.
00352 { };
 

@@ -2767,7 +2767,7 @@ This occurs AFTER the select() or poll() so there is always data waiting to be r

Returns:
nonzero if the event was handled, in which case readresult must be valid on exit

-Definition at line 361 of file modules.cpp.

00361 { return 0; };
+Definition at line 353 of file modules.cpp.
00353 { return 0; };
 

@@ -2825,7 +2825,7 @@ Because this event is a low level event no user information is associated with i

Returns:
Number of characters actually written or 0 if you didn't handle the operation

-Definition at line 359 of file modules.cpp.

00359 { return 0; };
+Definition at line 351 of file modules.cpp.
00351 { return 0; };
 

@@ -2865,7 +2865,7 @@ This method is called prior to a /REHASH or when a SIGHUP is received from the o

-Definition at line 316 of file modules.cpp.

00316 { }
+Definition at line 308 of file modules.cpp.
00308 { }
 

@@ -2922,7 +2922,7 @@ Called when an oper wants to disconnect a remote user via KILL.

-Definition at line 364 of file modules.cpp.

00364 { };
+Definition at line 356 of file modules.cpp.
00356 { };
 

@@ -2962,9 +2962,9 @@ Please see the documentation of 352 of file modules.cpp. +Definition at line 344 of file modules.cpp.

-Referenced by Request::Send().

00352 { return NULL; };
+Referenced by Request::Send().
00344 { return NULL; };
 

@@ -3021,7 +3021,7 @@ For example, when a /MODE channel +b (without any other parameters) is called, i

-Definition at line 336 of file modules.cpp.

00336 { };
+Definition at line 328 of file modules.cpp.
00328 { };
 

@@ -3078,7 +3078,7 @@ This method is the lowest level of handler available to a module. It will be cal

-Definition at line 317 of file modules.cpp.

00317 { }
+Definition at line 309 of file modules.cpp.
00309 { }
 

@@ -3118,7 +3118,7 @@ Called on all /STATS commands This method is triggered for all /STATS use, inclu

-Definition at line 347 of file modules.cpp.

00347 { };
+Definition at line 339 of file modules.cpp.
00339 { };
 

@@ -3177,7 +3177,7 @@ For a good example of how to use this function, please see src/modules/m_chanpro

-Definition at line 369 of file modules.cpp.

00369 { };
+Definition at line 361 of file modules.cpp.
00361 { };
 

@@ -3231,7 +3231,7 @@ Definition at line 369

-Definition at line 371 of file modules.cpp.

00371 { };
+Definition at line 363 of file modules.cpp.
00363 { };
 

@@ -3288,7 +3288,7 @@ When this function is called, it will be called from the module which implements

-Definition at line 368 of file modules.cpp.

00368 { };
+Definition at line 360 of file modules.cpp.
00360 { };
 

@@ -3342,7 +3342,7 @@ Definition at line 368

-Definition at line 372 of file modules.cpp.

00372 { };
+Definition at line 364 of file modules.cpp.
00364 { };
 

@@ -3392,7 +3392,7 @@ mod will contain a pointer to the module, and string will contain its name, for

-Definition at line 334 of file modules.cpp.

00334 { };
+Definition at line 326 of file modules.cpp.
00326 { };
 

@@ -3432,7 +3432,7 @@ The details of the connecting user are available to you in the parameter userrec

-Definition at line 309 of file modules.cpp.

00309 { }
+Definition at line 303 of file modules.cpp.
00303 { }
 

@@ -3472,7 +3472,7 @@ The details of the exiting user are available to you in the parameter userrec *u

-Definition at line 311 of file modules.cpp.

00311 { }
+Definition at line 305 of file modules.cpp.
00305 { }
 

@@ -3529,7 +3529,7 @@ You cannot prevent the invite from occuring using this function, to do that, use

-Definition at line 365 of file modules.cpp.

00365 { };
+Definition at line 357 of file modules.cpp.
00357 { };
 

@@ -3579,7 +3579,7 @@ The details of the joining user are available to you in the parameter userrec *u

-Definition at line 312 of file modules.cpp.

00312 { }
+Definition at line 306 of file modules.cpp.
00306 { }
 

@@ -3643,7 +3643,7 @@ If this method is called, the kick is already underway and cannot be prevented,

-Definition at line 341 of file modules.cpp.

00341 { };
+Definition at line 333 of file modules.cpp.
00333 { };
 

@@ -3707,7 +3707,7 @@ The dest variable contains a userrec* if target_type is TYPE_USER and a chanrec*

-Definition at line 362 of file modules.cpp.

00362 { };
+Definition at line 354 of file modules.cpp.
00354 { };
 

@@ -3771,7 +3771,7 @@ The dest variable contains a userrec* if target_type is TYPE_USER and a chanrec*

-Definition at line 363 of file modules.cpp.

00363 { };
+Definition at line 355 of file modules.cpp.
00355 { };
 

@@ -3821,7 +3821,7 @@ The details of the leaving user are available to you in the parameter userrec *u

-Definition at line 313 of file modules.cpp.

00313 { }
+Definition at line 307 of file modules.cpp.
00307 { }
 

@@ -3871,7 +3871,7 @@ This can be used to track users after nickchanges have been applied. Please note

-Definition at line 329 of file modules.cpp.

00329 { };
+Definition at line 321 of file modules.cpp.
00321 { };
 

@@ -3929,7 +3929,7 @@ Returning 1 from this function stops the process immediately, causing no output

Returns:
1 to deny the invite, 0 to allow

-Definition at line 325 of file modules.cpp.

00325 { return 0; };
+Definition at line 317 of file modules.cpp.
00317 { return 0; };
 

@@ -3988,7 +3988,7 @@ If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be

Returns:
1 To prevent the join, 0 to allow it.

-Definition at line 318 of file modules.cpp.

00318 { return 0; }
+Definition at line 310 of file modules.cpp.
00310 { return 0; }
 

@@ -4053,7 +4053,7 @@ Returning a value of 1 from this function stops the process immediately, causing

Returns:
1 to prevent the kick, 0 to allow it

-Definition at line 340 of file modules.cpp.

00340 { return 0; };
+Definition at line 332 of file modules.cpp.
00332 { return 0; };
 

@@ -4118,7 +4118,7 @@ Returning any nonzero value from this function stops the process immediately, ca

Returns:
1 to deny the NOTICE, 0 to allow it

-Definition at line 326 of file modules.cpp.

00326 { return 0; };
+Definition at line 318 of file modules.cpp.
00318 { return 0; };
 

@@ -4169,7 +4169,7 @@ This can be used to implement Q-lines etc. Please note that although you can see

Returns:
1 to deny the change, 0 to allow

-Definition at line 328 of file modules.cpp.

00328 { return 0; };
+Definition at line 320 of file modules.cpp.
00320 { return 0; };
 

@@ -4234,7 +4234,7 @@ Returning any nonzero value from this function stops the process immediately, ca

Returns:
1 to deny the NOTICE, 0 to allow it

-Definition at line 327 of file modules.cpp.

00327 { return 0; };
+Definition at line 319 of file modules.cpp.
00319 { return 0; };
 

@@ -4284,7 +4284,7 @@ The details of the exiting user are available to you in the parameter userrec *u

-Definition at line 310 of file modules.cpp.

00310 { }
+Definition at line 304 of file modules.cpp.
00304 { }
 

@@ -4324,7 +4324,7 @@ before the user is sent the MOTD etc). Modules can use this method if they are p

-Definition at line 339 of file modules.cpp.

00339 { };
+Definition at line 331 of file modules.cpp.
00331 { };
 

@@ -4374,7 +4374,7 @@ Called after every WALLOPS command.

-Definition at line 375 of file modules.cpp.

00375 { };
+Definition at line 367 of file modules.cpp.
00367 { };
 

@@ -4424,7 +4424,7 @@ The source parameter contains the details of the user who issued the WHOIS comma

-Definition at line 324 of file modules.cpp.

00324 { };
+Definition at line 316 of file modules.cpp.
00316 { };
 

@@ -4496,7 +4496,7 @@ More documentation to follow soon. Please see src/modules/m_swhois.cpp for examp

-Definition at line 374 of file modules.cpp.

00374 { };
+Definition at line 366 of file modules.cpp.
00366 { };
 

@@ -4562,7 +4562,7 @@ More documentation to follow soon. Please see src/modules/m_chanprotect.cpp for

-Definition at line 370 of file modules.cpp.

00370 { };
+Definition at line 362 of file modules.cpp.
00362 { };
 

@@ -4570,7 +4570,7 @@ Definition at line 370


The documentation for this class was generated from the following files: -
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index 3fe0642ed..04ca15310 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 Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index a3dc0a079..60b8b4c16 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -134,7 +134,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModuleMessage-members.html b/docs/module-doc/classModuleMessage-members.html index 96103b242..a86d9fcd3 100644 --- a/docs/module-doc/classModuleMessage-members.html +++ b/docs/module-doc/classModuleMessage-members.html @@ -11,7 +11,7 @@ Send()=0ModuleMessage [pure virtual] ~classbase()classbase [inline] ~ModuleMessage()ModuleMessage [inline, virtual] -
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModuleMessage.html b/docs/module-doc/classModuleMessage.html index 1b6c1eb90..07ad51beb 100644 --- a/docs/module-doc/classModuleMessage.html +++ b/docs/module-doc/classModuleMessage.html @@ -101,7 +101,7 @@ Implemented in Request, an
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classQLine-members.html b/docs/module-doc/classQLine-members.html index 67f8cba88..9a56b349d 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 Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index 6e7bb430e..1cab68e0e 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -92,7 +92,7 @@ Definition at line 114 of f
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classRequest-members.html b/docs/module-doc/classRequest-members.html index 6eb061050..3d098099c 100644 --- a/docs/module-doc/classRequest-members.html +++ b/docs/module-doc/classRequest-members.html @@ -18,7 +18,7 @@ sourceRequest [protected] ~classbase()classbase [inline] ~ModuleMessage()ModuleMessage [inline, virtual] -
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classRequest.html b/docs/module-doc/classRequest.html index 8eb92ac45..0e57a5886 100644 --- a/docs/module-doc/classRequest.html +++ b/docs/module-doc/classRequest.html @@ -102,7 +102,7 @@ Create a new Request.

-Definition at line 252 of file modules.cpp.

00252 : data(anydata), source(src), dest(dst) { };
+Definition at line 246 of file modules.cpp.
00246 : data(anydata), source(src), dest(dst) { };
 

@@ -137,11 +137,11 @@ Fetch the Request data.

-Definition at line 254 of file modules.cpp. +Definition at line 248 of file modules.cpp.

-References data.

00255 {
-00256         return this->data;
-00257 }
+References data.
00249 {
+00250         return this->data;
+00251 }
 

@@ -175,11 +175,11 @@ Fetch the request destination (should be 'this' in the receiving module).

-Definition at line 264 of file modules.cpp. +Definition at line 258 of file modules.cpp.

-References dest.

00265 {
-00266         return this->dest;
-00267 }
+References dest.
00259 {
+00260         return this->dest;
+00261 }
 

@@ -213,11 +213,11 @@ Fetch the request source.

-Definition at line 259 of file modules.cpp. +Definition at line 253 of file modules.cpp.

-References source.

00260 {
-00261         return this->source;
-00262 }
+References source.
00254 {
+00255         return this->source;
+00256 }
 

@@ -253,18 +253,18 @@ Upon returning the result will be arbitary data returned by the module you sent

Implements ModuleMessage.

-Definition at line 269 of file modules.cpp. -

-References dest, and Module::OnRequest().

00270 {
-00271         if (this->dest)
-00272         {
-00273                 return dest->OnRequest(this);
-00274         }
-00275         else
-00276         {
-00277                 return NULL;
-00278         }
-00279 }
+Definition at line 263 of file modules.cpp.
+

+References dest, and Module::OnRequest().

00264 {
+00265         if (this->dest)
+00266         {
+00267                 return dest->OnRequest(this);
+00268         }
+00269         else
+00270         {
+00271                 return NULL;
+00272         }
+00273 }
 

@@ -297,7 +297,7 @@ This member holds a pointer to arbitary data set by the emitter of the message.

Definition at line 162 of file modules.h.

-Referenced by GetData(). +Referenced by GetData().

@@ -326,7 +326,7 @@ The single destination of the Request.

Definition at line 169 of file modules.h.

-Referenced by GetDest(), and Send(). +Referenced by GetDest(), and Send().

@@ -355,12 +355,12 @@ This is a pointer to the sender of the message, which can be used to directly tr

Definition at line 166 of file modules.h.

-Referenced by GetSource(). +Referenced by GetSource().


The documentation for this class was generated from the following files: -
Generated on Fri Dec 9 20:20:12 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 1482d4be1..3486a74c3 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -67,7 +67,7 @@ UserToPseudo(userrec *user, std::string message)Server [virtual] ~classbase()classbase [inline] ~Server()Server [virtual] -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index f71644ac0..02d118d20 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -230,8 +230,8 @@ Default constructor.

Creates a Server object.

-Definition at line 394 of file modules.cpp.

00395 {
-00396 }
+Definition at line 386 of file modules.cpp.
00387 {
+00388 }
 

@@ -265,8 +265,8 @@ Default destructor.

Destroys a Server object.

-Definition at line 398 of file modules.cpp.

00399 {
-00400 }
+Definition at line 390 of file modules.cpp.
00391 {
+00392 }
 

@@ -331,11 +331,11 @@ This allows modules to add extra commands into the command table. You must place typedef void (handlerfunc) (char**, int, userrec*); ... void handle_kill(char **parameters, int pcnt, userrec *user)

When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'. The source parameter is used for resource tracking, and should contain the name of your module (with file extension) e.g. "m_blarp.so". If you place the wrong identifier here, you can cause crashes if your module is unloaded.

-Definition at line 495 of file modules.cpp. +Definition at line 487 of file modules.cpp.

-References createcommand().

00496 {
-00497         createcommand(cmd,f,flags,minparams,source);
-00498 }
+References createcommand().
00488 {
+00489         createcommand(cmd,f,flags,minparams,source);
+00490 }
 

@@ -391,11 +391,11 @@ Adds a E-line The E-line is enforced as soon as it is added.

The duration must be in seconds, however you can use the Server::CalcDuration method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name.

-Definition at line 758 of file modules.cpp. +Definition at line 731 of file modules.cpp.

-References add_eline().

00759 {
-00760         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
-00761 }
+References add_eline().
00732 {
+00733         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00734 }
 

@@ -435,14 +435,14 @@ This call is used to implement modes like +q and +a. The characteristics of thes (4) The mode and its parameter are NOT stored in the channels modes structure

It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use Server::Find to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing.

-Definition at line 663 of file modules.cpp. +Definition at line 655 of file modules.cpp.

-References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL.

00664 {
-00665         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
-00666         if (res)
-00667                 ModeMakeList(modechar);
-00668         return res;
-00669 }
+References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL.
00656 {
+00657         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
+00658         if (res)
+00659                 ModeMakeList(modechar);
+00660         return res;
+00661 }
 

@@ -504,34 +504,34 @@ Adds an extended mode letter which is parsed by a module.

This allows modules to add extra mode letters, e.g. +x for hostcloak. the "type" parameter is either MT_CHANNEL, MT_CLIENT, or MT_SERVER, to indicate wether the mode is a channel mode, a client mode, or a server mode. requires_oper is used with MT_CLIENT type modes only to indicate the mode can only be set or unset by an oper. If this is used for MT_CHANNEL type modes it is ignored. params_when_on is the number of modes to expect when the mode is turned on (for type MT_CHANNEL only), e.g. with mode +k, this would have a value of 1. the params_when_off value has a similar value to params_when_on, except it indicates the number of parameters to expect when the mode is disabled. Modes which act in a similar way to channel mode +l (e.g. require a parameter to enable, but not to disable) should use this parameter. The function returns false if the mode is unavailable, and will not attempt to allocate another character, as this will confuse users. This also means that as only one module can claim a specific mode character, the core does not need to keep track of which modules own which modes, which speeds up operation of the server. In this version, a mode can have at most one parameter, attempting to use more parameters will have undefined effects.

-Definition at line 635 of file modules.cpp. -

-References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER.

00636 {
-00637         if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z')))
-00638         {
-00639                 if (type == MT_SERVER)
-00640                 {
-00641                         log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
-00642                         return false;
-00643                 }
-00644                 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
-00645                 {
-00646                         log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
-00647                         return false;
-00648                 }
-00649                 if ((params_when_on>1) || (params_when_off>1))
-00650                 {
-00651                         log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
-00652                         return false;
-00653                 }
-00654                 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
-00655         }
-00656         else
-00657         {
-00658                 log(DEBUG,"*** API ERROR *** Muppet modechar detected.");
-00659         }
-00660         return false;
-00661 }
+Definition at line 627 of file modules.cpp.
+

+References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER.

00628 {
+00629         if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z')))
+00630         {
+00631                 if (type == MT_SERVER)
+00632                 {
+00633                         log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
+00634                         return false;
+00635                 }
+00636                 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
+00637                 {
+00638                         log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
+00639                         return false;
+00640                 }
+00641                 if ((params_when_on>1) || (params_when_off>1))
+00642                 {
+00643                         log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
+00644                         return false;
+00645                 }
+00646                 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
+00647         }
+00648         else
+00649         {
+00650                 log(DEBUG,"*** API ERROR *** Muppet modechar detected.");
+00651         }
+00652         return false;
+00653 }
 

@@ -587,11 +587,11 @@ Adds a G-line The G-line is propogated to all of the servers in the mesh and enf

The duration must be in seconds, however you can use the Server::CalcDuration method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name.

-Definition at line 738 of file modules.cpp. +Definition at line 711 of file modules.cpp.

-References add_gline().

00739 {
-00740         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
-00741 }
+References add_gline().
00712 {
+00713         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00714 }
 

@@ -647,11 +647,11 @@ Adds a K-line The K-line is enforced as soon as it is added.

The duration must be in seconds, however you can use the Server::CalcDuration method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name.

-Definition at line 753 of file modules.cpp. +Definition at line 726 of file modules.cpp.

-References add_kline().

00754 {
-00755         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
-00756 }
+References add_kline().
00727 {
+00728         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00729 }
 

@@ -707,11 +707,11 @@ Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enf

The duration must be in seconds, however you can use the Server::CalcDuration method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name.

-Definition at line 743 of file modules.cpp. +Definition at line 716 of file modules.cpp.

-References add_qline().

00744 {
-00745         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
-00746 }
+References add_qline().
00717 {
+00718         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
+00719 }
 

@@ -746,11 +746,11 @@ Adds a class derived from InspSocket

-Definition at line 402 of file modules.cpp. +Definition at line 394 of file modules.cpp.

-References module_sockets.

00403 {
-00404         module_sockets.push_back(sock);
-00405 }
+References module_sockets.
00395 {
+00396         module_sockets.push_back(sock);
+00397 }
 

@@ -806,11 +806,11 @@ Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enf

The duration must be in seconds, however you can use the Server::CalcDuration method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name.

-Definition at line 748 of file modules.cpp. +Definition at line 721 of file modules.cpp.

-References add_zline().

00749 {
-00750         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
-00751 }
+References add_zline().
00722 {
+00723         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
+00724 }
 

@@ -845,11 +845,11 @@ Calculates a duration This method will take a string containing a formatted dura

"1w2d") and return its value as a total number of seconds. This is the same function used internally by /GLINE etc to set the ban times.

-Definition at line 788 of file modules.cpp. +Definition at line 761 of file modules.cpp.

-References duration().

00789 {
-00790         return duration(delta.c_str());
-00791 }
+References duration().
00762 {
+00763         return duration(delta.c_str());
+00764 }
 

@@ -906,9 +906,9 @@ Calls the handler for a command, either implemented by the core or by another mo You can use this function to trigger other commands in the ircd, such as PRIVMSG, JOIN, KICK etc, or even as a method of callback. By defining command names that are untypeable for users on irc (e.g. those which contain a or
) you may use them as callback identifiers. The first parameter to this method is the name of the command handler you wish to call, e.g. PRIVMSG. This will be a command handler previously registered by the core or wih AddCommand(). The second parameter is an array of parameters, and the third parameter is a count of parameters in the array. If you do not pass enough parameters to meet the minimum needed by the handler, the functiom will silently ignore it. The final parameter is the user executing the command handler, used for privilage checks, etc.

-Definition at line 480 of file modules.cpp.

00481 {
-00482         call_handler(commandname.c_str(),parameters,pcnt,user);
-00483 }
+Definition at line 472 of file modules.cpp.
00473 {
+00474         call_handler(commandname.c_str(),parameters,pcnt,user);
+00475 }
 

@@ -952,11 +952,11 @@ Change GECOS (fullname) of a user.

You should always call this method to change a user's GECOS rather than writing directly to the fullname member of userrec, as any change applied via this method will be propogated to any linked servers.

-Definition at line 578 of file modules.cpp. +Definition at line 570 of file modules.cpp.

-References ChangeName().

00579 {
-00580         ChangeName(user,gecos.c_str());
-00581 }
+References ChangeName().
00571 {
+00572         ChangeName(user,gecos.c_str());
+00573 }
 

@@ -1000,11 +1000,11 @@ Change displayed hostname of a user.

You should always call this method to change a user's host rather than writing directly to the dhost member of userrec, as any change applied via this method will be propogated to any linked servers.

-Definition at line 573 of file modules.cpp. +Definition at line 565 of file modules.cpp.

-References ChangeDisplayedHost().

00574 {
-00575         ChangeDisplayedHost(user,host.c_str());
-00576 }
+References ChangeDisplayedHost().
00566 {
+00567         ChangeDisplayedHost(user,host.c_str());
+00568 }
 

@@ -1048,9 +1048,9 @@ Forces a user nickchange.

This command works similarly to SVSNICK, and can be used to implement Q-lines etc. If you specify an invalid nickname, the nick change will be dropped and the target user will receive the error numeric for it.

-Definition at line 465 of file modules.cpp.

00466 {
-00467         force_nickchange(user,nickname.c_str());
-00468 }
+Definition at line 457 of file modules.cpp.
00458 {
+00459         force_nickchange(user,nickname.c_str());
+00460 }
 

@@ -1094,11 +1094,11 @@ Attempts to look up a user's privilages on a channel.

This function will return a string containing either @, %, +, or an empty string, representing the user's privilages upon the channel you specify.

-Definition at line 603 of file modules.cpp. +Definition at line 595 of file modules.cpp.

-References cmode().

00604 {
-00605         return cmode(User,Chan);
-00606 }
+References cmode().
00596 {
+00597         return cmode(User,Chan);
+00598 }
 

@@ -1142,11 +1142,11 @@ Returns true if two users share a common channel.

This method is used internally by the NICK and QUIT commands, and the Server::SendCommon method.

-Definition at line 551 of file modules.cpp. +Definition at line 543 of file modules.cpp.

-References common_channels().

00552 {
-00553         return (common_channels(u1,u2) != 0);
-00554 }
+References common_channels().
00544 {
+00545         return (common_channels(u1,u2) != 0);
+00546 }
 

@@ -1181,9 +1181,9 @@ Returns a count of the number of users on a channel.

This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel.

-Definition at line 671 of file modules.cpp.

00672 {
-00673         return usercount(c);
-00674 }
+Definition at line 663 of file modules.cpp.
00664 {
+00665         return usercount(c);
+00666 }
 

@@ -1218,11 +1218,11 @@ Deletes a local E-Line.

-Definition at line 783 of file modules.cpp. +Definition at line 756 of file modules.cpp.

-References del_eline().

00784 {
-00785         return del_eline(hostmask.c_str());
-00786 }
+References del_eline().
00757 {
+00758         return del_eline(hostmask.c_str());
+00759 }
 

@@ -1257,11 +1257,11 @@ Deletes a G-Line from all servers on the mesh.

-Definition at line 763 of file modules.cpp. +Definition at line 736 of file modules.cpp.

-References del_gline().

00764 {
-00765         return del_gline(hostmask.c_str());
-00766 }
+References del_gline().
00737 {
+00738         return del_gline(hostmask.c_str());
+00739 }
 

@@ -1296,11 +1296,11 @@ Deletes a local K-Line.

-Definition at line 778 of file modules.cpp. +Definition at line 751 of file modules.cpp.

-References del_kline().

00779 {
-00780         return del_kline(hostmask.c_str());
-00781 }
+References del_kline().
00752 {
+00753         return del_kline(hostmask.c_str());
+00754 }
 

@@ -1335,11 +1335,11 @@ Deletes a Q-Line from all servers on the mesh.

-Definition at line 768 of file modules.cpp. +Definition at line 741 of file modules.cpp.

-References del_qline().

00769 {
-00770         return del_qline(nickname.c_str());
-00771 }
+References del_qline().
00742 {
+00743         return del_qline(nickname.c_str());
+00744 }
 

@@ -1374,18 +1374,18 @@ Deletes a class derived from InspSocke

-Definition at line 413 of file modules.cpp. +Definition at line 405 of file modules.cpp.

-References module_sockets.

00414 {
-00415         for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++)
-00416         {
-00417                 if (*a == sock)
-00418                 {
-00419                         module_sockets.erase(a);
-00420                         return;
-00421                 }
-00422         }
-00423 }
+References module_sockets.
00406 {
+00407         for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++)
+00408         {
+00409                 if (*a == sock)
+00410                 {
+00411                         module_sockets.erase(a);
+00412                         return;
+00413                 }
+00414         }
+00415 }
 

@@ -1420,11 +1420,11 @@ Deletes a Z-Line from all servers on the mesh.

-Definition at line 773 of file modules.cpp. +Definition at line 746 of file modules.cpp.

-References del_zline().

00774 {
-00775         return del_zline(ipaddr.c_str());
-00776 }
+References del_zline().
00747 {
+00748         return del_zline(ipaddr.c_str());
+00749 }
 

@@ -1459,9 +1459,9 @@ Attempts to look up a channel and return a pointer to it.

This function will return NULL if the channel does not exist.

-Definition at line 598 of file modules.cpp.

00599 {
-00600         return FindChan(channel.c_str());
-00601 }
+Definition at line 590 of file modules.cpp.
00591 {
+00592         return FindChan(channel.c_str());
+00593 }
 

@@ -1496,9 +1496,9 @@ Attempts to look up a nick using the file descriptor associated with that nick.

This function will return NULL if the file descriptor is not associated with a valid user.

-Definition at line 593 of file modules.cpp.

00594 {
-00595         return (socket < 65536 ? fd_ref_table[socket] : NULL);
-00596 }
+Definition at line 585 of file modules.cpp.
00586 {
+00587         return (socket < 65536 ? fd_ref_table[socket] : NULL);
+00588 }
 

@@ -1533,18 +1533,18 @@ This function finds a module by name.

You must provide the filename of the module. If the module cannot be found (is not loaded) the function will return NULL.

-Definition at line 822 of file modules.cpp. -

-References MODCOUNT, module_names, and modules.

00823 {
-00824         for (int i = 0; i <= MODCOUNT; i++)
-00825         {
-00826                 if (module_names[i] == name)
-00827                 {
-00828                         return modules[i];
-00829                 }
-00830         }
-00831         return NULL;
-00832 }
+Definition at line 795 of file modules.cpp.
+

+References MODCOUNT, module_names, and modules.

00796 {
+00797         for (int i = 0; i <= MODCOUNT; i++)
+00798         {
+00799                 if (module_names[i] == name)
+00800                 {
+00801                         return modules[i];
+00802                 }
+00803         }
+00804         return NULL;
+00805 }
 

@@ -1579,9 +1579,9 @@ Attempts to look up a nick and return a pointer to it.

This function will return NULL if the nick does not exist.

-Definition at line 588 of file modules.cpp.

00589 {
-00590         return Find(nick);
-00591 }
+Definition at line 580 of file modules.cpp.
00581 {
+00582         return Find(nick);
+00583 }
 

@@ -1615,9 +1615,9 @@ Returns the information of the server as returned by the /ADMIN command.

See the Admin class for further information of the return value. The members Admin::Nick, Admin::Email and Admin::Name contain the information for the server where the module is loaded.

-Definition at line 628 of file modules.cpp.

00629 {
-00630         return Admin(getadminname(),getadminemail(),getadminnick());
-00631 }
+Definition at line 620 of file modules.cpp.
00621 {
+00622         return Admin(getadminname(),getadminemail(),getadminnick());
+00623 }
 

@@ -1651,9 +1651,9 @@ Returns the network name, global to all linked servers.

-Definition at line 618 of file modules.cpp.

00619 {
-00620         return getnetworkname();
-00621 }
+Definition at line 610 of file modules.cpp.
00611 {
+00612         return getnetworkname();
+00613 }
 

@@ -1687,9 +1687,9 @@ Returns the server description string of the local server.

-Definition at line 623 of file modules.cpp.

00624 {
-00625         return getserverdesc();
-00626 }
+Definition at line 615 of file modules.cpp.
00616 {
+00617         return getserverdesc();
+00618 }
 

@@ -1723,9 +1723,9 @@ Returns the server name of the server where the module is loaded.

-Definition at line 613 of file modules.cpp.

00614 {
-00615         return getservername();
-00616 }
+Definition at line 605 of file modules.cpp.
00606 {
+00607         return getservername();
+00608 }
 

@@ -1760,19 +1760,19 @@ Fetches the userlist of a channel.

This function must be here and not a member of userrec or chanrec due to include constraints.

-Definition at line 453 of file modules.cpp. -

-References chanrec::GetUsers(), and list.

00454 {
-00455         chanuserlist userl;
-00456         userl.clear();
-00457         std::vector<char*> *list = chan->GetUsers();
-00458         for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++)
-00459         {
-00460                 char* o = *i;
-00461                 userl.push_back((userrec*)o);
-00462         }
-00463         return userl;
-00464 }
+Definition at line 445 of file modules.cpp.
+

+References chanrec::GetUsers(), and list.

00446 {
+00447         chanuserlist userl;
+00448         userl.clear();
+00449         std::vector<char*> *list = chan->GetUsers();
+00450         for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++)
+00451         {
+00452                 char* o = *i;
+00453                 userl.push_back((userrec*)o);
+00454         }
+00455         return userl;
+00456 }
 

@@ -1807,11 +1807,11 @@ Returns true if a nick is valid.

Nicks for unregistered connections will return false.

-Definition at line 583 of file modules.cpp. +Definition at line 575 of file modules.cpp.

-References isnick().

00584 {
-00585         return (isnick(nick.c_str()) != 0);
-00586 }
+References isnick().
00576 {
+00577         return (isnick(nick.c_str()) != 0);
+00578 }
 

@@ -1855,11 +1855,11 @@ Checks if a user is on a channel.

This function will return true or false to indicate if user 'User' is on channel 'Chan'.

-Definition at line 608 of file modules.cpp. +Definition at line 600 of file modules.cpp.

-References has_channel().

00609 {
-00610         return has_channel(User,Chan);
-00611 }
+References has_channel().
00601 {
+00602         return has_channel(User,Chan);
+00603 }
 

@@ -1894,11 +1894,11 @@ Returns true if the servername you give is ulined.

ULined servers have extra privilages. They are allowed to change nicknames on remote servers, change modes of clients which are on remote servers and set modes of channels where there are no channel operators for that channel on the ulined server, amongst other things. Ulined server data is also broadcast across the mesh at all times as opposed to selectively messaged in the case of normal servers, as many ulined server types (such as services) do not support meshed links and must operate in this manner.

-Definition at line 475 of file modules.cpp. +Definition at line 467 of file modules.cpp.

-References is_uline().

00476 {
-00477         return is_uline(server.c_str());
-00478 }
+References is_uline().
00468 {
+00469         return is_uline(server.c_str());
+00470 }
 

@@ -1933,33 +1933,33 @@ Returns true if a nick!ident string is correctly formatted, false if otherwise.

-Definition at line 793 of file modules.cpp.

00794 {
-00795         const char* dest = mask.c_str();
-00796         if (strchr(dest,'!')==0)
-00797                 return false;
-00798         if (strchr(dest,'@')==0)
-00799                 return false;
-00800         for (unsigned int i = 0; i < strlen(dest); i++)
-00801                 if (dest[i] < 32)
-00802                         return false;
-00803         for (unsigned int i = 0; i < strlen(dest); i++)
-00804                 if (dest[i] > 126)
-00805                         return false;
-00806         unsigned int c = 0;
-00807         for (unsigned int i = 0; i < strlen(dest); i++)
-00808                 if (dest[i] == '!')
-00809                         c++;
-00810         if (c>1)
-00811                 return false;
-00812         c = 0;
-00813         for (unsigned int i = 0; i < strlen(dest); i++)
-00814                 if (dest[i] == '@')
-00815                         c++;
-00816         if (c>1)
-00817                 return false;
-00818 
-00819         return true;
-00820 }
+Definition at line 766 of file modules.cpp.
00767 {
+00768         const char* dest = mask.c_str();
+00769         if (strchr(dest,'!')==0)
+00770                 return false;
+00771         if (strchr(dest,'@')==0)
+00772                 return false;
+00773         for (unsigned int i = 0; i < strlen(dest); i++)
+00774                 if (dest[i] < 32)
+00775                         return false;
+00776         for (unsigned int i = 0; i < strlen(dest); i++)
+00777                 if (dest[i] > 126)
+00778                         return false;
+00779         unsigned int c = 0;
+00780         for (unsigned int i = 0; i < strlen(dest); i++)
+00781                 if (dest[i] == '!')
+00782                         c++;
+00783         if (c>1)
+00784                 return false;
+00785         c = 0;
+00786         for (unsigned int i = 0; i < strlen(dest); i++)
+00787                 if (dest[i] == '@')
+00788                         c++;
+00789         if (c>1)
+00790                 return false;
+00791 
+00792         return true;
+00793 }
 

@@ -2007,9 +2007,9 @@ Definition at line 793

-Definition at line 485 of file modules.cpp.

00486 {
-00487         return is_valid_cmd(commandname.c_str(), pcnt, user);
-00488 }
+Definition at line 477 of file modules.cpp.
00478 {
+00479         return is_valid_cmd(commandname.c_str(), pcnt, user);
+00480 }
 

@@ -2059,9 +2059,9 @@ Forces a user to join a channel.

This is similar to svsjoin and can be used to implement redirection, etc. On success, the return value is a valid pointer to a chanrec* of the channel the user was joined to. On failure, the result is NULL.

-Definition at line 443 of file modules.cpp.

00444 {
-00445         return add_channel(user,cname.c_str(),key.c_str(),false);
-00446 }
+Definition at line 435 of file modules.cpp.
00436 {
+00437         return add_channel(user,cname.c_str(),key.c_str(),false);
+00438 }
 

@@ -2105,9 +2105,9 @@ Writes a log string.

This method writes a line of text to the log. If the level given is lower than the level given in the configuration, this command has no effect.

-Definition at line 490 of file modules.cpp.

00491 {
-00492         log(level,"%s",s.c_str());
-00493 }
+Definition at line 482 of file modules.cpp.
00483 {
+00484         log(level,"%s",s.c_str());
+00485 }
 

@@ -2151,12 +2151,12 @@ Matches text against a glob pattern.

Uses the ircd's internal matching function to match string against a globbing pattern, e.g. *!*@*.com Returns true if the literal successfully matches the pattern, false if otherwise.

-Definition at line 430 of file modules.cpp.

00431 {
-00432         char literal[MAXBUF],pattern[MAXBUF];
-00433         strlcpy(literal,sliteral.c_str(),MAXBUF);
-00434         strlcpy(pattern,spattern.c_str(),MAXBUF);
-00435         return match(literal,pattern);
-00436 }
+Definition at line 422 of file modules.cpp.
00423 {
+00424         char literal[MAXBUF],pattern[MAXBUF];
+00425         strlcpy(literal,sliteral.c_str(),MAXBUF);
+00426         strlcpy(pattern,spattern.c_str(),MAXBUF);
+00427         return match(literal,pattern);
+00428 }
 

@@ -2206,9 +2206,9 @@ Forces a user to part a channel.

This is similar to svspart and can be used to implement redirection, etc. Although the return value of this function is a pointer to a channel record, the returned data is undefined and should not be read or written to. This behaviour may be changed in a future version.

-Definition at line 448 of file modules.cpp.

00449 {
-00450         return del_channel(user,cname.c_str(),reason.c_str(),false);
-00451 }
+Definition at line 440 of file modules.cpp.
00441 {
+00442         return del_channel(user,cname.c_str(),reason.c_str(),false);
+00443 }
 

@@ -2258,36 +2258,36 @@ This user takes one user, and switches their file descriptor with another user,

The user in 'alive' is booted off the server with the given message. The user referred to by 'zombie' should have previously been locked with Server::ZombifyUser, otherwise stale sockets and file descriptor leaks can occur. After this call, the pointer to alive will be invalid, and the pointer to zombie will be equivalent in effect to the old pointer to alive.

-Definition at line 708 of file modules.cpp. -

-References ucrec::channel, userrec::chans, userrec::ClearBuffer(), connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset.

00709 {
-00710         zombie->fd = alive->fd;
-00711         alive->fd = FD_MAGIC_NUMBER;
-00712         alive->ClearBuffer();
-00713         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
-00714         kill_link(alive,message.c_str());
-00715         fd_ref_table[zombie->fd] = zombie;
-00716         for (int i = 0; i != MAXCHANS; i++)
-00717         {
-00718                 if (zombie->chans[i].channel != NULL)
-00719                 {
-00720                         if (zombie->chans[i].channel->name)
-00721                         {
-00722                                 chanrec* Ptr = zombie->chans[i].channel;
-00723                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
-00724                                 if (Ptr->topicset)
-00725                                 {
-00726                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
-00727                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
-00728                                 }
-00729                                 userlist(zombie,Ptr);
-00730                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
-00731 
-00732                         }
-00733                 }
-00734         }
-00735         return true;
-00736 }
+Definition at line 681 of file modules.cpp.
+

+References ucrec::channel, userrec::chans, userrec::ClearBuffer(), connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset.

00682 {
+00683         zombie->fd = alive->fd;
+00684         alive->fd = FD_MAGIC_NUMBER;
+00685         alive->ClearBuffer();
+00686         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
+00687         kill_link(alive,message.c_str());
+00688         fd_ref_table[zombie->fd] = zombie;
+00689         for (int i = 0; i != MAXCHANS; i++)
+00690         {
+00691                 if (zombie->chans[i].channel != NULL)
+00692                 {
+00693                         if (zombie->chans[i].channel->name)
+00694                         {
+00695                                 chanrec* Ptr = zombie->chans[i].channel;
+00696                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
+00697                                 if (Ptr->topicset)
+00698                                 {
+00699                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
+00700                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
+00701                                 }
+00702                                 userlist(zombie,Ptr);
+00703                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
+00704 
+00705                         }
+00706                 }
+00707         }
+00708         return true;
+00709 }
 

@@ -2333,9 +2333,9 @@ To the user, it will appear as if they typed /QUIT themselves, except for the fa WARNING!

Once you call this function, userrec* user will immediately become INVALID. You MUST NOT write to, or read from this pointer after calling the QuitUser method UNDER ANY CIRCUMSTANCES! The best course of action after calling this method is to immediately bail from your handler.

-Definition at line 470 of file modules.cpp.

00471 {
-00472         kill_link(user,reason.c_str());
-00473 }
+Definition at line 462 of file modules.cpp.
00463 {
+00464         kill_link(user,reason.c_str());
+00465 }
 

@@ -2367,10 +2367,10 @@ Definition at line 470

-Definition at line 407 of file modules.cpp.

00408 {
-00409         WriteOpers("*** Rehashing config file");
-00410         ReadConfig(false,NULL);
-00411 }
+Definition at line 399 of file modules.cpp.
00400 {
+00401         WriteOpers("*** Rehashing config file");
+00402         ReadConfig(false,NULL);
+00403 }
 

@@ -2414,9 +2414,9 @@ Sends a line of text down a TCP/IP socket.

This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required.

-Definition at line 505 of file modules.cpp.

00506 {
-00507         Write(Socket,"%s",s.c_str());
-00508 }
+Definition at line 497 of file modules.cpp.
00498 {
+00499         Write(Socket,"%s",s.c_str());
+00500 }
 

@@ -2472,16 +2472,16 @@ Sends text from a user to a channel (mulicast).

This method writes a line of text to a channel, with the given user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in MODE (see RFC 1459).

-Definition at line 539 of file modules.cpp.

00540 {
-00541         if (IncludeSender)
-00542         {
-00543                 WriteChannel(Channel,User,"%s",s.c_str());
-00544         }
-00545         else
-00546         {
-00547                 ChanExceptSender(Channel,User,"%s",s.c_str());
-00548         }
-00549 }
+Definition at line 531 of file modules.cpp.
00532 {
+00533         if (IncludeSender)
+00534         {
+00535                 WriteChannel(Channel,User,"%s",s.c_str());
+00536         }
+00537         else
+00538         {
+00539                 ChanExceptSender(Channel,User,"%s",s.c_str());
+00540         }
+00541 }
 

@@ -2531,9 +2531,9 @@ Writes text to a channel, but from a server, including all.

This can be used to send server notices to a group of users.

-Definition at line 534 of file modules.cpp.

00535 {
-00536         WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str());
-00537 }
+Definition at line 526 of file modules.cpp.
00527 {
+00528         WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str());
+00529 }
 

@@ -2583,16 +2583,16 @@ Sends text from a user to one or more channels (mulicast).

This method writes a line of text to all users which share a common channel with a given user, with the user's nick/ident/host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it is only sent to the other recipients, as seen in QUIT.

-Definition at line 556 of file modules.cpp.

00557 {
-00558         if (IncludeSender)
-00559         {
-00560                 WriteCommon(User,"%s",text.c_str());
-00561         }
-00562         else
-00563         {
-00564                 WriteCommonExcept(User,"%s",text.c_str());
-00565         }
-00566 }
+Definition at line 548 of file modules.cpp.
00549 {
+00550         if (IncludeSender)
+00551         {
+00552                 WriteCommon(User,"%s",text.c_str());
+00553         }
+00554         else
+00555         {
+00556                 WriteCommonExcept(User,"%s",text.c_str());
+00557         }
+00558 }
 

@@ -2642,9 +2642,9 @@ Sends text from a user to a socket.

This method writes a line of text to an established socket, with the given user's nick/ident /host combination prepended, as used in PRIVSG etc commands (see RFC 1459)

-Definition at line 515 of file modules.cpp.

00516 {
-00517         WriteFrom(Socket,User,"%s",s.c_str());
-00518 }
+Definition at line 507 of file modules.cpp.
00508 {
+00509         WriteFrom(Socket,User,"%s",s.c_str());
+00510 }
 

@@ -2701,11 +2701,11 @@ modes[2] = user->nick;

Srv->SendMode(modes,3,user);

The modes will originate from the server where the command was issued, however responses (e.g. numerics) will be sent to the user you provide as the third parameter. You must be sure to get the number of parameters correct in the pcnt parameter otherwise you could leave your server in an unstable state!

-Definition at line 500 of file modules.cpp. +Definition at line 492 of file modules.cpp.

-References server_mode().

00501 {
-00502         server_mode(parameters,pcnt,user);
-00503 }
+References server_mode().
00493 {
+00494         server_mode(parameters,pcnt,user);
+00495 }
 

@@ -2740,9 +2740,9 @@ Sends text to all opers.

This method sends a server notice to all opers with the usermode +s.

-Definition at line 425 of file modules.cpp.

00426 {
-00427         WriteOpers("%s",s.c_str());
-00428 }
+Definition at line 417 of file modules.cpp.
00418 {
+00419         WriteOpers("%s",s.c_str());
+00420 }
 

@@ -2786,9 +2786,9 @@ Sends text from the server to a socket.

This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459)

-Definition at line 510 of file modules.cpp.

00511 {
-00512         WriteServ(Socket,"%s",s.c_str());
-00513 }
+Definition at line 502 of file modules.cpp.
00503 {
+00504         WriteServ(Socket,"%s",s.c_str());
+00505 }
 

@@ -2842,20 +2842,20 @@ The format will become:

:localserver TEXT

Which is useful for numerics and server notices to single users, etc.

-Definition at line 520 of file modules.cpp. -

-References connection::fd.

00521 {
-00522         if (!Source)
-00523         {
-00524                 // if source is NULL, then the message originates from the local server
-00525                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
-00526         }
-00527         else
-00528         {
-00529                 // otherwise it comes from the user specified
-00530                 WriteTo(Source,Dest,"%s",s.c_str());
-00531         }
-00532 }
+Definition at line 512 of file modules.cpp.
+

+References connection::fd.

00513 {
+00514         if (!Source)
+00515         {
+00516                 // if source is NULL, then the message originates from the local server
+00517                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
+00518         }
+00519         else
+00520         {
+00521                 // otherwise it comes from the user specified
+00522                 WriteTo(Source,Dest,"%s",s.c_str());
+00523         }
+00524 }
 

@@ -2907,9 +2907,9 @@ These can be RFC specified modes such as +i, or module provided modes, including Serv->SendToModeMask("xi", WM_OR, "m00");

Then the text 'm00' will be sent to all users with EITHER mode x or i. Conversely if you used WM_AND, the user must have both modes set to receive the message.

-Definition at line 438 of file modules.cpp.

00439 {
-00440         WriteMode(modes.c_str(),flags,"%s",text.c_str());
-00441 }
+Definition at line 430 of file modules.cpp.
00431 {
+00432         WriteMode(modes.c_str(),flags,"%s",text.c_str());
+00433 }
 

@@ -2953,9 +2953,9 @@ Sends a WALLOPS message.

This method writes a WALLOPS message to all users with the +w flag, originating from the specified user.

-Definition at line 568 of file modules.cpp.

00569 {
-00570         WriteWallOps(User,false,"%s",text.c_str());
-00571 }
+Definition at line 560 of file modules.cpp.
00561 {
+00562         WriteWallOps(User,false,"%s",text.c_str());
+00563 }
 

@@ -2999,37 +2999,18 @@ Remove a user's connection to the irc server, but leave their client in existenc

When you call this function, the user's file descriptor will be replaced with the value of FD_MAGIC_NUMBER and their old file descriptor will be closed. This idle client will remain until it is restored with a valid file descriptor, or is removed from IRC by an operator After this call, the pointer to user will be invalid.

-Definition at line 677 of file modules.cpp. -

-References userrec::ClearBuffer(), DEBUG, connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident.

00678 {
-00679         unsigned int old_fd = user->fd;
-00680         user->fd = FD_MAGIC_NUMBER;
-00681         user->ClearBuffer();
-00682         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
-00683 #ifdef USE_KQUEUE
-00684         struct kevent ke;
-00685         EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL);
-00686         int i = kevent(kq, &ke, 1, 0, 0, NULL);
-00687         if (i == -1)
-00688         {
-00689                 log(DEBUG,"kqueue: Failed to remove user from queue!");
-00690         }
-00691 #endif
-00692 #ifdef USE_EPOLL
-00693         struct epoll_event ev;
-00694         ev.events = EPOLLIN | EPOLLET;
-00695         ev.data.fd = old_fd;
-00696         int i = epoll_ctl(ep, EPOLL_CTL_DEL, old_fd, &ev);
-00697         if (i < 0)
-00698         {
-00699                 log(DEBUG,"epoll: List deletion failure!");
-00700         }
-00701 #endif
-00702 
-00703         shutdown(old_fd,2);
-00704         close(old_fd);
-00705         return true;
-00706 }
+Definition at line 669 of file modules.cpp.
+

+References userrec::ClearBuffer(), SocketEngine::DelFd(), connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident.

00670 {
+00671         unsigned int old_fd = user->fd;
+00672         user->fd = FD_MAGIC_NUMBER;
+00673         user->ClearBuffer();
+00674         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
+00675         SE->DelFd(old_fd);
+00676         shutdown(old_fd,2);
+00677         close(old_fd);
+00678         return true;
+00679 }
 

@@ -3037,7 +3018,7 @@ References userrec::ClearBuff


The documentation for this class was generated from the following files: -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classSocketEngine-members.html b/docs/module-doc/classSocketEngine-members.html new file mode 100644 index 000000000..a8b279438 --- /dev/null +++ b/docs/module-doc/classSocketEngine-members.html @@ -0,0 +1,24 @@ + + +InspIRCd: Member List + + + + +

SocketEngine Member List

This is the complete list of members for SocketEngine, including all inherited members.

+ + + + + + + + + + + +
AddFd(int fd, bool readable, char type)SocketEngine
DelFd(int fd)SocketEngine
EngineHandleSocketEngine [private]
fdsSocketEngine [private]
GetName()SocketEngine
GetType(int fd)SocketEngine
ke_listSocketEngine [private]
SocketEngine()SocketEngine
tsSocketEngine [private]
Wait(std::vector< int > &fdlist)SocketEngine
~SocketEngine()SocketEngine


Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/classSocketEngine.html b/docs/module-doc/classSocketEngine.html new file mode 100644 index 000000000..a72e347c6 --- /dev/null +++ b/docs/module-doc/classSocketEngine.html @@ -0,0 +1,599 @@ + + +InspIRCd: SocketEngine Class Reference + + + + +

SocketEngine Class Reference

The actual socketengine class presents the same interface on all operating systems, but its private members and internal behaviour should be treated as blackboxed, and vary from system to system and upon the config settings chosen by the server admin. +More... +

+#include <socketengine.h> +

+Collaboration diagram for SocketEngine:

Collaboration graph
+
[legend]
List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 SocketEngine ()
 Constructor The constructor transparently initializes the socket engine which the ircd is using.
 ~SocketEngine ()
 Destructor The destructor transparently tidies up any resources used by the socket engine.
bool AddFd (int fd, bool readable, char type)
 Add a file descriptor to the engine Use AddFd to add a file descriptor to the engine and have the socket engine monitor it.
char GetType (int fd)
 Returns the type value for this file descriptor This function masks off the X_READBIT value so that the type of the socket can be obtained.
bool DelFd (int fd)
 Delete a file descriptor f rom the engine This function call deletes a file descriptor from the engine, returning true if it succeeded and false if it failed.
bool Wait (std::vector< int > &fdlist)
 Waits for an event.
std::string GetName ()
 Returns the socket engines name This returns the name of the engine for use in /VERSION responses.

Private Attributes

std::vector< int > fds
int EngineHandle
kevent ke_list [65535]
timespec ts
+

Detailed Description

+The actual socketengine class presents the same interface on all operating systems, but its private members and internal behaviour should be treated as blackboxed, and vary from system to system and upon the config settings chosen by the server admin. +

+The current version supports select, epoll and kqueue. +

+ +

+Definition at line 66 of file socketengine.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + +
SocketEngine::SocketEngine  ) 
+
+ + + + + +
+   + + +

+Constructor The constructor transparently initializes the socket engine which the ircd is using. +

+Please note that if there is a catastrophic failure (for example, you try and enable epoll on a 2.4 linux kernel) then this function may bail back to the shell. +

+Definition at line 35 of file socketengine.cpp. +

+References DEBUG, and EngineHandle.

00036 {
+00037         log(DEBUG,"SocketEngine::SocketEngine()");
+00038 #ifdef USE_EPOLL
+00039         EngineHandle = epoll_create(65535);
+00040 #endif
+00041 #ifdef USE_KQUEUE
+00042         EngineHandle = kqueue();
+00043 #endif
+00044 }
+
+

+

+

+ + + + +
+ + + + + + + + +
SocketEngine::~SocketEngine  ) 
+
+ + + + + +
+   + + +

+Destructor The destructor transparently tidies up any resources used by the socket engine. +

+ +

+Definition at line 46 of file socketengine.cpp. +

+References DEBUG, and EngineHandle.

00047 {
+00048         log(DEBUG,"SocketEngine::~SocketEngine()");
+00049 #ifdef USE_EPOLL
+00050         close(EngineHandle);
+00051 #endif
+00052 #ifdef USE_KQUEUE
+00053         close(EngineHandle);
+00054 #endif
+00055 }
+
+

+

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool SocketEngine::AddFd int  fd,
bool  readable,
char  type
+
+ + + + + +
+   + + +

+Add a file descriptor to the engine Use AddFd to add a file descriptor to the engine and have the socket engine monitor it. +

+You must provide a type (see the consts in socketengine.h) and a boolean flag to indicate wether to watch this fd for read or write events (there is currently no need for support of both). +

+Definition at line 65 of file socketengine.cpp. +

+References DEBUG, EngineHandle, fds, ref, and X_READBIT. +

+Referenced by InspSocket::InspSocket(), and InspSocket::Poll().

00066 {
+00067         if ((fd < 0) || (fd > 65535))
+00068                 return false;
+00069         this->fds.push_back(fd);
+00070         ref[fd] = type;
+00071         if (readable)
+00072         {
+00073                 log(DEBUG,"Set readbit");
+00074                 ref[fd] |= X_READBIT;
+00075         }
+00076         log(DEBUG,"Add socket %d",fd);
+00077 #ifdef USE_EPOLL
+00078         struct epoll_event ev;
+00079         log(DEBUG,"epoll: Add socket to events, ep=%d socket=%d",EngineHandle,fd);
+00080         readable ? ev.events = EPOLLIN | EPOLLET : ev.events = EPOLLOUT | EPOLLET;
+00081         ev.data.fd = fd;
+00082         int i = epoll_ctl(EngineHandle, EPOLL_CTL_ADD, fd, &ev);
+00083         if (i < 0)
+00084         {
+00085                 log(DEBUG,"epoll: List insertion failure!");
+00086                 return false;
+00087         }
+00088 #endif
+00089 #ifdef USE_KQUEUE
+00090         struct kevent ke;
+00091         log(DEBUG,"kqueue: Add socket to events, kq=%d socket=%d",EngineHandle,fd);
+00092         EV_SET(&ke, fd, readable ? EVFILT_READ : EVFILT_WRITE, EV_ADD, 0, 0, NULL);
+00093         int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL);
+00094         if (i == -1)
+00095         {
+00096                 log(DEBUG,"kqueue: List insertion failure!");
+00097                 return false;
+00098         }
+00099 #endif
+00100 return true;
+00101 }
+
+

+

+

+ + + + +
+ + + + + + + + + +
bool SocketEngine::DelFd int  fd  ) 
+
+ + + + + +
+   + + +

+Delete a file descriptor f rom the engine This function call deletes a file descriptor from the engine, returning true if it succeeded and false if it failed. +

+ +

+Definition at line 103 of file socketengine.cpp. +

+References DEBUG, EngineHandle, fds, ref, and X_READBIT. +

+Referenced by InspSocket::Poll(), and Server::UserToPseudo().

00104 {
+00105         log(DEBUG,"SocketEngine::DelFd(%d)",fd);
+00106 
+00107         if ((fd < 0) || (fd > 65535))
+00108                 return false;
+00109 
+00110         bool found = false;
+00111         for (std::vector<int>::iterator i = fds.begin(); i != fds.end(); i++)
+00112         {
+00113                 if (*i == fd)
+00114                 {
+00115                         fds.erase(i);
+00116                         log(DEBUG,"Deleted fd %d",fd);
+00117                         found = true;
+00118                         break;
+00119                 }
+00120         }
+00121 #ifdef USE_KQUEUE
+00122         struct kevent ke;
+00123         EV_SET(&ke, fd, ref[fd] && X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL);
+00124         int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL);
+00125         if (i == -1)
+00126         {
+00127                 log(DEBUG,"kqueue: Failed to remove socket from queue!");
+00128                 return false;
+00129         }
+00130 #endif
+00131 #ifdef USE_EPOLL
+00132         struct epoll_event ev;
+00133         ref[fd] && X_READBIT ? ev.events = EPOLLIN | EPOLLET : ev.events = EPOLLOUT | EPOLLET;
+00134         ev.data.fd = fd;
+00135         int i = epoll_ctl(EngineHandle, EPOLL_CTL_DEL, fd, &ev);
+00136         if (i < 0)
+00137         {
+00138                 log(DEBUG,"epoll: List deletion failure!");
+00139                 return false;
+00140         }
+00141 #endif
+00142         ref[fd] = 0;
+00143         return found;
+00144 }
+
+

+

+

+ + + + +
+ + + + + + + + +
std::string SocketEngine::GetName  ) 
+
+ + + + + +
+   + + +

+Returns the socket engines name This returns the name of the engine for use in /VERSION responses. +

+ +

+Definition at line 196 of file socketengine.cpp.

00197 {
+00198 #ifdef USE_SELECT
+00199         return "select";
+00200 #endif
+00201 #ifdef USE_KQUEUE
+00202         return "kqueue";
+00203 #endif
+00204 #ifdef USE_EPOLL
+00205         return "epoll";
+00206 #endif
+00207         return "misconfigured";
+00208 }
+
+

+

+

+ + + + +
+ + + + + + + + + +
char SocketEngine::GetType int  fd  ) 
+
+ + + + + +
+   + + +

+Returns the type value for this file descriptor This function masks off the X_READBIT value so that the type of the socket can be obtained. +

+The core uses this to decide where to dispatch the event to. Please note that some engines such as select() have an upper limit of 1024 descriptors which may be active at any one time, where others such as kqueue have no practical limits at all. +

+Definition at line 57 of file socketengine.cpp. +

+References ref, and X_EMPTY_SLOT.

00058 {
+00059         if ((fd < 0) || (fd > 65535))
+00060                 return X_EMPTY_SLOT;
+00061         /* Mask off the top bit used for 'read/write' state */
+00062         return (ref[fd] & ~0x80);
+00063 }
+
+

+

+

+ + + + +
+ + + + + + + + + +
bool SocketEngine::Wait std::vector< int > &  fdlist  ) 
+
+ + + + + +
+   + + +

+Waits for an event. +

+Please note that this doesnt wait long, only a couple of milliseconds. It returns a list of active file descriptors in the vector fdlist which the core may then act upon. +

+Definition at line 146 of file socketengine.cpp. +

+References DEBUG, EngineHandle, fds, ke_list, ref, ts, and X_READBIT.

00147 {
+00148         fdlist.clear();
+00149 #ifdef USE_SELECT
+00150         FD_ZERO(&wfdset);
+00151         FD_ZERO(&rfdset);
+00152         timeval tval;
+00153         int sresult;
+00154         for (unsigned int a = 0; a < fds.size(); a++)
+00155         {
+00156                 if (ref[fds[a]] & X_READBIT)
+00157                 {
+00158                         FD_SET (fds[a], &rfdset);
+00159                 }
+00160                 else
+00161                 {
+00162                         FD_SET (fds[a], &wfdset);
+00163                 }
+00164                 
+00165         }
+00166         tval.tv_sec = 0;
+00167         tval.tv_usec = 1000L;
+00168         sresult = select(FD_SETSIZE, &rfdset, &wfdset, NULL, &tval);
+00169         if (sresult > 0)
+00170         {
+00171                 for (unsigned int a = 0; a < fds.size(); a++)
+00172                 {
+00173                         if ((FD_ISSET (fds[a], &rfdset)) || (FD_ISSET (fds[a], &wfdset)))
+00174                         {
+00175                                 log(DEBUG,"...Adding active %d",fds[a]);
+00176                                 fdlist.push_back(fds[a]);
+00177                         }
+00178                 }
+00179         }
+00180 #endif
+00181 #ifdef USE_KQUEUE
+00182         ts.tv_nsec = 1000L;
+00183         ts.tv_sec = 0;
+00184         int i = kevent(EngineHandle, NULL, 0, &ke_list[0], 65535, &ts);
+00185         for (int j = 0; j < i; j++)
+00186                 fdlist.push_back(ke_list[j].ident);
+00187 #endif
+00188 #ifdef USE_EPOLL
+00189         int i = epoll_wait(EngineHandle, events, 65535, 1);
+00190         for (int j = 0; j < i; j++)
+00191                 fdlist.push_back(events[j].data.fd);
+00192 #endif
+00193         return true;
+00194 }
+
+

+

+


Member Data Documentation

+

+ + + + +
+ + + + +
int SocketEngine::EngineHandle [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 69 of file socketengine.h. +

+Referenced by AddFd(), DelFd(), SocketEngine(), Wait(), and ~SocketEngine().

+

+ + + + +
+ + + + +
std::vector<int> SocketEngine::fds [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 68 of file socketengine.h. +

+Referenced by AddFd(), DelFd(), and Wait().

+

+ + + + +
+ + + + +
struct kevent SocketEngine::ke_list[65535] [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 74 of file socketengine.h. +

+Referenced by Wait().

+

+ + + + +
+ + + + +
struct timespec SocketEngine::ts [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 75 of file socketengine.h. +

+Referenced by Wait().

+


The documentation for this class was generated from the following files: +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/classSocketEngine__coll__graph.gif b/docs/module-doc/classSocketEngine__coll__graph.gif new file mode 100644 index 000000000..c54e9e7b7 Binary files /dev/null and b/docs/module-doc/classSocketEngine__coll__graph.gif differ diff --git a/docs/module-doc/classSocketEngine__coll__graph.map b/docs/module-doc/classSocketEngine__coll__graph.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/classSocketEngine__coll__graph.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/classSocketEngine__coll__graph.md5 b/docs/module-doc/classSocketEngine__coll__graph.md5 new file mode 100644 index 000000000..6f5c85054 --- /dev/null +++ b/docs/module-doc/classSocketEngine__coll__graph.md5 @@ -0,0 +1 @@ +baef8ac2d5158fc84cfa300ed15ca731 \ No newline at end of file diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index 8685101ac..fa2140fe8 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 Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 634494f3d..6f91bb877 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -97,7 +97,7 @@ Definition at line 113 of

-Definition at line 246 of file modules.cpp.

00246 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
+Definition at line 240 of file modules.cpp.
00240 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
 

@@ -231,7 +231,7 @@ Definition at line 116 of


The documentation for this class was generated from the following files: -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classWhoWasUser-members.html b/docs/module-doc/classWhoWasUser-members.html index a5c9aa762..aae9c561b 100644 --- a/docs/module-doc/classWhoWasUser-members.html +++ b/docs/module-doc/classWhoWasUser-members.html @@ -13,7 +13,7 @@ nickWhoWasUser serverWhoWasUser signonWhoWasUser -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classWhoWasUser.html b/docs/module-doc/classWhoWasUser.html index 5bfbf3f63..66f48e4a3 100644 --- a/docs/module-doc/classWhoWasUser.html +++ b/docs/module-doc/classWhoWasUser.html @@ -212,7 +212,7 @@ Definition at line 341 of f
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classXLine-members.html b/docs/module-doc/classXLine-members.html index 4ec53d0f6..b751438ee 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 Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 8af097557..d2fec8883 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -185,7 +185,7 @@ Definition at line 48 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classZLine-members.html b/docs/module-doc/classZLine-members.html index b0a42f011..8b7754a80 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 Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index afe33572b..9a567f65d 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -92,7 +92,7 @@ Definition at line 103 of f
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index daaf0b7de..559978229 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -34,7 +34,7 @@ topicsetchanrec ~chanrec()chanrec [inline, virtual] ~classbase()classbase [inline] -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index 3d4ba950a..c002e97f0 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -398,7 +398,7 @@ Definition at line 215

References internal_userlist.

-Referenced by Server::GetUsers().

00216 {
+Referenced by Server::GetUsers().
00216 {
 00217         return &internal_userlist;
 00218 }
 
@@ -842,7 +842,7 @@ The channels name.

Definition at line 106 of file channels.h.

-Referenced by chanrec(), DelUser(), and Server::PseudoToUser(). +Referenced by chanrec(), DelUser(), and Server::PseudoToUser().

@@ -871,7 +871,7 @@ If this member is an empty string, no topic was ever set.

Definition at line 131 of file channels.h.

-Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), and Server::PseudoToUser().

@@ -900,7 +900,7 @@ If this is an empty string, no channel topic is set.

Definition at line 120 of file channels.h.

-Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), and Server::PseudoToUser().

@@ -929,12 +929,12 @@ If no topic was ever set, this will be equal to 127 of file channels.h.

-Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), and Server::PseudoToUser().


The documentation for this class was generated from the following files: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index 10d979f6f..8fde18403 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index 39acb09ff..26e65cea2 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -149,7 +149,7 @@ Referenced by classbase().
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index aeb511356..93d93de1a 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -20,7 +20,7 @@ total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index aad0922e0..a39647317 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -242,7 +242,7 @@ Definition at line 43 of
The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index 1cafc344e..526508484 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -28,7 +28,7 @@ Shrink(std::string key)Extensible signonconnection ~classbase()classbase [inline] -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 258877c45..499728b68 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -258,7 +258,7 @@ File descriptor of the connection.

Definition at line 42 of file connection.h.

-Referenced by connection(), ConfigReader::DumpErrors(), Server::PseudoToUser(), Server::SendTo(), userrec::userrec(), and Server::UserToPseudo(). +Referenced by connection(), ConfigReader::DumpErrors(), Server::PseudoToUser(), Server::SendTo(), userrec::userrec(), and Server::UserToPseudo().

@@ -316,7 +316,7 @@ Not used if this is a serverrec

Definition at line 46 of file connection.h.

-Referenced by userrec::GetFullRealHost(), Server::PseudoToUser(), userrec::userrec(), and Server::UserToPseudo(). +Referenced by userrec::GetFullRealHost(), Server::PseudoToUser(), userrec::userrec(), and Server::UserToPseudo().

@@ -524,7 +524,7 @@ Referenced by userrec::userre


The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index bc1966cbd..8523459b1 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -9,25 +9,25 @@
  A  
  D  
-
GLine   KLine   StrHashComp (irc)   
Admin   DNS   
  H  
+
  H  
  M  
-
  U  
+
StrHashComp (irc)   
Admin   DNS   hash< in_addr > (nspace)   ModeParameter   
  U  
  B  
-
dns_ip4list   hash< in_addr > (nspace)   ModeParameter   ucrec   
BanItem   
  E  
-
hash< string > (nspace)   Module   userrec   
BoolSet   ELine   HostItem   ModuleFactory   
  V  
+
dns_ip4list   hash< string > (nspace)   Module   ucrec   
BanItem   
  E  
+
HostItem   ModuleFactory   userrec   
BoolSet   ELine   
  I  
+
ModuleMessage   
  V  
  C  
-
Event   
  I  
-
ModuleMessage   Version   
chanrec   ExemptItem   InAddr_HashComp (irc)   
  Q  
-
  W  
-
char_traits (std)   Extensible   InspSocket   QLine   WhoWasUser   
classbase   ExtMode   Invited   
  R  
-
  X  
+
Event   InAddr_HashComp (irc)   
  Q  
+
Version   
chanrec   ExemptItem   InspSocket   QLine   
  W  
+
char_traits (std)   Extensible   Invited   
  R  
+
WhoWasUser   
classbase   ExtMode   InviteItem   Request   
  X  
command_t   
  F  
-
InviteItem   Request   XLine   
ConfigReader   FileReader   irc_char_traits (irc)   
  S  
-
  Z  
+
irc_char_traits (irc)   
  S  
+
XLine   
ConfigReader   FileReader   
  K  
+
Server   
  Z  
ConnectClass   
  G  
-
  K  
-
Server   ZLine   
connection   

A | B | C | D | E | F | G | H | I | K | M | Q | R | S | U | V | W | X | Z

-


Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +KLine   SocketEngine   ZLine   connection   GLine   

A | B | C | D | E | F | G | H | I | K | M | Q | R | S | U | V | W | X | Z

+


Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classstd_1_1char__traits.html b/docs/module-doc/classstd_1_1char__traits.html index 3843fbc07..94449e457 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index c95b71f14..1cdbd989c 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 Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index 356b90092..6a72898f6 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -133,7 +133,7 @@ If the record is not in use, this value will be NULL.

Definition at line 252 of file channels.h.

-Referenced by Server::PseudoToUser(), and userrec::userrec(). +Referenced by Server::PseudoToUser(), and userrec::userrec().

@@ -167,7 +167,7 @@ Referenced by userrec::userre


The documentation for this class was generated from the following file: -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index fbd98bf62..c7211dd44 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 [virtual] -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 93514f343..5a510f25d 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -432,7 +432,7 @@ Definition at line 239 of

References recvq.

-Referenced by Server::PseudoToUser(), and Server::UserToPseudo().

00240 {
+Referenced by Server::PseudoToUser(), and Server::UserToPseudo().
00240 {
 00241         recvq = "";
 00242 }
 
@@ -1121,7 +1121,7 @@ Referenced by userrec().

Definition at line 149 of file users.h.

-Referenced by Server::PseudoToUser(), and userrec(). +Referenced by Server::PseudoToUser(), and userrec().

@@ -1266,7 +1266,7 @@ Two characters are added to the user-defined limit to compensate for the tilde e

Definition at line 129 of file users.h.

-Referenced by GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), userrec(), and Server::UserToPseudo(). +Referenced by GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), userrec(), and Server::UserToPseudo().

@@ -1382,7 +1382,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma

Definition at line 124 of file users.h.

-Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), and userrec(). +Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), and userrec().

@@ -1723,7 +1723,7 @@ Referenced by GetWriteError()


The documentation for this class was generated from the following files: -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/commands_8h-source.html b/docs/module-doc/commands_8h-source.html index ca09eb05e..1db272adc 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -97,7 +97,7 @@ 00094 void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long idle, char* nick); 00095 00096 #endif -

Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +

Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index 1c25411f7..e2f1117e3 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -232,7 +232,7 @@ Other useful functions.

-Referenced by Server::CalcDuration(). +Referenced by Server::CalcDuration().

@@ -2459,10 +2459,10 @@ Functions for u:lined servers.

-Referenced by userrec::HasPermission(), and Server::IsUlined(). +Referenced by userrec::HasPermission(), and Server::IsUlined(). -


Generated on Fri Dec 9 20:20:06 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index 1953b03c1..9d0f8371a 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -82,7 +82,7 @@ 00107 #endif 00108 00109 -

Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +

Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index 2b2d28e2a..776ab1ec7 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -49,7 +49,7 @@ This graph shows which files directly or indirectly include this file:

 Please note: classes serverrec and userrec both inherit from class connection. More...
-
Generated on Fri Dec 9 20:20:07 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index 7f3a4cfee..a45b68c2e 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -44,7 +44,7 @@ 00051 00052 #endif 00053 -

Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +

Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index b2f9ac1e7..d382e1855 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -33,7 +33,7 @@ This graph shows which files directly or indirectly include this file:

 A structure that defines a command. More...
-
Generated on Fri Dec 9 20:20:07 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dir_000000.html b/docs/module-doc/dir_000000.html index 03db9192d..c18e67912 100644 --- a/docs/module-doc/dir_000000.html +++ b/docs/module-doc/dir_000000.html @@ -20,7 +20,7 @@ directory  brain -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dir_000001.html b/docs/module-doc/dir_000001.html index b1836c3da..a6969f290 100644 --- a/docs/module-doc/dir_000001.html +++ b/docs/module-doc/dir_000001.html @@ -21,7 +21,7 @@ directory  inspircd-cvs -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dir_000002.html b/docs/module-doc/dir_000002.html index 71c2a48c1..c4df31939 100644 --- a/docs/module-doc/dir_000002.html +++ b/docs/module-doc/dir_000002.html @@ -21,7 +21,7 @@ directory  inspircd -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dir_000003.html b/docs/module-doc/dir_000003.html index bf667456c..49e0f5830 100644 --- a/docs/module-doc/dir_000003.html +++ b/docs/module-doc/dir_000003.html @@ -26,7 +26,7 @@ directory  src -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dir_000003_dep.gif b/docs/module-doc/dir_000003_dep.gif index dae021b5f..ee9742f9e 100644 Binary files a/docs/module-doc/dir_000003_dep.gif and b/docs/module-doc/dir_000003_dep.gif differ diff --git a/docs/module-doc/dir_000004.html b/docs/module-doc/dir_000004.html index b66c766e7..2b855c5e1 100644 --- a/docs/module-doc/dir_000004.html +++ b/docs/module-doc/dir_000004.html @@ -39,12 +39,14 @@ file  socket.h [code] +file  socketengine.h [code] + file  users.h [code] file  xline.h [code] -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:13 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dir_000005.html b/docs/module-doc/dir_000005.html index 16c8b902f..febda588a 100644 --- a/docs/module-doc/dir_000005.html +++ b/docs/module-doc/dir_000005.html @@ -26,10 +26,12 @@ file  socket.cpp [code] +file  socketengine.cpp [code] + file  users.cpp [code] -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dir_000005_000004.html b/docs/module-doc/dir_000005_000004.html index f47ca4652..49e94e7db 100644 --- a/docs/module-doc/dir_000005_000004.html +++ b/docs/module-doc/dir_000005_000004.html @@ -7,7 +7,7 @@ -

src → include Relation

File in home » brain » inspircd-cvs » inspircd » srcIncludes file in home » brain » inspircd-cvs » inspircd » include
channels.cppctables.h
channels.cppmessage.h
channels.cppmode.h
channels.cppmodules.h
channels.cppusers.h
channels.cppxline.h
modules.cppcommands.h
modules.cppctables.h
modules.cpphashcomp.h
modules.cppmessage.h
modules.cppmode.h
modules.cppmodules.h
modules.cppsocket.h
modules.cppusers.h
modules.cppxline.h
socket.cppsocket.h
users.cppchannels.h
users.cppcommands.h
users.cppconnection.h
users.cppusers.h

Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +

src → include Relation

File in home » brain » inspircd-cvs » inspircd » srcIncludes file in home » brain » inspircd-cvs » inspircd » include
channels.cppctables.h
channels.cppmessage.h
channels.cppmode.h
channels.cppmodules.h
channels.cppusers.h
channels.cppxline.h
modules.cppcommands.h
modules.cppctables.h
modules.cpphashcomp.h
modules.cppmessage.h
modules.cppmode.h
modules.cppmodules.h
modules.cppsocket.h
modules.cppsocketengine.h
modules.cppusers.h
modules.cppxline.h
socket.cppsocket.h
socket.cppsocketengine.h
socketengine.cppsocketengine.h
users.cppchannels.h
users.cppcommands.h
users.cppconnection.h
users.cppusers.h

Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dir_000005_dep.gif b/docs/module-doc/dir_000005_dep.gif index 48c70077f..e6c88b20b 100644 Binary files a/docs/module-doc/dir_000005_dep.gif and b/docs/module-doc/dir_000005_dep.gif differ diff --git a/docs/module-doc/dirs.html b/docs/module-doc/dirs.html index c70d30179..a33209f1f 100644 --- a/docs/module-doc/dirs.html +++ b/docs/module-doc/dirs.html @@ -21,7 +21,7 @@ -
Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dns_8h-source.html b/docs/module-doc/dns_8h-source.html index 3592f2d79..ad54df4a4 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -67,14 +67,15 @@ 00076 bool ReverseLookup(std::string ip); 00080 bool ForwardLookup(std::string host); 00084 bool HasResult(); -00088 std::string GetResult(); -00089 std::string GetResultIP(); -00093 int GetFD(); -00094 void SetNS(std::string dnsserver); -00095 }; -00096 -00097 #endif -

Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +00087 bool HasResult(int fd); +00091 std::string GetResult(); +00092 std::string GetResultIP(); +00096 int GetFD(); +00097 void SetNS(std::string dnsserver); +00098 }; +00099 +00100 #endif +

Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dns_8h.html b/docs/module-doc/dns_8h.html index 78f3494fa..bf5993b5c 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -25,7 +25,7 @@ Include dependency graph for dns.h:

 The DNS class allows fast nonblocking resolution of hostnames and ip addresses. More...
-
Generated on Fri Dec 9 20:20:07 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 48a64d4d7..1cad808e7 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -20,11 +20,13 @@ modules.h [code] socket.cpp [code] socket.h [code] + socketengine.cpp [code] + socketengine.h [code] users.cpp [code] users.h [code] xline.h [code] -
Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +
Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 0df95c18b..da8e12bf9 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -17,7 +17,8 @@ Here is a list of all class members with links to the classes they belong to: : Server
  • AddELine() : Server
  • AddExtendedListMode() : Server
  • AddExtendedMode() -: Server
  • AddGLine() +: Server
  • AddFd() +: SocketEngine
  • AddGLine() : Server
  • AddKLine() : Server
  • AddQLine() : Server
  • addr @@ -30,7 +31,7 @@ Here is a list of all class members with links to the classes they belong to: : Admin
  • age : classbase
  • awaymsg : userrec -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x62.html b/docs/module-doc/functions_0x62.html index 8635fc1e1..ca4ccda13 100644 --- a/docs/module-doc/functions_0x62.html +++ b/docs/module-doc/functions_0x62.html @@ -22,7 +22,7 @@ Here is a list of all class members with links to the classes they belong to: : Version
  • bytes_in : connection
  • bytes_out : connection -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x63.html b/docs/module-doc/functions_0x63.html index cc252bbdd..8afefb497 100644 --- a/docs/module-doc/functions_0x63.html +++ b/docs/module-doc/functions_0x63.html @@ -40,7 +40,7 @@ Here is a list of all class members with links to the classes they belong to: : chanrec
  • CreateModule() : ModuleFactory
  • custom_modes : chanrec -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x64.html b/docs/module-doc/functions_0x64.html index 76871dddc..4c23e9686 100644 --- a/docs/module-doc/functions_0x64.html +++ b/docs/module-doc/functions_0x64.html @@ -14,7 +14,8 @@ Here is a list of all class members with links to the classes they belong to:

    - d -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x65.html b/docs/module-doc/functions_0x65.html index 02b9a2ba2..55656f892 100644 --- a/docs/module-doc/functions_0x65.html +++ b/docs/module-doc/functions_0x65.html @@ -13,7 +13,8 @@ Here is a list of all class members with links to the classes they belong to:

    - e -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x66.html b/docs/module-doc/functions_0x66.html index 97c99e69e..c26a01b0a 100644 --- a/docs/module-doc/functions_0x66.html +++ b/docs/module-doc/functions_0x66.html @@ -14,7 +14,8 @@ Here is a list of all class members with links to the classes they belong to:

    - f -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x67.html b/docs/module-doc/functions_0x67.html index 3aa990b92..384b0cbf4 100644 --- a/docs/module-doc/functions_0x67.html +++ b/docs/module-doc/functions_0x67.html @@ -22,25 +22,28 @@ Here is a list of all class members with links to the classes they belong to: : Event
  • GetExt() : Extensible
  • GetExtList() : Extensible
  • GetFD() -: DNS
  • GetFullHost() +: DNS
  • GetFd() +: InspSocket
  • GetFullHost() : userrec
  • GetFullRealHost() : userrec
  • GetInviteList() : userrec
  • GetIP() : InspSocket
  • GetLine() : FileReader
  • GetModeParameter() -: chanrec
  • GetNetworkName() +: chanrec
  • GetName() +: SocketEngine
  • GetNetworkName() : Server
  • GetResult() : DNS
  • GetResultIP() : DNS
  • GetServerDescription() : Server
  • GetServerName() : Server
  • GetSource() : Event, Request
  • GetState() -: InspSocket
  • GetUserCounter() +: InspSocket
  • GetType() +: SocketEngine
  • GetUserCounter() : chanrec
  • GetUsers() : Server, chanrec
  • GetVersion() : Module
  • GetWriteError() : userrec -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x68.html b/docs/module-doc/functions_0x68.html index aa9f5b2a3..9d4b1203d 100644 --- a/docs/module-doc/functions_0x68.html +++ b/docs/module-doc/functions_0x68.html @@ -16,11 +16,11 @@ Here is a list of all class members with links to the classes they belong to: : command_t
  • haspassed : connection
  • HasPermission() : userrec
  • HasResult() -: DNS
  • host +: DNS
  • host : WhoWasUser, ConnectClass, InspSocket, connection
  • HostItem() : HostItem
  • hostmask : ELine, GLine, KLine -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x69.html b/docs/module-doc/functions_0x69.html index 72b2753e6..aec5cb261 100644 --- a/docs/module-doc/functions_0x69.html +++ b/docs/module-doc/functions_0x69.html @@ -33,7 +33,7 @@ Here is a list of all class members with links to the classes they belong to: : Server
  • IsValidMask() : Server
  • IsValidModuleCommand() : Server -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x6a.html b/docs/module-doc/functions_0x6a.html index c6a887f10..ce6c5d605 100644 --- a/docs/module-doc/functions_0x6a.html +++ b/docs/module-doc/functions_0x6a.html @@ -14,7 +14,7 @@ Here is a list of all class members with links to the classes they belong to:

    - j -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x6b.html b/docs/module-doc/functions_0x6b.html index 4bd07cec1..7860dfc34 100644 --- a/docs/module-doc/functions_0x6b.html +++ b/docs/module-doc/functions_0x6b.html @@ -12,9 +12,10 @@ Here is a list of all class members with links to the classes they belong to:

    - k -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x6c.html b/docs/module-doc/functions_0x6c.html index 4b74b1f07..df2d2d97d 100644 --- a/docs/module-doc/functions_0x6c.html +++ b/docs/module-doc/functions_0x6c.html @@ -22,7 +22,7 @@ Here is a list of all class members with links to the classes they belong to: : DNS
  • Log() : Server
  • lt() : irc::irc_char_traits -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x6d.html b/docs/module-doc/functions_0x6d.html index 36fab4466..90e3eacf7 100644 --- a/docs/module-doc/functions_0x6d.html +++ b/docs/module-doc/functions_0x6d.html @@ -23,7 +23,7 @@ Here is a list of all class members with links to the classes they belong to: : Module
  • ModuleFactory() : ModuleFactory
  • myfd : DNS -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x6e.html b/docs/module-doc/functions_0x6e.html index 82ece27a8..3979262a6 100644 --- a/docs/module-doc/functions_0x6e.html +++ b/docs/module-doc/functions_0x6e.html @@ -22,7 +22,7 @@ Here is a list of all class members with links to the classes they belong to: : QLine, WhoWasUser, userrec
  • Nick : Admin
  • nping : connection -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x6f.html b/docs/module-doc/functions_0x6f.html index 273043f39..3c84e1ed8 100644 --- a/docs/module-doc/functions_0x6f.html +++ b/docs/module-doc/functions_0x6f.html @@ -101,7 +101,7 @@ Here is a list of all class members with links to the classes they belong to: : BoolSet
  • operator==() : BoolSet
  • operator|() : BoolSet -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x70.html b/docs/module-doc/functions_0x70.html index 03c02540b..e62e3ed4e 100644 --- a/docs/module-doc/functions_0x70.html +++ b/docs/module-doc/functions_0x70.html @@ -27,7 +27,7 @@ Here is a list of all class members with links to the classes they belong to: : Module
  • ProtoSendMode() : Module
  • PseudoToUser() : Server -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x71.html b/docs/module-doc/functions_0x71.html index 1b21da48c..3e95b7f62 100644 --- a/docs/module-doc/functions_0x71.html +++ b/docs/module-doc/functions_0x71.html @@ -14,7 +14,7 @@ Here is a list of all class members with links to the classes they belong to:

    - q -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x72.html b/docs/module-doc/functions_0x72.html index 1ba629ddb..cb4155777 100644 --- a/docs/module-doc/functions_0x72.html +++ b/docs/module-doc/functions_0x72.html @@ -31,7 +31,7 @@ Here is a list of all class members with links to the classes they belong to: : DNS
  • ReverseLookup() : DNS
  • Revision : Version -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x73.html b/docs/module-doc/functions_0x73.html index 670a7add6..01732c8cd 100644 --- a/docs/module-doc/functions_0x73.html +++ b/docs/module-doc/functions_0x73.html @@ -25,9 +25,9 @@ Here is a list of all class members with links to the classes they belong to: : Server
  • SendTo() : Server
  • SendToModeMask() : Server
  • SendWallops() -: Server
  • Server() -: Server
  • server -: WhoWasUser, userrec, InspSocket
  • Set() +: Server
  • server +: WhoWasUser, userrec, InspSocket
  • Server() +: Server
  • Set() : BoolSet
  • set_by : HostItem
  • set_time : XLine, HostItem
  • setby @@ -38,10 +38,11 @@ Here is a list of all class members with links to the classes they belong to: : InspSocket
  • SetWriteError() : userrec
  • Shrink() : Extensible
  • signon -: WhoWasUser, connection
  • source +: WhoWasUser, connection
  • SocketEngine() +: SocketEngine
  • source : XLine, Event, Request, command_t
  • state : InspSocket -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x74.html b/docs/module-doc/functions_0x74.html index e5b4c63e6..92977c130 100644 --- a/docs/module-doc/functions_0x74.html +++ b/docs/module-doc/functions_0x74.html @@ -19,9 +19,10 @@ Here is a list of all class members with links to the classes they belong to: : InspSocket
  • topic : chanrec
  • topicset : chanrec
  • total_bytes -: command_t
  • type +: command_t
  • ts +: SocketEngine
  • type : ConnectClass, ExtMode -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x75.html b/docs/module-doc/functions_0x75.html index 180c2f94a..1e0014869 100644 --- a/docs/module-doc/functions_0x75.html +++ b/docs/module-doc/functions_0x75.html @@ -19,7 +19,7 @@ Here is a list of all class members with links to the classes they belong to: : command_t
  • userrec() : userrec
  • UserToPseudo() : Server -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x76.html b/docs/module-doc/functions_0x76.html index dab31d1d2..928770ea5 100644 --- a/docs/module-doc/functions_0x76.html +++ b/docs/module-doc/functions_0x76.html @@ -15,7 +15,7 @@ Here is a list of all class members with links to the classes they belong to:
  • Verify() : ConfigReader
  • Version() : Version -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x77.html b/docs/module-doc/functions_0x77.html index a941840f5..5a1e4e13c 100644 --- a/docs/module-doc/functions_0x77.html +++ b/docs/module-doc/functions_0x77.html @@ -12,10 +12,11 @@ Here is a list of all class members with links to the classes they belong to:

    - w -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x7e.html b/docs/module-doc/functions_0x7e.html index 9dc3acf39..d9efe16ae 100644 --- a/docs/module-doc/functions_0x7e.html +++ b/docs/module-doc/functions_0x7e.html @@ -23,10 +23,11 @@ Here is a list of all class members with links to the classes they belong to: : Module
  • ~ModuleFactory() : ModuleFactory
  • ~ModuleMessage() : ModuleMessage
  • ~Server() -: Server
  • ~ucrec() +: Server
  • ~SocketEngine() +: SocketEngine
  • ~ucrec() : ucrec
  • ~userrec() : userrec -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func.html b/docs/module-doc/functions_func.html index b55529db1..efc460e78 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -17,7 +17,8 @@ : Server
  • AddELine() : Server
  • AddExtendedListMode() : Server
  • AddExtendedMode() -: Server
  • AddGLine() +: Server
  • AddFd() +: SocketEngine
  • AddGLine() : Server
  • AddKLine() : Server
  • AddQLine() : Server
  • AddSocket() @@ -26,7 +27,7 @@ : userrec
  • AddZLine() : Server
  • Admin() : Admin -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x62.html b/docs/module-doc/functions_func_0x62.html index d8fabd11d..d866aeaba 100644 --- a/docs/module-doc/functions_func_0x62.html +++ b/docs/module-doc/functions_func_0x62.html @@ -15,7 +15,7 @@
  • BoolSet() : BoolSet
  • BufferIsReady() : userrec -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x63.html b/docs/module-doc/functions_func_0x63.html index dc64e11e8..5b83f3647 100644 --- a/docs/module-doc/functions_func_0x63.html +++ b/docs/module-doc/functions_func_0x63.html @@ -31,7 +31,7 @@ : connection
  • CountUsers() : Server
  • CreateModule() : ModuleFactory -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x64.html b/docs/module-doc/functions_func_0x64.html index 74e2d3955..b074353cf 100644 --- a/docs/module-doc/functions_func_0x64.html +++ b/docs/module-doc/functions_func_0x64.html @@ -13,7 +13,8 @@

    - d -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x65.html b/docs/module-doc/functions_func_0x65.html index c5ee4b0ec..16a1752f6 100644 --- a/docs/module-doc/functions_func_0x65.html +++ b/docs/module-doc/functions_func_0x65.html @@ -20,7 +20,7 @@ : FileReader
  • Extend() : Extensible
  • ExtMode() : ExtMode -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x66.html b/docs/module-doc/functions_func_0x66.html index 510742533..d0da525dc 100644 --- a/docs/module-doc/functions_func_0x66.html +++ b/docs/module-doc/functions_func_0x66.html @@ -22,7 +22,7 @@ : Server
  • FlushWriteBuf() : userrec
  • ForwardLookup() : DNS -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x67.html b/docs/module-doc/functions_func_0x67.html index 5d267f5a7..eb3e22b0d 100644 --- a/docs/module-doc/functions_func_0x67.html +++ b/docs/module-doc/functions_func_0x67.html @@ -22,25 +22,28 @@ : Event
  • GetExt() : Extensible
  • GetExtList() : Extensible
  • GetFD() -: DNS
  • GetFullHost() +: DNS
  • GetFd() +: InspSocket
  • GetFullHost() : userrec
  • GetFullRealHost() : userrec
  • GetInviteList() : userrec
  • GetIP() : InspSocket
  • GetLine() : FileReader
  • GetModeParameter() -: chanrec
  • GetNetworkName() +: chanrec
  • GetName() +: SocketEngine
  • GetNetworkName() : Server
  • GetResult() : DNS
  • GetResultIP() : DNS
  • GetServerDescription() : Server
  • GetServerName() : Server
  • GetSource() : Event, Request
  • GetState() -: InspSocket
  • GetUserCounter() +: InspSocket
  • GetType() +: SocketEngine
  • GetUserCounter() : chanrec
  • GetUsers() : Server, chanrec
  • GetVersion() : Module
  • GetWriteError() : userrec -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x68.html b/docs/module-doc/functions_func_0x68.html index e0e409921..424d6dca5 100644 --- a/docs/module-doc/functions_func_0x68.html +++ b/docs/module-doc/functions_func_0x68.html @@ -14,9 +14,9 @@

    - h -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x69.html b/docs/module-doc/functions_func_0x69.html index 9e93b7aff..60baef982 100644 --- a/docs/module-doc/functions_func_0x69.html +++ b/docs/module-doc/functions_func_0x69.html @@ -23,7 +23,7 @@ : Server
  • IsValidMask() : Server
  • IsValidModuleCommand() : Server -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x6a.html b/docs/module-doc/functions_func_0x6a.html index 757b8cb26..2d7252493 100644 --- a/docs/module-doc/functions_func_0x6a.html +++ b/docs/module-doc/functions_func_0x6a.html @@ -14,7 +14,7 @@

    - j -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x6c.html b/docs/module-doc/functions_func_0x6c.html index 7e3280d0d..8366b7684 100644 --- a/docs/module-doc/functions_func_0x6c.html +++ b/docs/module-doc/functions_func_0x6c.html @@ -16,7 +16,7 @@ : FileReader
  • Log() : Server
  • lt() : irc::irc_char_traits -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x6d.html b/docs/module-doc/functions_func_0x6d.html index 0e37cd85f..6105d60fa 100644 --- a/docs/module-doc/functions_func_0x6d.html +++ b/docs/module-doc/functions_func_0x6d.html @@ -16,7 +16,7 @@ : Server
  • Module() : Module
  • ModuleFactory() : ModuleFactory -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x6e.html b/docs/module-doc/functions_func_0x6e.html index 3ed36337b..b6626e775 100644 --- a/docs/module-doc/functions_func_0x6e.html +++ b/docs/module-doc/functions_func_0x6e.html @@ -14,7 +14,7 @@

    - n -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x6f.html b/docs/module-doc/functions_func_0x6f.html index e6578ed59..610c361b9 100644 --- a/docs/module-doc/functions_func_0x6f.html +++ b/docs/module-doc/functions_func_0x6f.html @@ -100,7 +100,7 @@ : BoolSet
  • operator==() : BoolSet
  • operator|() : BoolSet -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x70.html b/docs/module-doc/functions_func_0x70.html index bb1445439..d50720191 100644 --- a/docs/module-doc/functions_func_0x70.html +++ b/docs/module-doc/functions_func_0x70.html @@ -18,7 +18,7 @@ : Module
  • ProtoSendMode() : Module
  • PseudoToUser() : Server -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x71.html b/docs/module-doc/functions_func_0x71.html index d56b67c39..1de44bcdf 100644 --- a/docs/module-doc/functions_func_0x71.html +++ b/docs/module-doc/functions_func_0x71.html @@ -14,7 +14,7 @@

    - q -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x72.html b/docs/module-doc/functions_func_0x72.html index f7aa962f5..a5d52c426 100644 --- a/docs/module-doc/functions_func_0x72.html +++ b/docs/module-doc/functions_func_0x72.html @@ -22,7 +22,7 @@ : userrec
  • Request() : Request
  • ReverseLookup() : DNS -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x73.html b/docs/module-doc/functions_func_0x73.html index 49bc58b11..ec44f899b 100644 --- a/docs/module-doc/functions_func_0x73.html +++ b/docs/module-doc/functions_func_0x73.html @@ -31,8 +31,9 @@ : DNS
  • SetState() : InspSocket
  • SetWriteError() : userrec
  • Shrink() -: Extensible -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +: Extensible
  • SocketEngine() +: SocketEngine +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x75.html b/docs/module-doc/functions_func_0x75.html index b1361ba6b..78d5bd02e 100644 --- a/docs/module-doc/functions_func_0x75.html +++ b/docs/module-doc/functions_func_0x75.html @@ -17,7 +17,7 @@ : BoolSet
  • userrec() : userrec
  • UserToPseudo() : Server -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x76.html b/docs/module-doc/functions_func_0x76.html index aa027ef44..d3dc097e2 100644 --- a/docs/module-doc/functions_func_0x76.html +++ b/docs/module-doc/functions_func_0x76.html @@ -15,7 +15,7 @@
  • Verify() : ConfigReader
  • Version() : Version -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x77.html b/docs/module-doc/functions_func_0x77.html index 3676cdc03..2e4999b37 100644 --- a/docs/module-doc/functions_func_0x77.html +++ b/docs/module-doc/functions_func_0x77.html @@ -12,9 +12,10 @@

    - w -

    -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x7e.html b/docs/module-doc/functions_func_0x7e.html index 622a97666..8351332bf 100644 --- a/docs/module-doc/functions_func_0x7e.html +++ b/docs/module-doc/functions_func_0x7e.html @@ -23,10 +23,11 @@ : Module
  • ~ModuleFactory() : ModuleFactory
  • ~ModuleMessage() : ModuleMessage
  • ~Server() -: Server
  • ~ucrec() +: Server
  • ~SocketEngine() +: SocketEngine
  • ~ucrec() : ucrec
  • ~userrec() : userrec -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_vars.html b/docs/module-doc/functions_vars.html index b21c7c3fc..583e73498 100644 --- a/docs/module-doc/functions_vars.html +++ b/docs/module-doc/functions_vars.html @@ -46,14 +46,16 @@ : XLine

    - e -

    - f -

    - k -

    - l -

    - u -

    -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x62.html b/docs/module-doc/globals_0x62.html index a01f0ba9a..3736bf385 100644 --- a/docs/module-doc/globals_0x62.html +++ b/docs/module-doc/globals_0x62.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -16,7 +16,7 @@ Here is a list of all file members with links to the files they belong to: : channels.h

  • Blocking() : message.h
  • boundPortCount : socket.cpp, modules.cpp, channels.cpp -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x63.html b/docs/module-doc/globals_0x63.html index 0f45a335a..6402de662 100644 --- a/docs/module-doc/globals_0x63.html +++ b/docs/module-doc/globals_0x63.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -44,7 +44,7 @@ Here is a list of all file members with links to the files they belong to: : modules.h

  • cstatus() : message.h
  • custom_mode_params : channels.cpp -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x64.html b/docs/module-doc/globals_0x64.html index 5a7f2ed96..59201cb86 100644 --- a/docs/module-doc/globals_0x64.html +++ b/docs/module-doc/globals_0x64.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -27,7 +27,7 @@ Here is a list of all file members with links to the files they belong to: : commands.h

  • DoAddExtendedMode() : modules.cpp
  • duration() : commands.h -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x65.html b/docs/module-doc/globals_0x65.html index 2f995ffa1..3f764033f 100644 --- a/docs/module-doc/globals_0x65.html +++ b/docs/module-doc/globals_0x65.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -19,7 +19,7 @@ Here is a list of all file members with links to the files they belong to: : xline.h

  • ExtModeList : modules.cpp
  • ExtModeListIter : modules.cpp -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x66.html b/docs/module-doc/globals_0x66.html index eac6148da..355633acc 100644 --- a/docs/module-doc/globals_0x66.html +++ b/docs/module-doc/globals_0x66.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -19,7 +19,7 @@ Here is a list of all file members with links to the files they belong to: : modules.h

  • FOREACH_MOD : modules.h
  • FOREACH_RESULT : modules.h -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x67.html b/docs/module-doc/globals_0x67.html index aa017cc5b..ef9d32a1a 100644 --- a/docs/module-doc/globals_0x67.html +++ b/docs/module-doc/globals_0x67.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -17,7 +17,7 @@ Here is a list of all file members with links to the files they belong to: : mode.h

  • give_voice() : mode.h
  • gline_set_creation_time() : xline.h -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x68.html b/docs/module-doc/globals_0x68.html index 0e6638fcf..73650fd16 100644 --- a/docs/module-doc/globals_0x68.html +++ b/docs/module-doc/globals_0x68.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -67,7 +67,7 @@ Here is a list of all file members with links to the files they belong to: : commands.h

  • has_channel() : message.h
  • hasumode() : message.h -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x69.html b/docs/module-doc/globals_0x69.html index 213276dfc..1dd2bdc77 100644 --- a/docs/module-doc/globals_0x69.html +++ b/docs/module-doc/globals_0x69.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -32,7 +32,7 @@ Here is a list of all file members with links to the files they belong to: : commands.h

  • isident() : message.h
  • isnick() : message.h -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x6c.html b/docs/module-doc/globals_0x6c.html index a259a082d..4bc276884 100644 --- a/docs/module-doc/globals_0x6c.html +++ b/docs/module-doc/globals_0x6c.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -16,7 +16,7 @@ Here is a list of all file members with links to the files they belong to: : modules.cpp, channels.cpp

  • log_file : socket.cpp, modules.cpp, channels.cpp
  • LogLevel : modules.cpp, channels.cpp -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x6d.html b/docs/module-doc/globals_0x6d.html index 60f02466a..e20a9795f 100644 --- a/docs/module-doc/globals_0x6d.html +++ b/docs/module-doc/globals_0x6d.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -37,7 +37,7 @@ Here is a list of all file members with links to the files they belong to: : modules.h

  • MT_CLIENT : modules.h
  • MT_SERVER : modules.h -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x6e.html b/docs/module-doc/globals_0x6e.html index 094bf1732..c307dd2c1 100644 --- a/docs/module-doc/globals_0x6e.html +++ b/docs/module-doc/globals_0x6e.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -19,7 +19,7 @@ Here is a list of all file members with links to the files they belong to: : message.h

  • NONE : modules.h
  • nspace : hashcomp.h, channels.cpp -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x6f.html b/docs/module-doc/globals_0x6f.html index 8ba3b7b56..2cb908807 100644 --- a/docs/module-doc/globals_0x6f.html +++ b/docs/module-doc/globals_0x6f.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

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

    - o -

    -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x70.html b/docs/module-doc/globals_0x70.html index 9e3cf8967..cb3b37451 100644 --- a/docs/module-doc/globals_0x70.html +++ b/docs/module-doc/globals_0x70.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -18,7 +18,7 @@ Here is a list of all file members with links to the files they belong to: : modules.cpp, channels.cpp

  • process_modes() : mode.h
  • process_module_umode() : mode.h -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x71.html b/docs/module-doc/globals_0x71.html index cda2f0a00..fbdfd87ab 100644 --- a/docs/module-doc/globals_0x71.html +++ b/docs/module-doc/globals_0x71.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

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

  • qline_make_global() : xline.h
  • qline_set_creation_time() : xline.h -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x72.html b/docs/module-doc/globals_0x72.html index 196ecf33e..921b59c87 100644 --- a/docs/module-doc/globals_0x72.html +++ b/docs/module-doc/globals_0x72.html @@ -6,18 +6,19 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to:

    - r -

    -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +: xline.h
  • ref +: socketengine.cpp
  • restartpass +: modules.cpp, channels.cpp
  • RULES +: modules.cpp
  • rules +: modules.cpp, channels.cpp +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x73.html b/docs/module-doc/globals_0x73.html index c43408e02..32de78c77 100644 --- a/docs/module-doc/globals_0x73.html +++ b/docs/module-doc/globals_0x73.html @@ -6,13 +6,14 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to:

    - s -

    -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x74.html b/docs/module-doc/globals_0x74.html index dddfb058a..26fdfe011 100644 --- a/docs/module-doc/globals_0x74.html +++ b/docs/module-doc/globals_0x74.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -20,7 +20,7 @@ Here is a list of all file members with links to the files they belong to: : message.h

  • tidystring() : message.h
  • TIME : users.cpp, socket.cpp, modules.cpp, channels.cpp -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x75.html b/docs/module-doc/globals_0x75.html index b2f9bfae4..cc438b561 100644 --- a/docs/module-doc/globals_0x75.html +++ b/docs/module-doc/globals_0x75.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -20,7 +20,7 @@ Here is a list of all file members with links to the files they belong to: : channels.h

  • unlimitcore : socket.cpp
  • user_hash : modules.cpp -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x76.html b/docs/module-doc/globals_0x76.html index 580b1ef40..92b3bc576 100644 --- a/docs/module-doc/globals_0x76.html +++ b/docs/module-doc/globals_0x76.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -19,7 +19,7 @@ Here is a list of all file members with links to the files they belong to: : modules.h

  • VF_VENDOR : modules.h
  • VoidPointer : base.h -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x77.html b/docs/module-doc/globals_0x77.html index f15932bee..ac2947eb0 100644 --- a/docs/module-doc/globals_0x77.html +++ b/docs/module-doc/globals_0x77.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -17,7 +17,7 @@ Here is a list of all file members with links to the files they belong to: : modules.cpp

  • WHOWAS_MAX : modules.cpp, channels.cpp
  • WHOWAS_STALE : modules.cpp, channels.cpp -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x78.html b/docs/module-doc/globals_0x78.html new file mode 100644 index 000000000..e00a910b5 --- /dev/null +++ b/docs/module-doc/globals_0x78.html @@ -0,0 +1,26 @@ + + +InspIRCd: Class Members + + + + + +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    + +

    +Here is a list of all file members with links to the files they belong to: +

    +

    - x -

    +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/globals_0x7a.html b/docs/module-doc/globals_0x7a.html index d3327bae9..9074387c9 100644 --- a/docs/module-doc/globals_0x7a.html +++ b/docs/module-doc/globals_0x7a.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z

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

  • zline_make_global() : xline.h
  • zline_set_creation_time() : xline.h -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_defs.html b/docs/module-doc/globals_defs.html index 1cbfd8d96..b3c05c374 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -78,7 +78,7 @@ : modules.h
  • VF_STATIC : modules.h
  • VF_VENDOR : modules.h -
    Generated on Fri Dec 9 20:20:14 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_enum.html b/docs/module-doc/globals_enum.html index ca4f96501..d30517bfd 100644 --- a/docs/module-doc/globals_enum.html +++ b/docs/module-doc/globals_enum.html @@ -12,7 +12,7 @@
  • InspSocketError : socket.h
  • InspSocketState : socket.h -
    Generated on Fri Dec 9 20:20:14 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_eval.html b/docs/module-doc/globals_eval.html index e5d0fd9fc..38c365ca8 100644 --- a/docs/module-doc/globals_eval.html +++ b/docs/module-doc/globals_eval.html @@ -19,7 +19,7 @@ : socket.h
  • I_ERROR : socket.h
  • I_LISTENING : socket.h -
    Generated on Fri Dec 9 20:20:14 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_func.html b/docs/module-doc/globals_func.html index f34aad449..7772142cb 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -171,7 +171,7 @@
  • zline_make_global() : xline.h
  • zline_set_creation_time() : xline.h -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_type.html b/docs/module-doc/globals_type.html index fd641a338..07ce2b0e1 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -28,7 +28,7 @@ : modules.cpp
  • VoidPointer : base.h
  • whowas_hash : modules.cpp -
    Generated on Fri Dec 9 20:20:14 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_vars.html b/docs/module-doc/globals_vars.html index c77031009..a566f28fd 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 | o | p | r | s | t | u | w
    +
    a | b | c | d | e | f | i | l | m | n | o | p | r | s | t | u | w | x

    @@ -72,12 +72,14 @@ : modules.cpp, channels.cpp

  • PrefixQuit : modules.cpp, channels.cpp

    - r -

    +
  • ref +: socketengine.cpp
  • restartpass +: modules.cpp, channels.cpp
  • RULES +: modules.cpp
  • rules +: modules.cpp, channels.cpp

    - s -

    @@ -92,7 +94,15 @@ : modules.cpp
  • WHOWAS_MAX : modules.cpp, channels.cpp
  • WHOWAS_STALE : modules.cpp, channels.cpp -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +

    - x -

    +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/graph_legend.html b/docs/module-doc/graph_legend.html index 36e33a761..7eafc866a 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 Fri Dec 9 20:20:14 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/hashcomp_8h-source.html b/docs/module-doc/hashcomp_8h-source.html index 100557245..2b2790123 100644 --- a/docs/module-doc/hashcomp_8h-source.html +++ b/docs/module-doc/hashcomp_8h-source.html @@ -109,7 +109,7 @@ 00130 } 00131 00132 #endif -

    Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +

    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/hashcomp_8h.html b/docs/module-doc/hashcomp_8h.html index b082ee153..b17bf0a04 100644 --- a/docs/module-doc/hashcomp_8h.html +++ b/docs/module-doc/hashcomp_8h.html @@ -77,7 +77,7 @@ This graph shows which files directly or indirectly include this file:

    44 of file hashcomp.h. -
    Generated on Fri Dec 9 20:20:07 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 23791af5a..65c3bcd4c 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -62,10 +62,11 @@ This inheritance list is sorted roughly, but not completely, alphabetically: -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/inherit__graph__10.gif b/docs/module-doc/inherit__graph__10.gif index e79f9b374..dfb0c4c56 100644 Binary files a/docs/module-doc/inherit__graph__10.gif and b/docs/module-doc/inherit__graph__10.gif differ diff --git a/docs/module-doc/inherit__graph__10.map b/docs/module-doc/inherit__graph__10.map index f4dc152fc..cb5e68503 100644 --- a/docs/module-doc/inherit__graph__10.map +++ b/docs/module-doc/inherit__graph__10.map @@ -1,2 +1,2 @@ base referer -rect $classWhoWasUser.html 8,7 112,33 +rect $classSocketEngine.html 8,7 112,33 diff --git a/docs/module-doc/inherit__graph__10.md5 b/docs/module-doc/inherit__graph__10.md5 index 49ded545f..6349253e0 100644 --- a/docs/module-doc/inherit__graph__10.md5 +++ b/docs/module-doc/inherit__graph__10.md5 @@ -1 +1 @@ -5bff511d62c6faa81cdb63b1f78f6cd8 \ No newline at end of file +949dcc70479b42522977703d4bb0a709 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__11.gif b/docs/module-doc/inherit__graph__11.gif new file mode 100644 index 000000000..e79f9b374 Binary files /dev/null and b/docs/module-doc/inherit__graph__11.gif differ diff --git a/docs/module-doc/inherit__graph__11.map b/docs/module-doc/inherit__graph__11.map new file mode 100644 index 000000000..f4dc152fc --- /dev/null +++ b/docs/module-doc/inherit__graph__11.map @@ -0,0 +1,2 @@ +base referer +rect $classWhoWasUser.html 8,7 112,33 diff --git a/docs/module-doc/inherit__graph__11.md5 b/docs/module-doc/inherit__graph__11.md5 new file mode 100644 index 000000000..49ded545f --- /dev/null +++ b/docs/module-doc/inherit__graph__11.md5 @@ -0,0 +1 @@ +5bff511d62c6faa81cdb63b1f78f6cd8 \ No newline at end of file diff --git a/docs/module-doc/inherits.html b/docs/module-doc/inherits.html index 9105b0e91..a0c76cdbd 100644 --- a/docs/module-doc/inherits.html +++ b/docs/module-doc/inherits.html @@ -79,12 +79,16 @@ - + + + + + -
    Generated on Fri Dec 9 20:20:14 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index 8d70ff3d3..4a734a007 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@

    InspIRCd Documentation

    -

    1.0Betareleases


    Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +

    1.0Betareleases


    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/message_8h-source.html b/docs/module-doc/message_8h-source.html index 6b3c2388a..4227efba2 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -57,7 +57,7 @@ 00048 void send_network_quit(const char* nick, const char* reason); 00049 00050 #endif -

    Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +

    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/message_8h.html b/docs/module-doc/message_8h.html index 35a98df68..3da2d691e 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -165,7 +165,7 @@ This graph shows which files directly or indirectly include this file:

    -Referenced by Server::ChangeHost(). +Referenced by Server::ChangeHost().

    @@ -204,7 +204,7 @@ Referenced by Server::Chang

    -Referenced by Server::ChangeGECOS(). +Referenced by Server::ChangeGECOS().

    @@ -345,7 +345,7 @@ Referenced by Server::Chang

    -Referenced by Server::ChanMode(). +Referenced by Server::ChanMode().

    @@ -384,7 +384,7 @@ Referenced by Server::ChanM

    -Referenced by Server::CommonChannels(). +Referenced by Server::CommonChannels().

    @@ -460,7 +460,7 @@ Referenced by Server::Commo

    -Referenced by Server::IsOnChannel(). +Referenced by Server::IsOnChannel().

    @@ -555,7 +555,7 @@ Referenced by Server::IsOnC

    -Referenced by Server::IsNick(). +Referenced by Server::IsNick().

    @@ -679,7 +679,7 @@ Referenced by Server::IsNic -


    Generated on Fri Dec 9 20:20:07 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/mode_8h-source.html b/docs/module-doc/mode_8h-source.html index 85a8d6468..e8c59844f 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -55,7 +55,7 @@ 00046 00047 00048 #endif -

    Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +

    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/mode_8h.html b/docs/module-doc/mode_8h.html index 26c2b6592..d28a91d4f 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -593,7 +593,7 @@ This graph shows which files directly or indirectly include this file:

    -Referenced by Server::SendMode(). +Referenced by Server::SendMode().

    @@ -792,7 +792,7 @@ Referenced by Server::SendM -


    Generated on Fri Dec 9 20:20:08 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 9298996f8..d28a1b4a1 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -67,981 +67,954 @@ 00058 #include "helperfuncs.h" 00059 #include "hashcomp.h" 00060 #include "socket.h" -00061 -00062 #ifdef USE_KQUEUE -00063 extern int kq; -00064 #endif -00065 -00066 #ifdef USE_EPOLL -00067 int ep; -00068 #endif -00069 -00070 extern int MODCOUNT; -00071 extern std::vector<Module*> modules; -00072 extern std::vector<ircd_module*> factory; +00061 #include "socketengine.h" +00062 +00063 extern SocketEngine* SE; +00064 extern int MODCOUNT; +00065 extern std::vector<Module*> modules; +00066 extern std::vector<ircd_module*> factory; +00067 +00068 extern std::vector<std::string> include_stack; +00069 +00070 extern std::vector<InspSocket*> module_sockets; +00071 +00072 extern time_t TIME; 00073 -00074 extern std::vector<std::string> include_stack; -00075 -00076 extern std::vector<InspSocket*> module_sockets; -00077 -00078 extern time_t TIME; -00079 -00080 extern int LogLevel; -00081 extern char ServerName[MAXBUF]; -00082 extern char Network[MAXBUF]; -00083 extern char ServerDesc[MAXBUF]; -00084 extern char AdminName[MAXBUF]; -00085 extern char AdminEmail[MAXBUF]; -00086 extern char AdminNick[MAXBUF]; -00087 extern char diepass[MAXBUF]; -00088 extern char restartpass[MAXBUF]; -00089 extern char motd[MAXBUF]; -00090 extern char rules[MAXBUF]; -00091 extern char list[MAXBUF]; -00092 extern char PrefixQuit[MAXBUF]; -00093 extern char DieValue[MAXBUF]; -00094 -00095 extern int debugging; -00096 extern int WHOWAS_STALE; -00097 extern int WHOWAS_MAX; -00098 extern int DieDelay; -00099 extern time_t startup_time; -00100 extern int NetBufferSize; -00101 extern int MaxWhoResults; -00102 extern time_t nb_start; -00103 -00104 extern std::vector<std::string> module_names; -00105 -00106 extern int boundPortCount; -00107 extern int portCount; +00074 extern int LogLevel; +00075 extern char ServerName[MAXBUF]; +00076 extern char Network[MAXBUF]; +00077 extern char ServerDesc[MAXBUF]; +00078 extern char AdminName[MAXBUF]; +00079 extern char AdminEmail[MAXBUF]; +00080 extern char AdminNick[MAXBUF]; +00081 extern char diepass[MAXBUF]; +00082 extern char restartpass[MAXBUF]; +00083 extern char motd[MAXBUF]; +00084 extern char rules[MAXBUF]; +00085 extern char list[MAXBUF]; +00086 extern char PrefixQuit[MAXBUF]; +00087 extern char DieValue[MAXBUF]; +00088 +00089 extern int debugging; +00090 extern int WHOWAS_STALE; +00091 extern int WHOWAS_MAX; +00092 extern int DieDelay; +00093 extern time_t startup_time; +00094 extern int NetBufferSize; +00095 extern int MaxWhoResults; +00096 extern time_t nb_start; +00097 +00098 extern std::vector<std::string> module_names; +00099 +00100 extern int boundPortCount; +00101 extern int portCount; +00102 +00103 extern int ports[MAXSOCKS]; +00104 +00105 class Server; +00106 +00107 extern std::stringstream config_f; 00108 -00109 extern int ports[MAXSOCKS]; +00109 00110 -00111 class Server; +00111 extern FILE *log_file; 00112 -00113 extern std::stringstream config_f; +00113 extern userrec* fd_ref_table[65536]; 00114 -00115 -00116 -00117 extern FILE *log_file; -00118 -00119 extern userrec* fd_ref_table[65536]; +00115 typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash; +00116 typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash; +00117 typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache; +00118 typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash; +00119 typedef std::deque<command_t> command_table; 00120 -00121 typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash; -00122 typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash; -00123 typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache; -00124 typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash; -00125 typedef std::deque<command_t> command_table; -00126 -00127 -00128 extern user_hash clientlist; -00129 extern chan_hash chanlist; -00130 extern whowas_hash whowas; -00131 extern command_table cmdlist; -00132 extern file_cache MOTD; -00133 extern file_cache RULES; -00134 extern address_cache IP; -00135 -00136 -00137 // class type for holding an extended mode character - internal to core -00138 -00139 class ExtMode : public classbase -00140 { -00141 public: -00142 char modechar; -00143 int type; -00144 bool needsoper; -00145 int params_when_on; -00146 int params_when_off; -00147 bool list; -00148 ExtMode(char mc, int ty, bool oper, int p_on, int p_off) : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; -00149 }; +00121 +00122 extern user_hash clientlist; +00123 extern chan_hash chanlist; +00124 extern whowas_hash whowas; +00125 extern command_table cmdlist; +00126 extern file_cache MOTD; +00127 extern file_cache RULES; +00128 extern address_cache IP; +00129 +00130 +00131 // class type for holding an extended mode character - internal to core +00132 +00133 class ExtMode : public classbase +00134 { +00135 public: +00136 char modechar; +00137 int type; +00138 bool needsoper; +00139 int params_when_on; +00140 int params_when_off; +00141 bool list; +00142 ExtMode(char mc, int ty, bool oper, int p_on, int p_off) : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; +00143 }; +00144 +00145 typedef std::vector<ExtMode> ExtModeList; +00146 typedef ExtModeList::iterator ExtModeListIter; +00147 +00148 +00149 ExtModeList EMode; 00150 -00151 typedef std::vector<ExtMode> ExtModeList; -00152 typedef ExtModeList::iterator ExtModeListIter; -00153 -00154 -00155 ExtModeList EMode; -00156 -00157 // returns true if an extended mode character is in use -00158 bool ModeDefined(char modechar, int type) -00159 { -00160 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00161 { -00162 if ((i->modechar == modechar) && (i->type == type)) -00163 { -00164 return true; -00165 } -00166 } -00167 return false; -00168 } -00169 -00170 bool ModeIsListMode(char modechar, int type) -00171 { -00172 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00173 { -00174 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -00175 { -00176 return true; -00177 } -00178 } -00179 return false; -00180 } -00181 -00182 bool ModeDefinedOper(char modechar, int type) -00183 { -00184 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00185 { -00186 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -00187 { -00188 return true; -00189 } -00190 } -00191 return false; -00192 } -00193 -00194 // returns number of parameters for a custom mode when it is switched on -00195 int ModeDefinedOn(char modechar, int type) -00196 { -00197 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00198 { -00199 if ((i->modechar == modechar) && (i->type == type)) -00200 { -00201 return i->params_when_on; -00202 } -00203 } -00204 return 0; -00205 } -00206 -00207 // returns number of parameters for a custom mode when it is switched on -00208 int ModeDefinedOff(char modechar, int type) -00209 { -00210 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00211 { -00212 if ((i->modechar == modechar) && (i->type == type)) -00213 { -00214 return i->params_when_off; -00215 } -00216 } -00217 return 0; -00218 } -00219 -00220 // returns true if an extended mode character is in use -00221 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off) -00222 { -00223 if (ModeDefined(modechar,type)) { -00224 return false; -00225 } -00226 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -00227 return true; -00228 } -00229 -00230 // turns a mode into a listmode -00231 void ModeMakeList(char modechar) -00232 { -00233 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00234 { -00235 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -00236 { -00237 i->list = true; -00238 return; -00239 } -00240 } -00241 return; -00242 } +00151 // returns true if an extended mode character is in use +00152 bool ModeDefined(char modechar, int type) +00153 { +00154 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00155 { +00156 if ((i->modechar == modechar) && (i->type == type)) +00157 { +00158 return true; +00159 } +00160 } +00161 return false; +00162 } +00163 +00164 bool ModeIsListMode(char modechar, int type) +00165 { +00166 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00167 { +00168 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) +00169 { +00170 return true; +00171 } +00172 } +00173 return false; +00174 } +00175 +00176 bool ModeDefinedOper(char modechar, int type) +00177 { +00178 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00179 { +00180 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) +00181 { +00182 return true; +00183 } +00184 } +00185 return false; +00186 } +00187 +00188 // returns number of parameters for a custom mode when it is switched on +00189 int ModeDefinedOn(char modechar, int type) +00190 { +00191 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00192 { +00193 if ((i->modechar == modechar) && (i->type == type)) +00194 { +00195 return i->params_when_on; +00196 } +00197 } +00198 return 0; +00199 } +00200 +00201 // returns number of parameters for a custom mode when it is switched on +00202 int ModeDefinedOff(char modechar, int type) +00203 { +00204 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00205 { +00206 if ((i->modechar == modechar) && (i->type == type)) +00207 { +00208 return i->params_when_off; +00209 } +00210 } +00211 return 0; +00212 } +00213 +00214 // returns true if an extended mode character is in use +00215 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off) +00216 { +00217 if (ModeDefined(modechar,type)) { +00218 return false; +00219 } +00220 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); +00221 return true; +00222 } +00223 +00224 // turns a mode into a listmode +00225 void ModeMakeList(char modechar) +00226 { +00227 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00228 { +00229 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) +00230 { +00231 i->list = true; +00232 return; +00233 } +00234 } +00235 return; +00236 } +00237 +00238 // version is a simple class for holding a modules version number +00239 +00240 Version::Version(int major, int minor, int revision, int build, int flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; +00241 +00242 // admin is a simple class for holding a server's administrative info 00243 -00244 // version is a simple class for holding a modules version number +00244 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; 00245 -00246 Version::Version(int major, int minor, int revision, int build, int flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; +00246 Request::Request(char* anydata, Module* src, Module* dst) : data(anydata), source(src), dest(dst) { }; 00247 -00248 // admin is a simple class for holding a server's administrative info -00249 -00250 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; -00251 -00252 Request::Request(char* anydata, Module* src, Module* dst) : data(anydata), source(src), dest(dst) { }; -00253 -00254 char* Request::GetData() -00255 { -00256 return this->data; -00257 } -00258 -00259 Module* Request::GetSource() -00260 { -00261 return this->source; -00262 } -00263 -00264 Module* Request::GetDest() -00265 { -00266 return this->dest; -00267 } -00268 -00269 char* Request::Send() -00270 { -00271 if (this->dest) -00272 { -00273 return dest->OnRequest(this); -00274 } -00275 else -00276 { -00277 return NULL; -00278 } -00279 } -00280 -00281 Event::Event(char* anydata, Module* src, std::string eventid) : data(anydata), source(src), id(eventid) { }; -00282 -00283 char* Event::GetData() -00284 { -00285 return this->data; -00286 } -00287 -00288 Module* Event::GetSource() -00289 { -00290 return this->source; +00248 char* Request::GetData() +00249 { +00250 return this->data; +00251 } +00252 +00253 Module* Request::GetSource() +00254 { +00255 return this->source; +00256 } +00257 +00258 Module* Request::GetDest() +00259 { +00260 return this->dest; +00261 } +00262 +00263 char* Request::Send() +00264 { +00265 if (this->dest) +00266 { +00267 return dest->OnRequest(this); +00268 } +00269 else +00270 { +00271 return NULL; +00272 } +00273 } +00274 +00275 Event::Event(char* anydata, Module* src, std::string eventid) : data(anydata), source(src), id(eventid) { }; +00276 +00277 char* Event::GetData() +00278 { +00279 return this->data; +00280 } +00281 +00282 Module* Event::GetSource() +00283 { +00284 return this->source; +00285 } +00286 +00287 char* Event::Send() +00288 { +00289 FOREACH_MOD OnEvent(this); +00290 return NULL; 00291 } 00292 -00293 char* Event::Send() +00293 std::string Event::GetEventID() 00294 { -00295 FOREACH_MOD OnEvent(this); -00296 return NULL; -00297 } +00295 return this->id; +00296 } +00297 00298 -00299 std::string Event::GetEventID() -00300 { -00301 return this->id; -00302 } -00303 -00304 -00305 // These declarations define the behavours of the base class Module (which does nothing at all) -00306 -00307 Module::Module(Server* Me) { } -00308 Module::~Module() { } -00309 void Module::OnUserConnect(userrec* user) { } -00310 void Module::OnUserQuit(userrec* user, std::string message) { } -00311 void Module::OnUserDisconnect(userrec* user) { } -00312 void Module::OnUserJoin(userrec* user, chanrec* channel) { } -00313 void Module::OnUserPart(userrec* user, chanrec* channel) { } -00314 void Module::OnPacketTransmit(std::string &data, std::string serv) { } -00315 void Module::OnPacketReceive(std::string &data, std::string serv) { } -00316 void Module::OnRehash(std::string parameter) { } -00317 void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } -00318 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } -00319 int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } -00320 void Module::OnMode(userrec* user, void* dest, int target_type, std::string text) { }; -00321 Version Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); } -00322 void Module::OnOper(userrec* user, std::string opertype) { }; -00323 void Module::OnInfo(userrec* user) { }; -00324 void Module::OnWhois(userrec* source, userrec* dest) { }; -00325 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; -00326 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00327 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00328 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; -00329 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; -00330 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; -00331 void Module::On005Numeric(std::string &output) { }; -00332 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; -00333 void Module::OnLoadModule(Module* mod,std::string name) { }; -00334 void Module::OnUnloadModule(Module* mod,std::string name) { }; -00335 void Module::OnBackgroundTimer(time_t curtime) { }; -00336 void Module::OnSendList(userrec* user, chanrec* channel, char mode) { }; -00337 int Module::OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user) { return 0; }; -00338 bool Module::OnCheckReady(userrec* user) { return true; }; -00339 void Module::OnUserRegister(userrec* user) { }; -00340 int Module::OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { return 0; }; -00341 void Module::OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { }; -00342 int Module::OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt) { return 0; }; -00343 int Module::OnCheckInvite(userrec* user, chanrec* chan) { return 0; }; -00344 int Module::OnCheckKey(userrec* user, chanrec* chan, std::string keygiven) { return 0; }; -00345 int Module::OnCheckLimit(userrec* user, chanrec* chan) { return 0; }; -00346 int Module::OnCheckBan(userrec* user, chanrec* chan) { return 0; }; -00347 void Module::OnStats(char symbol) { }; -00348 int Module::OnChangeLocalUserHost(userrec* user, std::string newhost) { return 0; }; -00349 int Module::OnChangeLocalUserGECOS(userrec* user, std::string newhost) { return 0; }; -00350 int Module::OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { return 0; }; -00351 void Module::OnEvent(Event* event) { return; }; -00352 char* Module::OnRequest(Request* request) { return NULL; }; -00353 int Module::OnOperCompare(std::string password, std::string input) { return 0; }; -00354 void Module::OnGlobalOper(userrec* user) { }; -00355 void Module::OnGlobalConnect(userrec* user) { }; -00356 int Module::OnAddBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; -00357 int Module::OnDelBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; -00358 void Module::OnRawSocketAccept(int fd, std::string ip, int localport) { }; -00359 int Module::OnRawSocketWrite(int fd, char* buffer, int count) { return 0; }; -00360 void Module::OnRawSocketClose(int fd) { }; -00361 int Module::OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult) { return 0; }; -00362 void Module::OnUserMessage(userrec* user, void* dest, int target_type, std::string text) { }; -00363 void Module::OnUserNotice(userrec* user, void* dest, int target_type, std::string text) { }; -00364 void Module::OnRemoteKill(userrec* source, userrec* dest, std::string reason) { }; -00365 void Module::OnUserInvite(userrec* source,userrec* dest,chanrec* channel) { }; -00366 void Module::OnPostLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { }; -00367 void Module::OnGetServerDescription(std::string servername,std::string &description) { }; -00368 void Module::OnSyncUser(userrec* user, Module* proto, void* opaque) { }; -00369 void Module::OnSyncChannel(chanrec* chan, Module* proto, void* opaque) { }; -00370 void Module::ProtoSendMode(void* opaque, int target_type, void* target, std::string modeline) { }; -00371 void Module::OnSyncChannelMetaData(chanrec* chan, Module* proto,void* opaque, std::string extname) { }; -00372 void Module::OnSyncUserMetaData(userrec* user, Module* proto,void* opaque, std::string extname) { }; -00373 void Module::OnDecodeMetaData(int target_type, void* target, std::string extname, std::string extdata) { }; -00374 void Module::ProtoSendMetaData(void* opaque, int target_type, void* target, std::string extname, std::string extdata) { }; -00375 void Module::OnWallops(userrec* user, std::string text) { }; -00376 void Module::OnChangeHost(userrec* user, std::string newhost) { }; -00377 void Module::OnChangeName(userrec* user, std::string gecos) { }; -00378 void Module::OnAddGLine(long duration, userrec* source, std::string reason, std::string hostmask) { }; -00379 void Module::OnAddZLine(long duration, userrec* source, std::string reason, std::string ipmask) { }; -00380 void Module::OnAddKLine(long duration, userrec* source, std::string reason, std::string hostmask) { }; -00381 void Module::OnAddQLine(long duration, userrec* source, std::string reason, std::string nickmask) { }; -00382 void Module::OnAddELine(long duration, userrec* source, std::string reason, std::string hostmask) { }; -00383 void Module::OnDelGLine(userrec* source, std::string hostmask) { }; -00384 void Module::OnDelZLine(userrec* source, std::string ipmask) { }; -00385 void Module::OnDelKLine(userrec* source, std::string hostmask) { }; -00386 void Module::OnDelQLine(userrec* source, std::string nickmask) { }; -00387 void Module::OnDelELine(userrec* source, std::string hostmask) { }; -00388 void Module::OnCleanup(int target_type, void* item) { }; +00299 // These declarations define the behavours of the base class Module (which does nothing at all) +00300 +00301 Module::Module(Server* Me) { } +00302 Module::~Module() { } +00303 void Module::OnUserConnect(userrec* user) { } +00304 void Module::OnUserQuit(userrec* user, std::string message) { } +00305 void Module::OnUserDisconnect(userrec* user) { } +00306 void Module::OnUserJoin(userrec* user, chanrec* channel) { } +00307 void Module::OnUserPart(userrec* user, chanrec* channel) { } +00308 void Module::OnRehash(std::string parameter) { } +00309 void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } +00310 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } +00311 int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } +00312 void Module::OnMode(userrec* user, void* dest, int target_type, std::string text) { }; +00313 Version Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); } +00314 void Module::OnOper(userrec* user, std::string opertype) { }; +00315 void Module::OnInfo(userrec* user) { }; +00316 void Module::OnWhois(userrec* source, userrec* dest) { }; +00317 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; +00318 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; +00319 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; +00320 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; +00321 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; +00322 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; +00323 void Module::On005Numeric(std::string &output) { }; +00324 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; +00325 void Module::OnLoadModule(Module* mod,std::string name) { }; +00326 void Module::OnUnloadModule(Module* mod,std::string name) { }; +00327 void Module::OnBackgroundTimer(time_t curtime) { }; +00328 void Module::OnSendList(userrec* user, chanrec* channel, char mode) { }; +00329 int Module::OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user) { return 0; }; +00330 bool Module::OnCheckReady(userrec* user) { return true; }; +00331 void Module::OnUserRegister(userrec* user) { }; +00332 int Module::OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { return 0; }; +00333 void Module::OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { }; +00334 int Module::OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt) { return 0; }; +00335 int Module::OnCheckInvite(userrec* user, chanrec* chan) { return 0; }; +00336 int Module::OnCheckKey(userrec* user, chanrec* chan, std::string keygiven) { return 0; }; +00337 int Module::OnCheckLimit(userrec* user, chanrec* chan) { return 0; }; +00338 int Module::OnCheckBan(userrec* user, chanrec* chan) { return 0; }; +00339 void Module::OnStats(char symbol) { }; +00340 int Module::OnChangeLocalUserHost(userrec* user, std::string newhost) { return 0; }; +00341 int Module::OnChangeLocalUserGECOS(userrec* user, std::string newhost) { return 0; }; +00342 int Module::OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { return 0; }; +00343 void Module::OnEvent(Event* event) { return; }; +00344 char* Module::OnRequest(Request* request) { return NULL; }; +00345 int Module::OnOperCompare(std::string password, std::string input) { return 0; }; +00346 void Module::OnGlobalOper(userrec* user) { }; +00347 void Module::OnGlobalConnect(userrec* user) { }; +00348 int Module::OnAddBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; +00349 int Module::OnDelBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; +00350 void Module::OnRawSocketAccept(int fd, std::string ip, int localport) { }; +00351 int Module::OnRawSocketWrite(int fd, char* buffer, int count) { return 0; }; +00352 void Module::OnRawSocketClose(int fd) { }; +00353 int Module::OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult) { return 0; }; +00354 void Module::OnUserMessage(userrec* user, void* dest, int target_type, std::string text) { }; +00355 void Module::OnUserNotice(userrec* user, void* dest, int target_type, std::string text) { }; +00356 void Module::OnRemoteKill(userrec* source, userrec* dest, std::string reason) { }; +00357 void Module::OnUserInvite(userrec* source,userrec* dest,chanrec* channel) { }; +00358 void Module::OnPostLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { }; +00359 void Module::OnGetServerDescription(std::string servername,std::string &description) { }; +00360 void Module::OnSyncUser(userrec* user, Module* proto, void* opaque) { }; +00361 void Module::OnSyncChannel(chanrec* chan, Module* proto, void* opaque) { }; +00362 void Module::ProtoSendMode(void* opaque, int target_type, void* target, std::string modeline) { }; +00363 void Module::OnSyncChannelMetaData(chanrec* chan, Module* proto,void* opaque, std::string extname) { }; +00364 void Module::OnSyncUserMetaData(userrec* user, Module* proto,void* opaque, std::string extname) { }; +00365 void Module::OnDecodeMetaData(int target_type, void* target, std::string extname, std::string extdata) { }; +00366 void Module::ProtoSendMetaData(void* opaque, int target_type, void* target, std::string extname, std::string extdata) { }; +00367 void Module::OnWallops(userrec* user, std::string text) { }; +00368 void Module::OnChangeHost(userrec* user, std::string newhost) { }; +00369 void Module::OnChangeName(userrec* user, std::string gecos) { }; +00370 void Module::OnAddGLine(long duration, userrec* source, std::string reason, std::string hostmask) { }; +00371 void Module::OnAddZLine(long duration, userrec* source, std::string reason, std::string ipmask) { }; +00372 void Module::OnAddKLine(long duration, userrec* source, std::string reason, std::string hostmask) { }; +00373 void Module::OnAddQLine(long duration, userrec* source, std::string reason, std::string nickmask) { }; +00374 void Module::OnAddELine(long duration, userrec* source, std::string reason, std::string hostmask) { }; +00375 void Module::OnDelGLine(userrec* source, std::string hostmask) { }; +00376 void Module::OnDelZLine(userrec* source, std::string ipmask) { }; +00377 void Module::OnDelKLine(userrec* source, std::string hostmask) { }; +00378 void Module::OnDelQLine(userrec* source, std::string nickmask) { }; +00379 void Module::OnDelELine(userrec* source, std::string hostmask) { }; +00380 void Module::OnCleanup(int target_type, void* item) { }; +00381 +00382 /* server is a wrapper class that provides methods to all of the C-style +00383 * exports in the core +00384 */ +00385 +00386 Server::Server() +00387 { +00388 } 00389 -00390 /* server is a wrapper class that provides methods to all of the C-style -00391 * exports in the core -00392 */ +00390 Server::~Server() +00391 { +00392 } 00393 -00394 Server::Server() +00394 void Server::AddSocket(InspSocket* sock) 00395 { -00396 } -00397 -00398 Server::~Server() -00399 { -00400 } -00401 -00402 void Server::AddSocket(InspSocket* sock) -00403 { -00404 module_sockets.push_back(sock); -00405 } -00406 -00407 void Server::RehashServer() -00408 { -00409 WriteOpers("*** Rehashing config file"); -00410 ReadConfig(false,NULL); -00411 } -00412 -00413 void Server::DelSocket(InspSocket* sock) -00414 { -00415 for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) -00416 { -00417 if (*a == sock) -00418 { -00419 module_sockets.erase(a); -00420 return; -00421 } -00422 } -00423 } -00424 -00425 void Server::SendOpers(std::string s) -00426 { -00427 WriteOpers("%s",s.c_str()); +00396 module_sockets.push_back(sock); +00397 } +00398 +00399 void Server::RehashServer() +00400 { +00401 WriteOpers("*** Rehashing config file"); +00402 ReadConfig(false,NULL); +00403 } +00404 +00405 void Server::DelSocket(InspSocket* sock) +00406 { +00407 for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) +00408 { +00409 if (*a == sock) +00410 { +00411 module_sockets.erase(a); +00412 return; +00413 } +00414 } +00415 } +00416 +00417 void Server::SendOpers(std::string s) +00418 { +00419 WriteOpers("%s",s.c_str()); +00420 } +00421 +00422 bool Server::MatchText(std::string sliteral, std::string spattern) +00423 { +00424 char literal[MAXBUF],pattern[MAXBUF]; +00425 strlcpy(literal,sliteral.c_str(),MAXBUF); +00426 strlcpy(pattern,spattern.c_str(),MAXBUF); +00427 return match(literal,pattern); 00428 } 00429 -00430 bool Server::MatchText(std::string sliteral, std::string spattern) +00430 void Server::SendToModeMask(std::string modes, int flags, std::string text) 00431 { -00432 char literal[MAXBUF],pattern[MAXBUF]; -00433 strlcpy(literal,sliteral.c_str(),MAXBUF); -00434 strlcpy(pattern,spattern.c_str(),MAXBUF); -00435 return match(literal,pattern); -00436 } -00437 -00438 void Server::SendToModeMask(std::string modes, int flags, std::string text) -00439 { -00440 WriteMode(modes.c_str(),flags,"%s",text.c_str()); -00441 } -00442 -00443 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) -00444 { -00445 return add_channel(user,cname.c_str(),key.c_str(),false); -00446 } -00447 -00448 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) -00449 { -00450 return del_channel(user,cname.c_str(),reason.c_str(),false); -00451 } -00452 -00453 chanuserlist Server::GetUsers(chanrec* chan) -00454 { -00455 chanuserlist userl; -00456 userl.clear(); -00457 std::vector<char*> *list = chan->GetUsers(); -00458 for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) -00459 { -00460 char* o = *i; -00461 userl.push_back((userrec*)o); -00462 } -00463 return userl; -00464 } -00465 void Server::ChangeUserNick(userrec* user, std::string nickname) -00466 { -00467 force_nickchange(user,nickname.c_str()); -00468 } -00469 -00470 void Server::QuitUser(userrec* user, std::string reason) -00471 { -00472 kill_link(user,reason.c_str()); -00473 } -00474 -00475 bool Server::IsUlined(std::string server) -00476 { -00477 return is_uline(server.c_str()); -00478 } -00479 -00480 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) -00481 { -00482 call_handler(commandname.c_str(),parameters,pcnt,user); -00483 } -00484 -00485 bool Server::IsValidModuleCommand(std::string commandname, int pcnt, userrec* user) -00486 { -00487 return is_valid_cmd(commandname.c_str(), pcnt, user); -00488 } -00489 -00490 void Server::Log(int level, std::string s) -00491 { -00492 log(level,"%s",s.c_str()); -00493 } -00494 -00495 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) -00496 { -00497 createcommand(cmd,f,flags,minparams,source); -00498 } -00499 -00500 void Server::SendMode(char **parameters, int pcnt, userrec *user) -00501 { -00502 server_mode(parameters,pcnt,user); -00503 } -00504 -00505 void Server::Send(int Socket, std::string s) -00506 { -00507 Write(Socket,"%s",s.c_str()); -00508 } -00509 -00510 void Server::SendServ(int Socket, std::string s) -00511 { -00512 WriteServ(Socket,"%s",s.c_str()); -00513 } -00514 -00515 void Server::SendFrom(int Socket, userrec* User, std::string s) -00516 { -00517 WriteFrom(Socket,User,"%s",s.c_str()); -00518 } -00519 -00520 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) -00521 { -00522 if (!Source) -00523 { -00524 // if source is NULL, then the message originates from the local server -00525 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); -00526 } -00527 else -00528 { -00529 // otherwise it comes from the user specified -00530 WriteTo(Source,Dest,"%s",s.c_str()); -00531 } -00532 } -00533 -00534 void Server::SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text) -00535 { -00536 WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str()); -00537 } -00538 -00539 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) -00540 { -00541 if (IncludeSender) -00542 { -00543 WriteChannel(Channel,User,"%s",s.c_str()); -00544 } -00545 else -00546 { -00547 ChanExceptSender(Channel,User,"%s",s.c_str()); -00548 } -00549 } -00550 -00551 bool Server::CommonChannels(userrec* u1, userrec* u2) -00552 { -00553 return (common_channels(u1,u2) != 0); -00554 } -00555 -00556 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) -00557 { -00558 if (IncludeSender) -00559 { -00560 WriteCommon(User,"%s",text.c_str()); -00561 } -00562 else -00563 { -00564 WriteCommonExcept(User,"%s",text.c_str()); -00565 } -00566 } -00567 -00568 void Server::SendWallops(userrec* User, std::string text) -00569 { -00570 WriteWallOps(User,false,"%s",text.c_str()); -00571 } -00572 -00573 void Server::ChangeHost(userrec* user, std::string host) -00574 { -00575 ChangeDisplayedHost(user,host.c_str()); -00576 } -00577 -00578 void Server::ChangeGECOS(userrec* user, std::string gecos) -00579 { -00580 ChangeName(user,gecos.c_str()); -00581 } -00582 -00583 bool Server::IsNick(std::string nick) -00584 { -00585 return (isnick(nick.c_str()) != 0); -00586 } -00587 -00588 userrec* Server::FindNick(std::string nick) -00589 { -00590 return Find(nick); -00591 } -00592 -00593 userrec* Server::FindDescriptor(int socket) -00594 { -00595 return (socket < 65536 ? fd_ref_table[socket] : NULL); -00596 } -00597 -00598 chanrec* Server::FindChannel(std::string channel) -00599 { -00600 return FindChan(channel.c_str()); -00601 } -00602 -00603 std::string Server::ChanMode(userrec* User, chanrec* Chan) -00604 { -00605 return cmode(User,Chan); -00606 } -00607 -00608 bool Server::IsOnChannel(userrec* User, chanrec* Chan) -00609 { -00610 return has_channel(User,Chan); -00611 } -00612 -00613 std::string Server::GetServerName() -00614 { -00615 return getservername(); -00616 } -00617 -00618 std::string Server::GetNetworkName() -00619 { -00620 return getnetworkname(); -00621 } -00622 -00623 std::string Server::GetServerDescription() -00624 { -00625 return getserverdesc(); -00626 } -00627 -00628 Admin Server::GetAdmin() -00629 { -00630 return Admin(getadminname(),getadminemail(),getadminnick()); -00631 } -00632 -00633 -00634 -00635 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) -00636 { -00637 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) -00638 { -00639 if (type == MT_SERVER) -00640 { -00641 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); -00642 return false; -00643 } -00644 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -00645 { -00646 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); -00647 return false; -00648 } -00649 if ((params_when_on>1) || (params_when_off>1)) -00650 { -00651 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); -00652 return false; -00653 } -00654 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -00655 } -00656 else -00657 { -00658 log(DEBUG,"*** API ERROR *** Muppet modechar detected."); -00659 } -00660 return false; +00432 WriteMode(modes.c_str(),flags,"%s",text.c_str()); +00433 } +00434 +00435 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) +00436 { +00437 return add_channel(user,cname.c_str(),key.c_str(),false); +00438 } +00439 +00440 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) +00441 { +00442 return del_channel(user,cname.c_str(),reason.c_str(),false); +00443 } +00444 +00445 chanuserlist Server::GetUsers(chanrec* chan) +00446 { +00447 chanuserlist userl; +00448 userl.clear(); +00449 std::vector<char*> *list = chan->GetUsers(); +00450 for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) +00451 { +00452 char* o = *i; +00453 userl.push_back((userrec*)o); +00454 } +00455 return userl; +00456 } +00457 void Server::ChangeUserNick(userrec* user, std::string nickname) +00458 { +00459 force_nickchange(user,nickname.c_str()); +00460 } +00461 +00462 void Server::QuitUser(userrec* user, std::string reason) +00463 { +00464 kill_link(user,reason.c_str()); +00465 } +00466 +00467 bool Server::IsUlined(std::string server) +00468 { +00469 return is_uline(server.c_str()); +00470 } +00471 +00472 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) +00473 { +00474 call_handler(commandname.c_str(),parameters,pcnt,user); +00475 } +00476 +00477 bool Server::IsValidModuleCommand(std::string commandname, int pcnt, userrec* user) +00478 { +00479 return is_valid_cmd(commandname.c_str(), pcnt, user); +00480 } +00481 +00482 void Server::Log(int level, std::string s) +00483 { +00484 log(level,"%s",s.c_str()); +00485 } +00486 +00487 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) +00488 { +00489 createcommand(cmd,f,flags,minparams,source); +00490 } +00491 +00492 void Server::SendMode(char **parameters, int pcnt, userrec *user) +00493 { +00494 server_mode(parameters,pcnt,user); +00495 } +00496 +00497 void Server::Send(int Socket, std::string s) +00498 { +00499 Write(Socket,"%s",s.c_str()); +00500 } +00501 +00502 void Server::SendServ(int Socket, std::string s) +00503 { +00504 WriteServ(Socket,"%s",s.c_str()); +00505 } +00506 +00507 void Server::SendFrom(int Socket, userrec* User, std::string s) +00508 { +00509 WriteFrom(Socket,User,"%s",s.c_str()); +00510 } +00511 +00512 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00513 { +00514 if (!Source) +00515 { +00516 // if source is NULL, then the message originates from the local server +00517 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); +00518 } +00519 else +00520 { +00521 // otherwise it comes from the user specified +00522 WriteTo(Source,Dest,"%s",s.c_str()); +00523 } +00524 } +00525 +00526 void Server::SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text) +00527 { +00528 WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str()); +00529 } +00530 +00531 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) +00532 { +00533 if (IncludeSender) +00534 { +00535 WriteChannel(Channel,User,"%s",s.c_str()); +00536 } +00537 else +00538 { +00539 ChanExceptSender(Channel,User,"%s",s.c_str()); +00540 } +00541 } +00542 +00543 bool Server::CommonChannels(userrec* u1, userrec* u2) +00544 { +00545 return (common_channels(u1,u2) != 0); +00546 } +00547 +00548 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) +00549 { +00550 if (IncludeSender) +00551 { +00552 WriteCommon(User,"%s",text.c_str()); +00553 } +00554 else +00555 { +00556 WriteCommonExcept(User,"%s",text.c_str()); +00557 } +00558 } +00559 +00560 void Server::SendWallops(userrec* User, std::string text) +00561 { +00562 WriteWallOps(User,false,"%s",text.c_str()); +00563 } +00564 +00565 void Server::ChangeHost(userrec* user, std::string host) +00566 { +00567 ChangeDisplayedHost(user,host.c_str()); +00568 } +00569 +00570 void Server::ChangeGECOS(userrec* user, std::string gecos) +00571 { +00572 ChangeName(user,gecos.c_str()); +00573 } +00574 +00575 bool Server::IsNick(std::string nick) +00576 { +00577 return (isnick(nick.c_str()) != 0); +00578 } +00579 +00580 userrec* Server::FindNick(std::string nick) +00581 { +00582 return Find(nick); +00583 } +00584 +00585 userrec* Server::FindDescriptor(int socket) +00586 { +00587 return (socket < 65536 ? fd_ref_table[socket] : NULL); +00588 } +00589 +00590 chanrec* Server::FindChannel(std::string channel) +00591 { +00592 return FindChan(channel.c_str()); +00593 } +00594 +00595 std::string Server::ChanMode(userrec* User, chanrec* Chan) +00596 { +00597 return cmode(User,Chan); +00598 } +00599 +00600 bool Server::IsOnChannel(userrec* User, chanrec* Chan) +00601 { +00602 return has_channel(User,Chan); +00603 } +00604 +00605 std::string Server::GetServerName() +00606 { +00607 return getservername(); +00608 } +00609 +00610 std::string Server::GetNetworkName() +00611 { +00612 return getnetworkname(); +00613 } +00614 +00615 std::string Server::GetServerDescription() +00616 { +00617 return getserverdesc(); +00618 } +00619 +00620 Admin Server::GetAdmin() +00621 { +00622 return Admin(getadminname(),getadminemail(),getadminnick()); +00623 } +00624 +00625 +00626 +00627 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) +00628 { +00629 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) +00630 { +00631 if (type == MT_SERVER) +00632 { +00633 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); +00634 return false; +00635 } +00636 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +00637 { +00638 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); +00639 return false; +00640 } +00641 if ((params_when_on>1) || (params_when_off>1)) +00642 { +00643 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); +00644 return false; +00645 } +00646 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +00647 } +00648 else +00649 { +00650 log(DEBUG,"*** API ERROR *** Muppet modechar detected."); +00651 } +00652 return false; +00653 } +00654 +00655 bool Server::AddExtendedListMode(char modechar) +00656 { +00657 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +00658 if (res) +00659 ModeMakeList(modechar); +00660 return res; 00661 } 00662 -00663 bool Server::AddExtendedListMode(char modechar) +00663 int Server::CountUsers(chanrec* c) 00664 { -00665 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -00666 if (res) -00667 ModeMakeList(modechar); -00668 return res; -00669 } -00670 -00671 int Server::CountUsers(chanrec* c) -00672 { -00673 return usercount(c); -00674 } -00675 -00676 -00677 bool Server::UserToPseudo(userrec* user,std::string message) -00678 { -00679 unsigned int old_fd = user->fd; -00680 user->fd = FD_MAGIC_NUMBER; -00681 user->ClearBuffer(); -00682 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); -00683 #ifdef USE_KQUEUE -00684 struct kevent ke; -00685 EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL); -00686 int i = kevent(kq, &ke, 1, 0, 0, NULL); -00687 if (i == -1) -00688 { -00689 log(DEBUG,"kqueue: Failed to remove user from queue!"); -00690 } -00691 #endif -00692 #ifdef USE_EPOLL -00693 struct epoll_event ev; -00694 ev.events = EPOLLIN | EPOLLET; -00695 ev.data.fd = old_fd; -00696 int i = epoll_ctl(ep, EPOLL_CTL_DEL, old_fd, &ev); -00697 if (i < 0) -00698 { -00699 log(DEBUG,"epoll: List deletion failure!"); -00700 } -00701 #endif -00702 -00703 shutdown(old_fd,2); -00704 close(old_fd); -00705 return true; -00706 } -00707 -00708 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) -00709 { -00710 zombie->fd = alive->fd; -00711 alive->fd = FD_MAGIC_NUMBER; -00712 alive->ClearBuffer(); -00713 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); -00714 kill_link(alive,message.c_str()); -00715 fd_ref_table[zombie->fd] = zombie; -00716 for (int i = 0; i != MAXCHANS; i++) -00717 { -00718 if (zombie->chans[i].channel != NULL) -00719 { -00720 if (zombie->chans[i].channel->name) -00721 { -00722 chanrec* Ptr = zombie->chans[i].channel; -00723 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); -00724 if (Ptr->topicset) -00725 { -00726 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); -00727 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -00728 } -00729 userlist(zombie,Ptr); -00730 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); -00731 -00732 } -00733 } -00734 } -00735 return true; -00736 } -00737 -00738 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) -00739 { -00740 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00741 } -00742 -00743 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) -00744 { -00745 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); -00746 } -00747 -00748 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) -00749 { -00750 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -00751 } -00752 -00753 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) -00754 { -00755 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00756 } -00757 -00758 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) -00759 { -00760 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00761 } -00762 -00763 bool Server::DelGLine(std::string hostmask) -00764 { -00765 return del_gline(hostmask.c_str()); -00766 } -00767 -00768 bool Server::DelQLine(std::string nickname) -00769 { -00770 return del_qline(nickname.c_str()); -00771 } -00772 -00773 bool Server::DelZLine(std::string ipaddr) -00774 { -00775 return del_zline(ipaddr.c_str()); -00776 } -00777 -00778 bool Server::DelKLine(std::string hostmask) -00779 { -00780 return del_kline(hostmask.c_str()); -00781 } -00782 -00783 bool Server::DelELine(std::string hostmask) -00784 { -00785 return del_eline(hostmask.c_str()); -00786 } -00787 -00788 long Server::CalcDuration(std::string delta) -00789 { -00790 return duration(delta.c_str()); -00791 } -00792 -00793 bool Server::IsValidMask(std::string mask) -00794 { -00795 const char* dest = mask.c_str(); -00796 if (strchr(dest,'!')==0) -00797 return false; -00798 if (strchr(dest,'@')==0) -00799 return false; -00800 for (unsigned int i = 0; i < strlen(dest); i++) -00801 if (dest[i] < 32) -00802 return false; -00803 for (unsigned int i = 0; i < strlen(dest); i++) -00804 if (dest[i] > 126) -00805 return false; -00806 unsigned int c = 0; -00807 for (unsigned int i = 0; i < strlen(dest); i++) -00808 if (dest[i] == '!') -00809 c++; -00810 if (c>1) -00811 return false; -00812 c = 0; -00813 for (unsigned int i = 0; i < strlen(dest); i++) -00814 if (dest[i] == '@') -00815 c++; -00816 if (c>1) -00817 return false; -00818 -00819 return true; -00820 } -00821 -00822 Module* Server::FindModule(std::string name) -00823 { -00824 for (int i = 0; i <= MODCOUNT; i++) -00825 { -00826 if (module_names[i] == name) -00827 { -00828 return modules[i]; -00829 } -00830 } -00831 return NULL; -00832 } -00833 -00834 ConfigReader::ConfigReader() -00835 { -00836 include_stack.clear(); -00837 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00838 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00839 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00840 if (!this->readerror) -00841 this->error = CONF_FILE_NOT_FOUND; -00842 } -00843 -00844 -00845 ConfigReader::~ConfigReader() -00846 { -00847 if (this->cache) -00848 delete this->cache; -00849 if (this->errorlog) -00850 delete this->errorlog; -00851 } -00852 -00853 -00854 ConfigReader::ConfigReader(std::string filename) -00855 { -00856 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00857 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00858 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -00859 if (!this->readerror) -00860 this->error = CONF_FILE_NOT_FOUND; -00861 }; -00862 -00863 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) -00864 { -00865 char val[MAXBUF]; -00866 char t[MAXBUF]; -00867 char n[MAXBUF]; -00868 strlcpy(t,tag.c_str(),MAXBUF); -00869 strlcpy(n,name.c_str(),MAXBUF); -00870 int res = ReadConf(cache,t,n,index,val); -00871 if (!res) -00872 { -00873 this->error = CONF_VALUE_NOT_FOUND; -00874 return ""; -00875 } -00876 return val; -00877 } -00878 -00879 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) -00880 { -00881 char val[MAXBUF]; -00882 char t[MAXBUF]; -00883 char n[MAXBUF]; -00884 strlcpy(t,tag.c_str(),MAXBUF); -00885 strlcpy(n,name.c_str(),MAXBUF); -00886 int res = ReadConf(cache,t,n,index,val); -00887 if (!res) -00888 { -00889 this->error = CONF_VALUE_NOT_FOUND; -00890 return false; -00891 } -00892 std::string s = val; -00893 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); -00894 } -00895 -00896 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) -00897 { -00898 char val[MAXBUF]; -00899 char t[MAXBUF]; -00900 char n[MAXBUF]; -00901 strlcpy(t,tag.c_str(),MAXBUF); -00902 strlcpy(n,name.c_str(),MAXBUF); -00903 int res = ReadConf(cache,t,n,index,val); -00904 if (!res) -00905 { -00906 this->error = CONF_VALUE_NOT_FOUND; -00907 return 0; -00908 } -00909 for (unsigned int i = 0; i < strlen(val); i++) -00910 { -00911 if (!isdigit(val[i])) -00912 { -00913 this->error = CONF_NOT_A_NUMBER; -00914 return 0; -00915 } -00916 } -00917 if ((needs_unsigned) && (atoi(val)<0)) -00918 { -00919 this->error = CONF_NOT_UNSIGNED; -00920 return 0; -00921 } -00922 return atoi(val); -00923 } -00924 -00925 long ConfigReader::GetError() -00926 { -00927 long olderr = this->error; -00928 this->error = 0; -00929 return olderr; -00930 } -00931 -00932 void ConfigReader::DumpErrors(bool bail, userrec* user) -00933 { -00934 if (bail) -00935 { -00936 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); -00937 exit(0); -00938 } -00939 else -00940 { -00941 char dataline[1024]; -00942 if (user) -00943 { -00944 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); -00945 while (!errorlog->eof()) -00946 { -00947 errorlog->getline(dataline,1024); -00948 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); -00949 } -00950 } -00951 else -00952 { -00953 WriteOpers("There were errors in the configuration file:",user->nick); -00954 while (!errorlog->eof()) -00955 { -00956 errorlog->getline(dataline,1024); -00957 WriteOpers(dataline); -00958 } -00959 } -00960 return; -00961 } -00962 } -00963 +00665 return usercount(c); +00666 } +00667 +00668 +00669 bool Server::UserToPseudo(userrec* user,std::string message) +00670 { +00671 unsigned int old_fd = user->fd; +00672 user->fd = FD_MAGIC_NUMBER; +00673 user->ClearBuffer(); +00674 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); +00675 SE->DelFd(old_fd); +00676 shutdown(old_fd,2); +00677 close(old_fd); +00678 return true; +00679 } +00680 +00681 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) +00682 { +00683 zombie->fd = alive->fd; +00684 alive->fd = FD_MAGIC_NUMBER; +00685 alive->ClearBuffer(); +00686 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); +00687 kill_link(alive,message.c_str()); +00688 fd_ref_table[zombie->fd] = zombie; +00689 for (int i = 0; i != MAXCHANS; i++) +00690 { +00691 if (zombie->chans[i].channel != NULL) +00692 { +00693 if (zombie->chans[i].channel->name) +00694 { +00695 chanrec* Ptr = zombie->chans[i].channel; +00696 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); +00697 if (Ptr->topicset) +00698 { +00699 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); +00700 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +00701 } +00702 userlist(zombie,Ptr); +00703 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); +00704 +00705 } +00706 } +00707 } +00708 return true; +00709 } +00710 +00711 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) +00712 { +00713 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00714 } +00715 +00716 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) +00717 { +00718 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +00719 } +00720 +00721 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) +00722 { +00723 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +00724 } +00725 +00726 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) +00727 { +00728 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00729 } +00730 +00731 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) +00732 { +00733 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00734 } +00735 +00736 bool Server::DelGLine(std::string hostmask) +00737 { +00738 return del_gline(hostmask.c_str()); +00739 } +00740 +00741 bool Server::DelQLine(std::string nickname) +00742 { +00743 return del_qline(nickname.c_str()); +00744 } +00745 +00746 bool Server::DelZLine(std::string ipaddr) +00747 { +00748 return del_zline(ipaddr.c_str()); +00749 } +00750 +00751 bool Server::DelKLine(std::string hostmask) +00752 { +00753 return del_kline(hostmask.c_str()); +00754 } +00755 +00756 bool Server::DelELine(std::string hostmask) +00757 { +00758 return del_eline(hostmask.c_str()); +00759 } +00760 +00761 long Server::CalcDuration(std::string delta) +00762 { +00763 return duration(delta.c_str()); +00764 } +00765 +00766 bool Server::IsValidMask(std::string mask) +00767 { +00768 const char* dest = mask.c_str(); +00769 if (strchr(dest,'!')==0) +00770 return false; +00771 if (strchr(dest,'@')==0) +00772 return false; +00773 for (unsigned int i = 0; i < strlen(dest); i++) +00774 if (dest[i] < 32) +00775 return false; +00776 for (unsigned int i = 0; i < strlen(dest); i++) +00777 if (dest[i] > 126) +00778 return false; +00779 unsigned int c = 0; +00780 for (unsigned int i = 0; i < strlen(dest); i++) +00781 if (dest[i] == '!') +00782 c++; +00783 if (c>1) +00784 return false; +00785 c = 0; +00786 for (unsigned int i = 0; i < strlen(dest); i++) +00787 if (dest[i] == '@') +00788 c++; +00789 if (c>1) +00790 return false; +00791 +00792 return true; +00793 } +00794 +00795 Module* Server::FindModule(std::string name) +00796 { +00797 for (int i = 0; i <= MODCOUNT; i++) +00798 { +00799 if (module_names[i] == name) +00800 { +00801 return modules[i]; +00802 } +00803 } +00804 return NULL; +00805 } +00806 +00807 ConfigReader::ConfigReader() +00808 { +00809 include_stack.clear(); +00810 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00811 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00812 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00813 if (!this->readerror) +00814 this->error = CONF_FILE_NOT_FOUND; +00815 } +00816 +00817 +00818 ConfigReader::~ConfigReader() +00819 { +00820 if (this->cache) +00821 delete this->cache; +00822 if (this->errorlog) +00823 delete this->errorlog; +00824 } +00825 +00826 +00827 ConfigReader::ConfigReader(std::string filename) +00828 { +00829 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00830 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00831 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +00832 if (!this->readerror) +00833 this->error = CONF_FILE_NOT_FOUND; +00834 }; +00835 +00836 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00837 { +00838 char val[MAXBUF]; +00839 char t[MAXBUF]; +00840 char n[MAXBUF]; +00841 strlcpy(t,tag.c_str(),MAXBUF); +00842 strlcpy(n,name.c_str(),MAXBUF); +00843 int res = ReadConf(cache,t,n,index,val); +00844 if (!res) +00845 { +00846 this->error = CONF_VALUE_NOT_FOUND; +00847 return ""; +00848 } +00849 return val; +00850 } +00851 +00852 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) +00853 { +00854 char val[MAXBUF]; +00855 char t[MAXBUF]; +00856 char n[MAXBUF]; +00857 strlcpy(t,tag.c_str(),MAXBUF); +00858 strlcpy(n,name.c_str(),MAXBUF); +00859 int res = ReadConf(cache,t,n,index,val); +00860 if (!res) +00861 { +00862 this->error = CONF_VALUE_NOT_FOUND; +00863 return false; +00864 } +00865 std::string s = val; +00866 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); +00867 } +00868 +00869 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) +00870 { +00871 char val[MAXBUF]; +00872 char t[MAXBUF]; +00873 char n[MAXBUF]; +00874 strlcpy(t,tag.c_str(),MAXBUF); +00875 strlcpy(n,name.c_str(),MAXBUF); +00876 int res = ReadConf(cache,t,n,index,val); +00877 if (!res) +00878 { +00879 this->error = CONF_VALUE_NOT_FOUND; +00880 return 0; +00881 } +00882 for (unsigned int i = 0; i < strlen(val); i++) +00883 { +00884 if (!isdigit(val[i])) +00885 { +00886 this->error = CONF_NOT_A_NUMBER; +00887 return 0; +00888 } +00889 } +00890 if ((needs_unsigned) && (atoi(val)<0)) +00891 { +00892 this->error = CONF_NOT_UNSIGNED; +00893 return 0; +00894 } +00895 return atoi(val); +00896 } +00897 +00898 long ConfigReader::GetError() +00899 { +00900 long olderr = this->error; +00901 this->error = 0; +00902 return olderr; +00903 } +00904 +00905 void ConfigReader::DumpErrors(bool bail, userrec* user) +00906 { +00907 if (bail) +00908 { +00909 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); +00910 exit(0); +00911 } +00912 else +00913 { +00914 char dataline[1024]; +00915 if (user) +00916 { +00917 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); +00918 while (!errorlog->eof()) +00919 { +00920 errorlog->getline(dataline,1024); +00921 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); +00922 } +00923 } +00924 else +00925 { +00926 WriteOpers("There were errors in the configuration file:",user->nick); +00927 while (!errorlog->eof()) +00928 { +00929 errorlog->getline(dataline,1024); +00930 WriteOpers(dataline); +00931 } +00932 } +00933 return; +00934 } +00935 } +00936 +00937 +00938 int ConfigReader::Enumerate(std::string tag) +00939 { +00940 return EnumConf(cache,tag.c_str()); +00941 } +00942 +00943 int ConfigReader::EnumerateValues(std::string tag, int index) +00944 { +00945 return EnumValues(cache, tag.c_str(), index); +00946 } +00947 +00948 bool ConfigReader::Verify() +00949 { +00950 return this->readerror; +00951 } +00952 +00953 +00954 FileReader::FileReader(std::string filename) +00955 { +00956 file_cache c; +00957 readfile(c,filename.c_str()); +00958 this->fc = c; +00959 } +00960 +00961 FileReader::FileReader() +00962 { +00963 } 00964 -00965 int ConfigReader::Enumerate(std::string tag) +00965 void FileReader::LoadFile(std::string filename) 00966 { -00967 return EnumConf(cache,tag.c_str()); -00968 } -00969 -00970 int ConfigReader::EnumerateValues(std::string tag, int index) -00971 { -00972 return EnumValues(cache, tag.c_str(), index); -00973 } -00974 -00975 bool ConfigReader::Verify() -00976 { -00977 return this->readerror; -00978 } -00979 -00980 -00981 FileReader::FileReader(std::string filename) -00982 { -00983 file_cache c; -00984 readfile(c,filename.c_str()); -00985 this->fc = c; -00986 } -00987 -00988 FileReader::FileReader() -00989 { -00990 } -00991 -00992 void FileReader::LoadFile(std::string filename) -00993 { -00994 file_cache c; -00995 readfile(c,filename.c_str()); -00996 this->fc = c; -00997 } -00998 -00999 -01000 FileReader::~FileReader() -01001 { -01002 } -01003 -01004 bool FileReader::Exists() -01005 { -01006 if (fc.size() == 0) -01007 { -01008 return(false); -01009 } -01010 else -01011 { -01012 return(true); -01013 } -01014 } -01015 -01016 std::string FileReader::GetLine(int x) -01017 { -01018 if ((x<0) || ((unsigned)x>fc.size())) -01019 return ""; -01020 return fc[x]; -01021 } -01022 -01023 int FileReader::FileSize() -01024 { -01025 return fc.size(); -01026 } -01027 -01028 -01029 std::vector<Module*> modules(255); -01030 std::vector<ircd_module*> factory(255); -01031 -01032 int MODCOUNT = -1; -01033 -01034 -

    Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +00967 file_cache c; +00968 readfile(c,filename.c_str()); +00969 this->fc = c; +00970 } +00971 +00972 +00973 FileReader::~FileReader() +00974 { +00975 } +00976 +00977 bool FileReader::Exists() +00978 { +00979 if (fc.size() == 0) +00980 { +00981 return(false); +00982 } +00983 else +00984 { +00985 return(true); +00986 } +00987 } +00988 +00989 std::string FileReader::GetLine(int x) +00990 { +00991 if ((x<0) || ((unsigned)x>fc.size())) +00992 return ""; +00993 return fc[x]; +00994 } +00995 +00996 int FileReader::FileSize() +00997 { +00998 return fc.size(); +00999 } +01000 +01001 +01002 std::vector<Module*> modules(255); +01003 std::vector<ircd_module*> factory(255); +01004 +01005 int MODCOUNT = -1; +01006 +01007 +

    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index 3b456b97d..ca1936835 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -34,19 +34,21 @@ #include "helperfuncs.h"
    #include "hashcomp.h"
    #include "socket.h"
    +#include "socketengine.h"

    Include dependency graph for modules.cpp:

    - - - - - - - - - + + + + + + + + + +

    @@ -98,6 +100,8 @@ Include dependency graph for modules.cpp:

    std::vector< ircd_module * > factory (255)

    Variables

    +SocketEngineSE + int MODCOUNT = -1 std::vector< Module * > modules @@ -208,7 +212,7 @@ Include dependency graph for modules.cpp:

    123 of file modules.cpp. +Definition at line 117 of file modules.cpp.

    @@ -233,7 +237,7 @@ Definition at line 123

    -Definition at line 122 of file modules.cpp. +Definition at line 116 of file modules.cpp.

    @@ -258,7 +262,7 @@ Definition at line 122

    -Definition at line 125 of file modules.cpp. +Definition at line 119 of file modules.cpp.

    @@ -283,7 +287,7 @@ Definition at line 125

    -Definition at line 151 of file modules.cpp. +Definition at line 145 of file modules.cpp.

    @@ -308,7 +312,7 @@ Definition at line 151

    -Definition at line 152 of file modules.cpp. +Definition at line 146 of file modules.cpp.

    @@ -333,7 +337,7 @@ Definition at line 152

    -Definition at line 121 of file modules.cpp. +Definition at line 115 of file modules.cpp.

    @@ -358,7 +362,7 @@ Definition at line 121

    -Definition at line 124 of file modules.cpp. +Definition at line 118 of file modules.cpp.


    Function Documentation

    @@ -416,17 +420,17 @@ Definition at line 124

    -Definition at line 221 of file modules.cpp. +Definition at line 215 of file modules.cpp.

    -References EMode, and ModeDefined(). +References EMode, and ModeDefined().

    -Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode().

    00222 {
    -00223         if (ModeDefined(modechar,type)) {
    -00224                 return false;
    -00225         }
    -00226         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    -00227         return true;
    -00228 }
    +Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode().
    00216 {
    +00217         if (ModeDefined(modechar,type)) {
    +00218                 return false;
    +00219         }
    +00220         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    +00221         return true;
    +00222 }
     

    @@ -496,20 +500,20 @@ Referenced by Server::AddEx

    -Definition at line 158 of file modules.cpp. +Definition at line 152 of file modules.cpp.

    -References EMode. +References EMode.

    -Referenced by DoAddExtendedMode().

    00159 {
    -00160         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00161         {
    -00162                 if ((i->modechar == modechar) && (i->type == type))
    -00163                 {
    -00164                         return true;
    -00165                 }
    -00166         }
    -00167         return false;
    -00168 }
    +Referenced by DoAddExtendedMode().
    00153 {
    +00154         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00155         {
    +00156                 if ((i->modechar == modechar) && (i->type == type))
    +00157                 {
    +00158                         return true;
    +00159                 }
    +00160         }
    +00161         return false;
    +00162 }
     

    @@ -551,18 +555,18 @@ Referenced by DoAddExtended

    -Definition at line 208 of file modules.cpp. +Definition at line 202 of file modules.cpp.

    -References EMode.

    00209 {
    -00210         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00211         {
    -00212                 if ((i->modechar == modechar) && (i->type == type))
    -00213                 {
    -00214                         return i->params_when_off;
    -00215                 }
    -00216         }
    -00217         return 0;
    -00218 }
    +References EMode.
    00203 {
    +00204         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00205         {
    +00206                 if ((i->modechar == modechar) && (i->type == type))
    +00207                 {
    +00208                         return i->params_when_off;
    +00209                 }
    +00210         }
    +00211         return 0;
    +00212 }
     

    @@ -604,18 +608,18 @@ References EMode.

    -Definition at line 195 of file modules.cpp. +Definition at line 189 of file modules.cpp.

    -References EMode.

    00196 {
    -00197         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00198         {
    -00199                 if ((i->modechar == modechar) && (i->type == type))
    -00200                 {
    -00201                         return i->params_when_on;
    -00202                 }
    -00203         }
    -00204         return 0;
    -00205 }
    +References EMode.
    00190 {
    +00191         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00192         {
    +00193                 if ((i->modechar == modechar) && (i->type == type))
    +00194                 {
    +00195                         return i->params_when_on;
    +00196                 }
    +00197         }
    +00198         return 0;
    +00199 }
     

    @@ -657,18 +661,18 @@ References EMode.

    -Definition at line 182 of file modules.cpp. +Definition at line 176 of file modules.cpp.

    -References EMode.

    00183 {
    -00184         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00185         {
    -00186                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    -00187                 {
    -00188                         return true;
    -00189                 }
    -00190         }
    -00191         return false;
    -00192 }
    +References EMode.
    00177 {
    +00178         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00179         {
    +00180                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    +00181                 {
    +00182                         return true;
    +00183                 }
    +00184         }
    +00185         return false;
    +00186 }
     

    @@ -710,18 +714,18 @@ References EMode.

    -Definition at line 170 of file modules.cpp. +Definition at line 164 of file modules.cpp.

    -References EMode.

    00171 {
    -00172         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00173         {
    -00174                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    -00175                 {
    -00176                         return true;
    -00177                 }
    -00178         }
    -00179         return false;
    -00180 }
    +References EMode.
    00165 {
    +00166         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00167         {
    +00168                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    +00169                 {
    +00170                         return true;
    +00171                 }
    +00172         }
    +00173         return false;
    +00174 }
     

    @@ -754,21 +758,21 @@ References EMode.

    -Definition at line 231 of file modules.cpp. +Definition at line 225 of file modules.cpp.

    -References EMode, and MT_CHANNEL. +References EMode, and MT_CHANNEL.

    -Referenced by Server::AddExtendedListMode().

    00232 {
    -00233         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00234         {
    -00235                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    -00236                 {
    -00237                         i->list = true;
    -00238                         return;
    -00239                 }
    -00240         }
    -00241         return;
    -00242 }
    +Referenced by Server::AddExtendedListMode().
    00226 {
    +00227         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00228         {
    +00229                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    +00230                 {
    +00231                         i->list = true;
    +00232                         return;
    +00233                 }
    +00234         }
    +00235         return;
    +00236 }
     

    @@ -1101,9 +1105,9 @@ Referenced by Server::AddEx

    -Definition at line 155 of file modules.cpp. +Definition at line 149 of file modules.cpp.

    -Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). +Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().

    @@ -1174,7 +1178,7 @@ Referenced by DoAddExtended

    -Referenced by ConfigReader::ConfigReader(). +Referenced by ConfigReader::ConfigReader().

    @@ -1316,7 +1320,7 @@ Definition at line 81

    -Definition at line 1032 of file modules.cpp. +Definition at line 1005 of file modules.cpp.

    @@ -1364,7 +1368,7 @@ Definition at line 1032

    -Referenced by Server::AddSocket(), and Server::DelSocket(). +Referenced by Server::AddSocket(), and Server::DelSocket().

    @@ -1639,6 +1643,29 @@ Referenced by Server::AddSo +

    + + + +

    + + + + +
    + + + + +
    SocketEngine* SE
    +
    + + + + @@ -1804,7 +1831,7 @@ Referenced by Server::AddSo
    +   + +

    -


    Generated on Fri Dec 9 20:20:09 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:10 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/modules_8cpp__incl.gif b/docs/module-doc/modules_8cpp__incl.gif index 19414b0cf..e04be883e 100644 Binary files a/docs/module-doc/modules_8cpp__incl.gif and b/docs/module-doc/modules_8cpp__incl.gif differ diff --git a/docs/module-doc/modules_8cpp__incl.map b/docs/module-doc/modules_8cpp__incl.map index af1895853..97e8339ae 100644 --- a/docs/module-doc/modules_8cpp__incl.map +++ b/docs/module-doc/modules_8cpp__incl.map @@ -1,10 +1,11 @@ base referer -rect $users_8h-source.html 322,738 386,764 -rect $ctables_8h-source.html 316,180 391,207 -rect $modules_8h-source.html 164,383 247,410 -rect $socket_8h-source.html 318,383 390,410 -rect $message_8h-source.html 163,839 248,866 -rect $mode_8h-source.html 172,586 239,612 -rect $xline_8h-source.html 175,788 236,815 -rect $commands_8h-source.html 156,687 255,714 -rect $hashcomp_8h-source.html 307,79 400,106 +rect $users_8h-source.html 330,283 394,309 +rect $ctables_8h-source.html 324,1093 399,1120 +rect $modules_8h-source.html 168,1043 251,1069 +rect $socket_8h-source.html 326,941 398,968 +rect $message_8h-source.html 167,404 252,431 +rect $mode_8h-source.html 176,533 243,560 +rect $xline_8h-source.html 179,341 240,368 +rect $commands_8h-source.html 160,637 259,664 +rect $hashcomp_8h-source.html 315,80 408,107 +rect $socketengine_8h-source.html 154,815 266,841 diff --git a/docs/module-doc/modules_8cpp__incl.md5 b/docs/module-doc/modules_8cpp__incl.md5 index 40a066bd0..ae89d4383 100644 --- a/docs/module-doc/modules_8cpp__incl.md5 +++ b/docs/module-doc/modules_8cpp__incl.md5 @@ -1 +1 @@ -1b005f3bb4371af3d7b1f0bde019cdee \ No newline at end of file +185b983a6f4a9db06196c064c1bb980e \ No newline at end of file diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index 5fc39102d..9c23a2e84 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -511,7 +511,7 @@ 01667 typedef DLLFactory<ModuleFactory> ircd_module; 01668 01669 #endif -

    Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +

    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index e10dfd7ea..eb243b313 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -425,7 +425,7 @@ Used with OnAccessCheck() method of modules.

    Definition at line 37 of file modules.h.

    -Referenced by Module::OnAccessCheck(). +Referenced by Module::OnAccessCheck().

    @@ -477,7 +477,7 @@ Definition at line 38 of

    Definition at line 1501 of file modules.h.

    -Referenced by ConfigReader::ConfigReader(). +Referenced by ConfigReader::ConfigReader().

    @@ -504,7 +504,7 @@ Referenced by ConfigReader:

    Definition at line 1498 of file modules.h.

    -Referenced by ConfigReader::ReadInteger(). +Referenced by ConfigReader::ReadInteger().

    @@ -531,7 +531,7 @@ Referenced by ConfigReader:

    Definition at line 1499 of file modules.h.

    -Referenced by ConfigReader::ReadInteger(). +Referenced by ConfigReader::ReadInteger().

    @@ -558,7 +558,7 @@ Referenced by ConfigReader:

    Definition at line 1500 of file modules.h.

    -Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue(). +Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue().

    @@ -587,7 +587,7 @@ log levels

    Definition at line 23 of file modules.h.

    -Referenced by Server::AddExtendedMode(), chanrec::AddUser(), chanrec::DelUser(), InspSocket::InspSocket(), chanrec::IsCustomModeSet(), InspSocket::Read(), userrec::ReadData(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), and Server::UserToPseudo(). +Referenced by Server::AddExtendedMode(), SocketEngine::AddFd(), chanrec::AddUser(), SocketEngine::DelFd(), chanrec::DelUser(), InspSocket::InspSocket(), chanrec::IsCustomModeSet(), InspSocket::Read(), userrec::ReadData(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), SocketEngine::SocketEngine(), SocketEngine::Wait(), and SocketEngine::~SocketEngine().

    @@ -639,7 +639,7 @@ Definition at line 25 of

    Definition at line 101 of file modules.h.

    -Referenced by Server::PseudoToUser(), and Server::UserToPseudo(). +Referenced by Server::PseudoToUser(), and Server::UserToPseudo().

    @@ -666,7 +666,7 @@ Referenced by Server::Pseud

    Definition at line 81 of file modules.h.

    -Referenced by Event::Send(). +Referenced by Event::Send().

    @@ -734,7 +734,7 @@ Used with OnExtendedMode() method of modules.

    Definition at line 31 of file modules.h.

    -Referenced by Server::AddExtendedListMode(), and ModeMakeList(). +Referenced by Server::AddExtendedListMode(), and ModeMakeList().

    @@ -761,7 +761,7 @@ Referenced by Server::AddEx

    Definition at line 32 of file modules.h.

    -Referenced by Server::AddExtendedMode(). +Referenced by Server::AddExtendedMode().

    @@ -788,7 +788,7 @@ Referenced by Server::AddEx

    Definition at line 33 of file modules.h.

    -Referenced by Server::AddExtendedMode(). +Referenced by Server::AddExtendedMode().

    @@ -967,7 +967,7 @@ Definition at line 52 of

    Definition at line 53 of file modules.h.

    -Referenced by Module::GetVersion(). +Referenced by Module::GetVersion().


    Typedef Documentation

    @@ -1130,7 +1130,7 @@ Definition at line 70 of

    -Referenced by Server::AddCommand(). +Referenced by Server::AddCommand().

    @@ -1176,7 +1176,7 @@ Referenced by Server::AddCo -


    Generated on Fri Dec 9 20:20:09 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:10 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespaceirc.html b/docs/module-doc/namespaceirc.html index 1d19f74f2..a228de9d5 100644 --- a/docs/module-doc/namespaceirc.html +++ b/docs/module-doc/namespaceirc.html @@ -56,7 +56,7 @@ This typedef declares irc::string< Definition at line 129 of file hashcomp.h. -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacemembers.html b/docs/module-doc/namespacemembers.html index e5032f8de..0abfc6e1b 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 documentatio -
    Generated on Fri Dec 9 20:20:14 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacemembers_type.html b/docs/module-doc/namespacemembers_type.html index c3edcd117..9344106f8 100644 --- a/docs/module-doc/namespacemembers_type.html +++ b/docs/module-doc/namespacemembers_type.html @@ -11,7 +11,7 @@ -
    Generated on Fri Dec 9 20:20:14 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index d22c8eef6..fc5f1bb8e 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -15,7 +15,7 @@ struct  hash< string > -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index 5d3391290..1ad038c21 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -10,7 +10,7 @@ nspace std -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index cf71bb1fe..272ac466b 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@
    -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socket_8cpp-source.html b/docs/module-doc/socket_8cpp-source.html index bdd849a0d..0a22a089d 100644 --- a/docs/module-doc/socket_8cpp-source.html +++ b/docs/module-doc/socket_8cpp-source.html @@ -44,232 +44,243 @@ 00035 #include "inspircd_util.h" 00036 #include "inspstring.h" 00037 #include "helperfuncs.h" -00038 -00039 extern FILE *log_file; -00040 extern int boundPortCount; -00041 extern int openSockfd[MAXSOCKS]; -00042 extern time_t TIME; -00043 extern bool unlimitcore; -00044 extern int MaxConn; -00045 -00046 InspSocket::InspSocket() -00047 { -00048 this->state = I_DISCONNECTED; -00049 } -00050 -00051 InspSocket::InspSocket(int newfd, char* ip) -00052 { -00053 this->fd = newfd; -00054 this->state = I_CONNECTED; -00055 this->IP = ip; -00056 } -00057 -00058 InspSocket::InspSocket(std::string host, int port, bool listening, unsigned long maxtime) -00059 { -00060 if (listening) { -00061 if ((this->fd = OpenTCPSocket()) == ERROR) -00062 { -00063 this->fd = -1; -00064 this->state = I_ERROR; -00065 this->OnError(I_ERR_SOCKET); -00066 log(DEBUG,"OpenTCPSocket() error"); -00067 return; -00068 } -00069 else -00070 { -00071 if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR) -00072 { -00073 this->Close(); -00074 this->fd = -1; -00075 this->state = I_ERROR; -00076 this->OnError(I_ERR_BIND); -00077 log(DEBUG,"BindSocket() error %s",strerror(errno)); -00078 return; -00079 } -00080 else -00081 { -00082 this->state = I_LISTENING; -00083 log(DEBUG,"New socket now in I_LISTENING state"); -00084 return; -00085 } -00086 } -00087 } else { -00088 char* ip; -00089 this->host = host; -00090 hostent* hoste = gethostbyname(host.c_str()); -00091 if (!hoste) { -00092 ip = (char*)host.c_str(); -00093 } else { -00094 struct in_addr* ia = (in_addr*)hoste->h_addr; -00095 ip = inet_ntoa(*ia); -00096 } -00097 -00098 this->IP = ip; -00099 -00100 timeout_end = time(NULL)+maxtime; -00101 timeout = false; -00102 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) -00103 { -00104 this->state = I_ERROR; -00105 this->OnError(I_ERR_SOCKET); -00106 return; -00107 } -00108 this->port = port; -00109 inet_aton(ip,&addy); -00110 addr.sin_family = AF_INET; -00111 addr.sin_addr = addy; -00112 addr.sin_port = htons(this->port); -00113 -00114 int flags; -00115 flags = fcntl(this->fd, F_GETFL, 0); -00116 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); -00117 -00118 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1) -00119 { -00120 if (errno != EINPROGRESS) -00121 { -00122 this->Close(); -00123 this->OnError(I_ERR_CONNECT); -00124 this->state = I_ERROR; -00125 return; -00126 } -00127 } -00128 this->state = I_CONNECTING; -00129 return; -00130 } -00131 } -00132 -00133 void InspSocket::Close() -00134 { -00135 if (this->fd != -1) -00136 { -00137 this->OnClose(); -00138 shutdown(this->fd,2); -00139 close(this->fd); -00140 this->fd = -1; -00141 } -00142 } -00143 -00144 std::string InspSocket::GetIP() -00145 { -00146 return this->IP; -00147 } -00148 -00149 char* InspSocket::Read() -00150 { -00151 int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0); -00152 if (n > 0) -00153 { -00154 ibuf[n] = 0; -00155 return ibuf; -00156 } -00157 else -00158 { -00159 log(DEBUG,"EOF or error on socket"); -00160 return NULL; -00161 } -00162 } -00163 -00164 // There are two possible outcomes to this function. -00165 // It will either write all of the data, or an undefined amount. -00166 // If an undefined amount is written the connection has failed -00167 // and should be aborted. -00168 int InspSocket::Write(std::string data) -00169 { -00170 char* d = (char*)data.c_str(); -00171 unsigned int written = 0; -00172 int n = 0; -00173 int s = data.length(); -00174 while ((written < data.length()) && (n >= 0)) -00175 { -00176 n = send(this->fd,d,s,0); -00177 if (n > 0) -00178 { -00179 // If we didnt write everything, advance -00180 // the pointers so that when we retry -00181 // the next time around the loop, we try -00182 // to write what we failed to write before. -00183 written += n; -00184 s -= n; -00185 d += n; -00186 } -00187 } -00188 return written; -00189 } -00190 -00191 bool InspSocket::Poll() -00192 { -00193 if ((time(NULL) > timeout_end) && (this->state == I_CONNECTING)) -00194 { -00195 // for non-listening sockets, the timeout can occur -00196 // which causes termination of the connection after -00197 // the given number of seconds without a successful -00198 // connection. -00199 this->OnTimeout(); -00200 this->OnError(I_ERR_TIMEOUT); -00201 timeout = true; -00202 this->state = I_ERROR; -00203 return false; -00204 } -00205 polls.fd = this->fd; -00206 state == I_CONNECTING ? polls.events = POLLOUT : polls.events = POLLIN; -00207 int ret = poll(&polls,1,1); -00208 -00209 if (ret > 0) -00210 { -00211 int incoming = -1; -00212 -00213 switch (this->state) -00214 { -00215 case I_CONNECTING: -00216 this->SetState(I_CONNECTED); -00217 return this->OnConnected(); -00218 break; -00219 case I_LISTENING: -00220 length = sizeof (client); -00221 incoming = accept (this->fd, (sockaddr*)&client,&length); -00222 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr)); -00223 return true; -00224 break; -00225 case I_CONNECTED: -00226 return this->OnDataReady(); -00227 break; -00228 default: -00229 break; -00230 } -00231 } -00232 return true; -00233 } -00234 -00235 void InspSocket::SetState(InspSocketState s) -00236 { -00237 log(DEBUG,"Socket state change"); -00238 this->state = s; +00038 #include "socketengine.h" +00039 +00040 extern SocketEngine* SE; +00041 +00042 extern FILE *log_file; +00043 extern int boundPortCount; +00044 extern int openSockfd[MAXSOCKS]; +00045 extern time_t TIME; +00046 extern bool unlimitcore; +00047 extern int MaxConn; +00048 +00049 InspSocket::InspSocket() +00050 { +00051 this->state = I_DISCONNECTED; +00052 } +00053 +00054 InspSocket::InspSocket(int newfd, char* ip) +00055 { +00056 this->fd = newfd; +00057 this->state = I_CONNECTED; +00058 this->IP = ip; +00059 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +00060 } +00061 +00062 InspSocket::InspSocket(std::string host, int port, bool listening, unsigned long maxtime) +00063 { +00064 if (listening) { +00065 if ((this->fd = OpenTCPSocket()) == ERROR) +00066 { +00067 this->fd = -1; +00068 this->state = I_ERROR; +00069 this->OnError(I_ERR_SOCKET); +00070 log(DEBUG,"OpenTCPSocket() error"); +00071 return; +00072 } +00073 else +00074 { +00075 if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR) +00076 { +00077 this->Close(); +00078 this->fd = -1; +00079 this->state = I_ERROR; +00080 this->OnError(I_ERR_BIND); +00081 log(DEBUG,"BindSocket() error %s",strerror(errno)); +00082 return; +00083 } +00084 else +00085 { +00086 this->state = I_LISTENING; +00087 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +00088 log(DEBUG,"New socket now in I_LISTENING state"); +00089 return; +00090 } +00091 } +00092 } else { +00093 char* ip; +00094 this->host = host; +00095 hostent* hoste = gethostbyname(host.c_str()); +00096 if (!hoste) { +00097 ip = (char*)host.c_str(); +00098 } else { +00099 struct in_addr* ia = (in_addr*)hoste->h_addr; +00100 ip = inet_ntoa(*ia); +00101 } +00102 +00103 this->IP = ip; +00104 +00105 timeout_end = time(NULL)+maxtime; +00106 timeout = false; +00107 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) +00108 { +00109 this->state = I_ERROR; +00110 this->OnError(I_ERR_SOCKET); +00111 return; +00112 } +00113 this->port = port; +00114 inet_aton(ip,&addy); +00115 addr.sin_family = AF_INET; +00116 addr.sin_addr = addy; +00117 addr.sin_port = htons(this->port); +00118 +00119 int flags; +00120 flags = fcntl(this->fd, F_GETFL, 0); +00121 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); +00122 +00123 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1) +00124 { +00125 if (errno != EINPROGRESS) +00126 { +00127 this->Close(); +00128 this->OnError(I_ERR_CONNECT); +00129 this->state = I_ERROR; +00130 return; +00131 } +00132 } +00133 this->state = I_CONNECTING; +00134 SE->AddFd(this->fd,false,X_ESTAB_MODULE); +00135 return; +00136 } +00137 } +00138 +00139 void InspSocket::Close() +00140 { +00141 if (this->fd != -1) +00142 { +00143 this->OnClose(); +00144 shutdown(this->fd,2); +00145 close(this->fd); +00146 this->fd = -1; +00147 } +00148 } +00149 +00150 std::string InspSocket::GetIP() +00151 { +00152 return this->IP; +00153 } +00154 +00155 char* InspSocket::Read() +00156 { +00157 int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0); +00158 if (n > 0) +00159 { +00160 ibuf[n] = 0; +00161 return ibuf; +00162 } +00163 else +00164 { +00165 log(DEBUG,"EOF or error on socket"); +00166 return NULL; +00167 } +00168 } +00169 +00170 // There are two possible outcomes to this function. +00171 // It will either write all of the data, or an undefined amount. +00172 // If an undefined amount is written the connection has failed +00173 // and should be aborted. +00174 int InspSocket::Write(std::string data) +00175 { +00176 char* d = (char*)data.c_str(); +00177 unsigned int written = 0; +00178 int n = 0; +00179 int s = data.length(); +00180 while ((written < data.length()) && (n >= 0)) +00181 { +00182 n = send(this->fd,d,s,0); +00183 if (n > 0) +00184 { +00185 // If we didnt write everything, advance +00186 // the pointers so that when we retry +00187 // the next time around the loop, we try +00188 // to write what we failed to write before. +00189 written += n; +00190 s -= n; +00191 d += n; +00192 } +00193 } +00194 return written; +00195 } +00196 +00197 bool InspSocket::Poll() +00198 { +00199 if ((time(NULL) > timeout_end) && (this->state == I_CONNECTING)) +00200 { +00201 // for non-listening sockets, the timeout can occur +00202 // which causes termination of the connection after +00203 // the given number of seconds without a successful +00204 // connection. +00205 this->OnTimeout(); +00206 this->OnError(I_ERR_TIMEOUT); +00207 timeout = true; +00208 this->state = I_ERROR; +00209 return false; +00210 } +00211 +00212 int incoming = -1; +00213 +00214 switch (this->state) +00215 { +00216 case I_CONNECTING: +00217 this->SetState(I_CONNECTED); +00218 /* Our socket was in write-state, so delete it and re-add it +00219 * in read-state. +00220 */ +00221 SE->DelFd(this->fd); +00222 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +00223 return this->OnConnected(); +00224 break; +00225 case I_LISTENING: +00226 length = sizeof (client); +00227 incoming = accept (this->fd, (sockaddr*)&client,&length); +00228 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr)); +00229 return true; +00230 break; +00231 case I_CONNECTED: +00232 return this->OnDataReady(); +00233 break; +00234 default: +00235 break; +00236 } +00237 +00238 return true; 00239 } 00240 -00241 InspSocketState InspSocket::GetState() +00241 void InspSocket::SetState(InspSocketState s) 00242 { -00243 return this->state; -00244 } -00245 -00246 bool InspSocket::OnConnected() { return true; } -00247 void InspSocket::OnError(InspSocketError e) { return; } -00248 int InspSocket::OnDisconnect() { return 0; } -00249 int InspSocket::OnIncomingConnection(int newfd, char* ip) { return 0; } -00250 bool InspSocket::OnDataReady() { return true; } -00251 void InspSocket::OnTimeout() { return; } -00252 void InspSocket::OnClose() { return; } -00253 -00254 InspSocket::~InspSocket() -00255 { -00256 this->Close(); -00257 } -00258 -00259 /* -00260 int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr) -00261 int OpenTCPSocket (void) -00262 */ -

    Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +00243 log(DEBUG,"Socket state change"); +00244 this->state = s; +00245 } +00246 +00247 InspSocketState InspSocket::GetState() +00248 { +00249 return this->state; +00250 } +00251 +00252 int InspSocket::GetFd() +00253 { +00254 return this->fd; +00255 } +00256 +00257 bool InspSocket::OnConnected() { return true; } +00258 void InspSocket::OnError(InspSocketError e) { return; } +00259 int InspSocket::OnDisconnect() { return 0; } +00260 int InspSocket::OnIncomingConnection(int newfd, char* ip) { return 0; } +00261 bool InspSocket::OnDataReady() { return true; } +00262 void InspSocket::OnTimeout() { return; } +00263 void InspSocket::OnClose() { return; } +00264 +00265 InspSocket::~InspSocket() +00266 { +00267 this->Close(); +00268 } +00269 +00270 /* +00271 int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr) +00272 int OpenTCPSocket (void) +00273 */ +

    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socket_8cpp.html b/docs/module-doc/socket_8cpp.html index a600dc335..915f77162 100644 --- a/docs/module-doc/socket_8cpp.html +++ b/docs/module-doc/socket_8cpp.html @@ -26,17 +26,21 @@ #include "inspircd_util.h"
    #include "inspstring.h"
    #include "helperfuncs.h"
    +#include "socketengine.h"

    Include dependency graph for socket.cpp:

    - + +

    Go to the source code of this file. + + @@ -139,6 +143,29 @@ Include dependency graph for socket.cpp:

    +


    Variables

    SocketEngineSE
    FILE * log_file
    int boundPortCount
    + + + +
    + + + + +
    SocketEngine* SE
    +
    + + + + @@ -189,7 +216,7 @@ Include dependency graph for socket.cpp:

    Generated on Fri Dec 9 20:20:09 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:10 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socket_8cpp__incl.gif b/docs/module-doc/socket_8cpp__incl.gif index b2372fe26..6ac525510 100644 Binary files a/docs/module-doc/socket_8cpp__incl.gif and b/docs/module-doc/socket_8cpp__incl.gif differ diff --git a/docs/module-doc/socket_8cpp__incl.map b/docs/module-doc/socket_8cpp__incl.map index 948e5d95f..2be61668c 100644 --- a/docs/module-doc/socket_8cpp__incl.map +++ b/docs/module-doc/socket_8cpp__incl.map @@ -1,2 +1,3 @@ base referer -rect $socket_8h-source.html 165,311 237,337 +rect $socket_8h-source.html 160,362 232,388 +rect $socketengine_8h-source.html 140,159 252,186 diff --git a/docs/module-doc/socket_8cpp__incl.md5 b/docs/module-doc/socket_8cpp__incl.md5 index 1d1909209..4140df46e 100644 --- a/docs/module-doc/socket_8cpp__incl.md5 +++ b/docs/module-doc/socket_8cpp__incl.md5 @@ -1 +1 @@ -78dadbc1b7f94f0bf980df9c4743c562 \ No newline at end of file +daf398806f05395bb877e2ce03da24ff \ No newline at end of file diff --git a/docs/module-doc/socket_8h-source.html b/docs/module-doc/socket_8h-source.html index cd591d23e..3f5815e6c 100644 --- a/docs/module-doc/socket_8h-source.html +++ b/docs/module-doc/socket_8h-source.html @@ -70,12 +70,13 @@ 00061 void SetState(InspSocketState s); 00062 InspSocketState GetState(); 00063 bool Poll(); -00064 virtual void Close(); -00065 virtual ~InspSocket(); -00066 }; -00067 -00068 #endif -
    Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +00064 int GetFd(); +00065 virtual void Close(); +00066 virtual ~InspSocket(); +00067 }; +00068 +00069 #endif +
    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socket_8h.html b/docs/module-doc/socket_8h.html index 09b395e38..ef8c79fd8 100644 --- a/docs/module-doc/socket_8h.html +++ b/docs/module-doc/socket_8h.html @@ -133,7 +133,7 @@ Definition at line 27 of f
    +   + +

    -


    Generated on Fri Dec 9 20:20:09 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:10 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socketengine_8cpp-source.html b/docs/module-doc/socketengine_8cpp-source.html new file mode 100644 index 000000000..564b17817 --- /dev/null +++ b/docs/module-doc/socketengine_8cpp-source.html @@ -0,0 +1,222 @@ + + +InspIRCd: socketengine.cpp Source File + + + + + +

    socketengine.cpp

    Go to the documentation of this file.
    00001 /*       +------------------------------------+
    +00002  *       | Inspire Internet Relay Chat Daemon |
    +00003  *       +------------------------------------+
    +00004  *
    +00005  *  Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
    +00006  *                       E-mail:
    +00007  *                <brain@chatspike.net>
    +00008  *                <Craig@chatspike.net>
    +00009  *
    +00010  * Written by Craig Edwards, Craig McLure, and others.
    +00011  * This program is free but copyrighted software; see
    +00012  *            the file COPYING for details.
    +00013  *
    +00014  * ---------------------------------------------------
    +00015  */
    +00016 
    +00017 #include "inspircd_config.h"
    +00018 #include "globals.h"
    +00019 #include "inspircd.h"
    +00020 #ifdef USE_EPOLL
    +00021 #include <sys/epoll.h>
    +00022 #define EP_DELAY 5
    +00023 #endif
    +00024 #ifdef USE_KQUEUE
    +00025 #include <sys/types.h>
    +00026 #include <sys/event.h>
    +00027 #include <sys/time.h>
    +00028 #endif
    +00029 #include <vector>
    +00030 #include <string>
    +00031 #include "socketengine.h"
    +00032 
    +00033 char ref[65535];
    +00034 
    +00035 SocketEngine::SocketEngine()
    +00036 {
    +00037         log(DEBUG,"SocketEngine::SocketEngine()");
    +00038 #ifdef USE_EPOLL
    +00039         EngineHandle = epoll_create(65535);
    +00040 #endif
    +00041 #ifdef USE_KQUEUE
    +00042         EngineHandle = kqueue();
    +00043 #endif
    +00044 }
    +00045 
    +00046 SocketEngine::~SocketEngine()
    +00047 {
    +00048         log(DEBUG,"SocketEngine::~SocketEngine()");
    +00049 #ifdef USE_EPOLL
    +00050         close(EngineHandle);
    +00051 #endif
    +00052 #ifdef USE_KQUEUE
    +00053         close(EngineHandle);
    +00054 #endif
    +00055 }
    +00056 
    +00057 char SocketEngine::GetType(int fd)
    +00058 {
    +00059         if ((fd < 0) || (fd > 65535))
    +00060                 return X_EMPTY_SLOT;
    +00061         /* Mask off the top bit used for 'read/write' state */
    +00062         return (ref[fd] & ~0x80);
    +00063 }
    +00064 
    +00065 bool SocketEngine::AddFd(int fd, bool readable, char type)
    +00066 {
    +00067         if ((fd < 0) || (fd > 65535))
    +00068                 return false;
    +00069         this->fds.push_back(fd);
    +00070         ref[fd] = type;
    +00071         if (readable)
    +00072         {
    +00073                 log(DEBUG,"Set readbit");
    +00074                 ref[fd] |= X_READBIT;
    +00075         }
    +00076         log(DEBUG,"Add socket %d",fd);
    +00077 #ifdef USE_EPOLL
    +00078         struct epoll_event ev;
    +00079         log(DEBUG,"epoll: Add socket to events, ep=%d socket=%d",EngineHandle,fd);
    +00080         readable ? ev.events = EPOLLIN | EPOLLET : ev.events = EPOLLOUT | EPOLLET;
    +00081         ev.data.fd = fd;
    +00082         int i = epoll_ctl(EngineHandle, EPOLL_CTL_ADD, fd, &ev);
    +00083         if (i < 0)
    +00084         {
    +00085                 log(DEBUG,"epoll: List insertion failure!");
    +00086                 return false;
    +00087         }
    +00088 #endif
    +00089 #ifdef USE_KQUEUE
    +00090         struct kevent ke;
    +00091         log(DEBUG,"kqueue: Add socket to events, kq=%d socket=%d",EngineHandle,fd);
    +00092         EV_SET(&ke, fd, readable ? EVFILT_READ : EVFILT_WRITE, EV_ADD, 0, 0, NULL);
    +00093         int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL);
    +00094         if (i == -1)
    +00095         {
    +00096                 log(DEBUG,"kqueue: List insertion failure!");
    +00097                 return false;
    +00098         }
    +00099 #endif
    +00100 return true;
    +00101 }
    +00102 
    +00103 bool SocketEngine::DelFd(int fd)
    +00104 {
    +00105         log(DEBUG,"SocketEngine::DelFd(%d)",fd);
    +00106 
    +00107         if ((fd < 0) || (fd > 65535))
    +00108                 return false;
    +00109 
    +00110         bool found = false;
    +00111         for (std::vector<int>::iterator i = fds.begin(); i != fds.end(); i++)
    +00112         {
    +00113                 if (*i == fd)
    +00114                 {
    +00115                         fds.erase(i);
    +00116                         log(DEBUG,"Deleted fd %d",fd);
    +00117                         found = true;
    +00118                         break;
    +00119                 }
    +00120         }
    +00121 #ifdef USE_KQUEUE
    +00122         struct kevent ke;
    +00123         EV_SET(&ke, fd, ref[fd] && X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL);
    +00124         int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL);
    +00125         if (i == -1)
    +00126         {
    +00127                 log(DEBUG,"kqueue: Failed to remove socket from queue!");
    +00128                 return false;
    +00129         }
    +00130 #endif
    +00131 #ifdef USE_EPOLL
    +00132         struct epoll_event ev;
    +00133         ref[fd] && X_READBIT ? ev.events = EPOLLIN | EPOLLET : ev.events = EPOLLOUT | EPOLLET;
    +00134         ev.data.fd = fd;
    +00135         int i = epoll_ctl(EngineHandle, EPOLL_CTL_DEL, fd, &ev);
    +00136         if (i < 0)
    +00137         {
    +00138                 log(DEBUG,"epoll: List deletion failure!");
    +00139                 return false;
    +00140         }
    +00141 #endif
    +00142         ref[fd] = 0;
    +00143         return found;
    +00144 }
    +00145 
    +00146 bool SocketEngine::Wait(std::vector<int> &fdlist)
    +00147 {
    +00148         fdlist.clear();
    +00149 #ifdef USE_SELECT
    +00150         FD_ZERO(&wfdset);
    +00151         FD_ZERO(&rfdset);
    +00152         timeval tval;
    +00153         int sresult;
    +00154         for (unsigned int a = 0; a < fds.size(); a++)
    +00155         {
    +00156                 if (ref[fds[a]] & X_READBIT)
    +00157                 {
    +00158                         FD_SET (fds[a], &rfdset);
    +00159                 }
    +00160                 else
    +00161                 {
    +00162                         FD_SET (fds[a], &wfdset);
    +00163                 }
    +00164                 
    +00165         }
    +00166         tval.tv_sec = 0;
    +00167         tval.tv_usec = 1000L;
    +00168         sresult = select(FD_SETSIZE, &rfdset, &wfdset, NULL, &tval);
    +00169         if (sresult > 0)
    +00170         {
    +00171                 for (unsigned int a = 0; a < fds.size(); a++)
    +00172                 {
    +00173                         if ((FD_ISSET (fds[a], &rfdset)) || (FD_ISSET (fds[a], &wfdset)))
    +00174                         {
    +00175                                 log(DEBUG,"...Adding active %d",fds[a]);
    +00176                                 fdlist.push_back(fds[a]);
    +00177                         }
    +00178                 }
    +00179         }
    +00180 #endif
    +00181 #ifdef USE_KQUEUE
    +00182         ts.tv_nsec = 1000L;
    +00183         ts.tv_sec = 0;
    +00184         int i = kevent(EngineHandle, NULL, 0, &ke_list[0], 65535, &ts);
    +00185         for (int j = 0; j < i; j++)
    +00186                 fdlist.push_back(ke_list[j].ident);
    +00187 #endif
    +00188 #ifdef USE_EPOLL
    +00189         int i = epoll_wait(EngineHandle, events, 65535, 1);
    +00190         for (int j = 0; j < i; j++)
    +00191                 fdlist.push_back(events[j].data.fd);
    +00192 #endif
    +00193         return true;
    +00194 }
    +00195 
    +00196 std::string SocketEngine::GetName()
    +00197 {
    +00198 #ifdef USE_SELECT
    +00199         return "select";
    +00200 #endif
    +00201 #ifdef USE_KQUEUE
    +00202         return "kqueue";
    +00203 #endif
    +00204 #ifdef USE_EPOLL
    +00205         return "epoll";
    +00206 #endif
    +00207         return "misconfigured";
    +00208 }
    +

    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/socketengine_8cpp.html b/docs/module-doc/socketengine_8cpp.html new file mode 100644 index 000000000..b99de8006 --- /dev/null +++ b/docs/module-doc/socketengine_8cpp.html @@ -0,0 +1,62 @@ + + +InspIRCd: socketengine.cpp File Reference + + + + + +

    socketengine.cpp File Reference

    #include "inspircd_config.h"
    +#include "globals.h"
    +#include "inspircd.h"
    +#include <vector>
    +#include <string>
    +#include "socketengine.h"
    + +

    +Include dependency graph for socketengine.cpp:

    + + + + +

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

    Variables

    char ref [65535]
    +


    Variable Documentation

    +

    + + + + +
    + + + + +
    char ref[65535]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 33 of file socketengine.cpp. +

    +Referenced by SocketEngine::AddFd(), SocketEngine::DelFd(), SocketEngine::GetType(), and SocketEngine::Wait().

    +


    Generated on Mon Dec 12 13:31:10 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/socketengine_8cpp__incl.gif b/docs/module-doc/socketengine_8cpp__incl.gif new file mode 100644 index 000000000..a9b4ee54a Binary files /dev/null and b/docs/module-doc/socketengine_8cpp__incl.gif differ diff --git a/docs/module-doc/socketengine_8cpp__incl.map b/docs/module-doc/socketengine_8cpp__incl.map new file mode 100644 index 000000000..f45ed643e --- /dev/null +++ b/docs/module-doc/socketengine_8cpp__incl.map @@ -0,0 +1,2 @@ +base referer +rect $socketengine_8h-source.html 180,159 292,186 diff --git a/docs/module-doc/socketengine_8cpp__incl.md5 b/docs/module-doc/socketengine_8cpp__incl.md5 new file mode 100644 index 000000000..7588e9a56 --- /dev/null +++ b/docs/module-doc/socketengine_8cpp__incl.md5 @@ -0,0 +1 @@ +afe277f87830f5268eeca66a5c32895e \ No newline at end of file diff --git a/docs/module-doc/socketengine_8h-source.html b/docs/module-doc/socketengine_8h-source.html new file mode 100644 index 000000000..12481b1fe --- /dev/null +++ b/docs/module-doc/socketengine_8h-source.html @@ -0,0 +1,89 @@ + + +InspIRCd: socketengine.h Source File + + + + + +

    socketengine.h

    Go to the documentation of this file.
    00001 /*       +------------------------------------+
    +00002  *       | Inspire Internet Relay Chat Daemon |
    +00003  *       +------------------------------------+
    +00004  *
    +00005  *  Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
    +00006  *                       E-mail:
    +00007  *                <brain@chatspike.net>
    +00008  *                <Craig@chatspike.net>
    +00009  *
    +00010  * Written by Craig Edwards, Craig McLure, and others.
    +00011  * This program is free but copyrighted software; see
    +00012  *            the file COPYING for details.
    +00013  *
    +00014  * ---------------------------------------------------
    +00015 */
    +00016 
    +00017 #ifndef __SOCKETENGINE__
    +00018 #define __SOCKETENGINE__
    +00019 
    +00020 #include <vector>
    +00021 #include <string>
    +00022 #include "inspircd_config.h"
    +00023 #include "globals.h"
    +00024 #include "inspircd.h"
    +00025 #ifdef USE_EPOLL
    +00026 #include <sys/epoll.h>
    +00027 #define EP_DELAY 5
    +00028 #endif
    +00029 #ifdef USE_KQUEUE
    +00030 #include <sys/types.h>
    +00031 #include <sys/event.h>
    +00032 #include <sys/time.h>
    +00033 #endif
    +00034 
    +00041 const char X_EMPTY_SLOT         = 0;
    +00042 const char X_LISTEN             = 1;
    +00043 const char X_ESTAB_CLIENT       = 2;
    +00044 const char X_ESTAB_MODULE       = 3;
    +00045 const char X_ESTAB_DNS          = 4;
    +00046 
    +00055 const char X_READBIT            = 0x80;
    +00056 
    +00066 class SocketEngine {
    +00067 
    +00068         std::vector<int> fds;                   /* List of file descriptors being monitored */
    +00069         int EngineHandle;                       /* Handle to the socket engine if needed */
    +00070 #ifdef USE_SELECT
    +00071         fd_set wfdset, rfdset;                  /* Readable and writeable sets for select() */
    +00072 #endif
    +00073 #ifdef USE_KQUEUE
    +00074         struct kevent ke_list[65535];           /* Up to 64k sockets for kqueue */
    +00075         struct timespec ts;                     /* kqueue delay value */
    +00076 #endif
    +00077 #ifdef USE_EPOLL
    +00078         struct epoll_event events[65535];       /* Up to 64k sockets for epoll */
    +00079 #endif
    +00080 
    +00081 public:
    +00082 
    +00091         SocketEngine();
    +00092 
    +00097         ~SocketEngine();
    +00098 
    +00108         bool AddFd(int fd, bool readable, char type);
    +00109 
    +00120         char GetType(int fd);
    +00121 
    +00127         bool DelFd(int fd);
    +00128 
    +00135         bool Wait(std::vector<int> &fdlist);
    +00136 
    +00141         std::string GetName();
    +00142 };
    +00143 
    +00144 #endif
    +

    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/socketengine_8h.html b/docs/module-doc/socketengine_8h.html new file mode 100644 index 000000000..f91808a45 --- /dev/null +++ b/docs/module-doc/socketengine_8h.html @@ -0,0 +1,218 @@ + + +InspIRCd: socketengine.h File Reference + + + + + +

    socketengine.h File Reference

    #include <vector>
    +#include <string>
    +#include "inspircd_config.h"
    +#include "globals.h"
    +#include "inspircd.h"
    +#include <sys/types.h>
    +#include <sys/event.h>
    +#include <sys/time.h>
    + +

    +Include dependency graph for socketengine.h:

    + +

    +This graph shows which files directly or indirectly include this file:

    + + + + + + +

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

    Classes

    class  SocketEngine
     The actual socketengine class presents the same interface on all operating systems, but its private members and internal behaviour should be treated as blackboxed, and vary from system to system and upon the config settings chosen by the server admin. More...

    Variables

    const char X_EMPTY_SLOT = 0
     Each of these values represents a socket type in our reference table (the reference table itself is only accessible to socketengine.cpp).
    const char X_LISTEN = 1
    const char X_ESTAB_CLIENT = 2
    const char X_ESTAB_MODULE = 3
    const char X_ESTAB_DNS = 4
    const char X_READBIT = 0x80
     To indicate that a socket is readable, we mask its top bit with this X_READBIT value.
    +


    Variable Documentation

    +

    + + + + +
    + + + + +
    const char X_EMPTY_SLOT = 0
    +
    + + + + + +
    +   + + +

    +Each of these values represents a socket type in our reference table (the reference table itself is only accessible to socketengine.cpp). +

    + +

    +Definition at line 41 of file socketengine.h. +

    +Referenced by SocketEngine::GetType().

    +

    + + + + +
    + + + + +
    const char X_ESTAB_CLIENT = 2
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 43 of file socketengine.h.

    +

    + + + + +
    + + + + +
    const char X_ESTAB_DNS = 4
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 45 of file socketengine.h.

    +

    + + + + +
    + + + + +
    const char X_ESTAB_MODULE = 3
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 44 of file socketengine.h. +

    +Referenced by InspSocket::InspSocket(), and InspSocket::Poll().

    +

    + + + + +
    + + + + +
    const char X_LISTEN = 1
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 42 of file socketengine.h.

    +

    + + + + +
    + + + + +
    const char X_READBIT = 0x80
    +
    + + + + + +
    +   + + +

    +To indicate that a socket is readable, we mask its top bit with this X_READBIT value. +

    +The socket engine can handle two types of socket, readable and writeable (error sockets are dealt with when read() and write() return negative or zero values). +

    +Definition at line 55 of file socketengine.h. +

    +Referenced by SocketEngine::AddFd(), SocketEngine::DelFd(), and SocketEngine::Wait().

    +


    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/socketengine_8h__dep__incl.gif b/docs/module-doc/socketengine_8h__dep__incl.gif new file mode 100644 index 000000000..7b835f18d Binary files /dev/null and b/docs/module-doc/socketengine_8h__dep__incl.gif differ diff --git a/docs/module-doc/socketengine_8h__dep__incl.map b/docs/module-doc/socketengine_8h__dep__incl.map new file mode 100644 index 000000000..d19518b55 --- /dev/null +++ b/docs/module-doc/socketengine_8h__dep__incl.map @@ -0,0 +1,4 @@ +base referer +rect $modules_8cpp-source.html 180,7 279,33 +rect $socket_8cpp-source.html 187,57 272,84 +rect $socketengine_8cpp-source.html 167,108 292,135 diff --git a/docs/module-doc/socketengine_8h__dep__incl.md5 b/docs/module-doc/socketengine_8h__dep__incl.md5 new file mode 100644 index 000000000..eb92fe10f --- /dev/null +++ b/docs/module-doc/socketengine_8h__dep__incl.md5 @@ -0,0 +1 @@ +00d3a68c8884c78980281618846deffd \ No newline at end of file diff --git a/docs/module-doc/socketengine_8h__incl.gif b/docs/module-doc/socketengine_8h__incl.gif new file mode 100644 index 000000000..314924cd0 Binary files /dev/null and b/docs/module-doc/socketengine_8h__incl.gif differ diff --git a/docs/module-doc/socketengine_8h__incl.map b/docs/module-doc/socketengine_8h__incl.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/socketengine_8h__incl.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/socketengine_8h__incl.md5 b/docs/module-doc/socketengine_8h__incl.md5 new file mode 100644 index 000000000..b52cfeccc --- /dev/null +++ b/docs/module-doc/socketengine_8h__incl.md5 @@ -0,0 +1 @@ +d61c5ce9be257a944950df9c9b0b0b2b \ No newline at end of file diff --git a/docs/module-doc/structdns__ip4list-members.html b/docs/module-doc/structdns__ip4list-members.html index 40ab17ab3..c1a61e7ce 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 Fri Dec 9 20:20:11 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structdns__ip4list.html b/docs/module-doc/structdns__ip4list.html index 5e9a9e17c..825b6119d 100644 --- a/docs/module-doc/structdns__ip4list.html +++ b/docs/module-doc/structdns__ip4list.html @@ -74,7 +74,7 @@ Definition at line 28 of file
    The documentation for this struct was generated from the following file: -
    Generated on Fri Dec 9 20:20:11 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1InAddr__HashComp-members.html b/docs/module-doc/structirc_1_1InAddr__HashComp-members.html index f5693f7f1..8b6f00b43 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) const irc::InAddr_HashComp


    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1InAddr__HashComp.html b/docs/module-doc/structirc_1_1InAddr__HashComp.html index 83e07d260..c31a34e35 100644 --- a/docs/module-doc/structirc_1_1InAddr__HashComp.html +++ b/docs/module-doc/structirc_1_1InAddr__HashComp.html @@ -68,7 +68,7 @@ The operator () does the actual comparison in hash_map.
    The documentation for this struct was generated from the following file: -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1StrHashComp-members.html b/docs/module-doc/structirc_1_1StrHashComp-members.html index 9bf858e6c..ae265e1b3 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) const irc::StrHashComp


    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1StrHashComp.html b/docs/module-doc/structirc_1_1StrHashComp.html index 5c6c1c97d..1153c272f 100644 --- a/docs/module-doc/structirc_1_1StrHashComp.html +++ b/docs/module-doc/structirc_1_1StrHashComp.html @@ -68,7 +68,7 @@ The operator () does the actual comparison in hash_map.
    The documentation for this struct was generated from the following file: -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    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 f40a3458d..f2d990926 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 Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1irc__char__traits.html b/docs/module-doc/structirc_1_1irc__char__traits.html index 60ad0d63e..8e6ecded8 100644 --- a/docs/module-doc/structirc_1_1irc__char__traits.html +++ b/docs/module-doc/structirc_1_1irc__char__traits.html @@ -256,7 +256,7 @@ Check if two chars do NOT match.
    The documentation for this struct was generated from the following file: -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html index 00a4cfb59..4311a24d5 100644 --- a/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html +++ b/docs/module-doc/structnspace_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) const nspace::hash< in_addr >


    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html index 439e9c023..b97d6155b 100644 --- a/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html +++ b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html @@ -54,7 +54,7 @@ Definition at line 54 of
    The documentation for this struct was generated from the following file: -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html b/docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html index 94058dcac..6d0b12462 100644 --- a/docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html +++ b/docs/module-doc/structnspace_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) const nspace::hash< string >


    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html b/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html index a963e1d80..c582cd7f2 100644 --- a/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html +++ b/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html @@ -54,7 +54,7 @@ Definition at line 62 of
    The documentation for this struct was generated from the following file: -
    Generated on Fri Dec 9 20:20:13 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/tree.html b/docs/module-doc/tree.html index e05db0113..39c87256d 100644 --- a/docs/module-doc/tree.html +++ b/docs/module-doc/tree.html @@ -88,6 +88,8 @@

    |o*modules.h

    |o*socket.cpp

    |o*socket.h

    +

    |o*socketengine.cpp

    +

    |o*socketengine.h

    |o*users.cpp

    |o*users.h

    |\*xline.h

    @@ -129,6 +131,7 @@

    |o*QLine

    |o*Request

    |o*Server

    +

    |o*SocketEngine

    |o*irc::StrHashComp

    |o*ucrec

    |o*userrec

    @@ -193,6 +196,7 @@

    |o*nspace::hash< string >

    |o*irc::InAddr_HashComp

    |o*InspSocket

    +

    |o*SocketEngine

    |o*irc::StrHashComp

    |\*WhoWasUser

    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 4254d8509..23de4fd45 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -317,7 +317,7 @@ 00308 { 00309 return this->WriteError; 00310 } -

    Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +

    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index c0507b2e0..183a218ff 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -107,7 +107,7 @@ Include dependency graph for users.cpp:

    Generated on Fri Dec 9 20:20:09 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index f355eeb54..8be668888 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -192,7 +192,7 @@ 00342 }; 00343 00344 #endif -

    Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  +

    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 5a1e5c89c..3e2cd0b88 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -275,7 +275,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line 97 of file users.h. -
    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/xline_8h-source.html b/docs/module-doc/xline_8h-source.html index c15e7534b..7ec20e052 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -124,7 +124,7 @@ 00156 bool qline_make_global(const char* nickname); 00157 00158 #endif -

    Generated on Fri Dec 9 20:20:04 2005 for InspIRCd by  +

    Generated on Mon Dec 12 13:31:08 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/xline_8h.html b/docs/module-doc/xline_8h.html index 15600f2c5..af1f2d9a8 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -161,7 +161,7 @@ This graph shows which files directly or indirectly include this file:

    -Referenced by Server::AddELine(). +Referenced by Server::AddELine().

    @@ -212,7 +212,7 @@ Referenced by Server::AddEL

    -Referenced by Server::AddGLine(). +Referenced by Server::AddGLine().

    @@ -263,7 +263,7 @@ Referenced by Server::AddGL

    -Referenced by Server::AddKLine(). +Referenced by Server::AddKLine().

    @@ -314,7 +314,7 @@ Referenced by Server::AddKL

    -Referenced by Server::AddQLine(). +Referenced by Server::AddQLine().

    @@ -365,7 +365,7 @@ Referenced by Server::AddQL

    -Referenced by Server::AddZLine(). +Referenced by Server::AddZLine().

    @@ -422,7 +422,7 @@ Referenced by Server::AddZL

    -Referenced by Server::DelELine(). +Referenced by Server::DelELine().

    @@ -452,7 +452,7 @@ Referenced by Server::DelEL

    -Referenced by Server::DelGLine(). +Referenced by Server::DelGLine().

    @@ -482,7 +482,7 @@ Referenced by Server::DelGL

    -Referenced by Server::DelKLine(). +Referenced by Server::DelKLine().

    @@ -512,7 +512,7 @@ Referenced by Server::DelKL

    -Referenced by Server::DelQLine(). +Referenced by Server::DelQLine().

    @@ -542,7 +542,7 @@ Referenced by Server::DelQL

    -Referenced by Server::DelZLine(). +Referenced by Server::DelZLine().

    @@ -1083,7 +1083,7 @@ Referenced by Server::DelZL -


    Generated on Fri Dec 9 20:20:10 2005 for InspIRCd by  +
    Generated on Mon Dec 12 13:31:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    -- cgit v1.2.3