From 3d7312f8af1becdbe458392e14ea64c904ee7b92 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Apr 2005 14:39:07 +0000 Subject: Changed parameters of OnPacketTransmit and OnPacketReceive to be much more useful git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1024 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/modules_8h-source.html | 322 ++++++++++++++++----------------- 1 file changed, 161 insertions(+), 161 deletions(-) (limited to 'docs/module-doc/modules_8h-source.html') diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index 80f93ef15..8c20d74a6 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -137,170 +137,170 @@ 00168 00173 virtual void OnUserPart(userrec* user, chanrec* channel); 00174 -00181 virtual void OnPacketTransmit(char *p); -00182 -00190 virtual void OnPacketReceive(char *p); -00191 -00197 virtual void OnRehash(); -00198 -00207 virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user); -00208 -00218 virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); -00219 -00233 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); -00234 -00235 -00240 virtual void OnOper(userrec* user); -00241 -00250 virtual void OnInfo(userrec* user); -00251 -00256 virtual void OnWhois(userrec* source, userrec* dest); -00257 -00263 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); -00264 -00273 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); -00274 -00286 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); -00287 -00295 virtual int OnUserPreNick(userrec* user, std::string newnick); -00296 -00304 virtual void OnUserPostNick(userrec* user, std::string oldnick); -00305 -00327 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); -00328 -00334 virtual string_list OnUserSync(userrec* user); -00335 -00341 virtual string_list OnChannelSync(chanrec* chan); -00342 -00346 virtual void On005Numeric(std::string &output); -00347 -00357 virtual int OnKill(userrec* source, userrec* dest, std::string reason); -00358 -00369 virtual void OnLoadModule(Module* mod,std::string name); -00370 }; -00371 -00372 -00378 class Server : public classbase -00379 { -00380 public: -00384 Server(); -00388 virtual ~Server(); -00389 -00393 virtual void SendOpers(std::string s); -00398 virtual void Log(int level, std::string s); -00403 virtual void Send(int Socket, std::string s); -00408 virtual void SendServ(int Socket, std::string s); -00413 virtual void SendFrom(int Socket, userrec* User, std::string s); -00428 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); -00435 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); -00440 virtual bool CommonChannels(userrec* u1, userrec* u2); -00448 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); -00453 virtual void SendWallops(userrec* User, std::string text); -00454 -00458 virtual bool IsNick(std::string nick); -00462 virtual int CountUsers(chanrec* c); -00466 virtual userrec* FindNick(std::string nick); -00470 virtual chanrec* FindChannel(std::string channel); -00475 virtual std::string ChanMode(userrec* User, chanrec* Chan); -00479 virtual bool IsOnChannel(userrec* User, chanrec* Chan); -00482 virtual std::string GetServerName(); -00485 virtual std::string GetNetworkName(); -00491 virtual Admin GetAdmin(); -00510 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); -00511 -00533 virtual bool AddExtendedListMode(char modechar); -00534 -00552 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); -00553 -00575 virtual void SendMode(char **parameters, int pcnt, userrec *user); -00576 -00589 virtual void SendToModeMask(std::string modes, int flags, std::string text); -00590 -00596 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); -00597 -00603 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); -00604 -00610 virtual void ChangeUserNick(userrec* user, std::string nickname); -00611 -00622 virtual void QuitUser(userrec* user, std::string reason); -00623 -00628 virtual bool MatchText(std::string sliteral, std::string spattern); -00629 -00641 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); -00642 -00648 virtual void ChangeHost(userrec* user, std::string host); -00649 -00655 virtual void ChangeGECOS(userrec* user, std::string gecos); -00656 -00665 virtual bool IsUlined(std::string server); -00666 -00670 virtual chanuserlist GetUsers(chanrec* chan); +00180 virtual void OnPacketTransmit(std::string &data, std::string serv); +00181 +00188 virtual void OnPacketReceive(std::string &data, std::string serv); +00189 +00195 virtual void OnRehash(); +00196 +00205 virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user); +00206 +00216 virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); +00217 +00231 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); +00232 +00233 +00238 virtual void OnOper(userrec* user); +00239 +00248 virtual void OnInfo(userrec* user); +00249 +00254 virtual void OnWhois(userrec* source, userrec* dest); +00255 +00261 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); +00262 +00271 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); +00272 +00284 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); +00285 +00293 virtual int OnUserPreNick(userrec* user, std::string newnick); +00294 +00302 virtual void OnUserPostNick(userrec* user, std::string oldnick); +00303 +00325 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); +00326 +00332 virtual string_list OnUserSync(userrec* user); +00333 +00339 virtual string_list OnChannelSync(chanrec* chan); +00340 +00344 virtual void On005Numeric(std::string &output); +00345 +00355 virtual int OnKill(userrec* source, userrec* dest, std::string reason); +00356 +00367 virtual void OnLoadModule(Module* mod,std::string name); +00368 }; +00369 +00370 +00376 class Server : public classbase +00377 { +00378 public: +00382 Server(); +00386 virtual ~Server(); +00387 +00391 virtual void SendOpers(std::string s); +00396 virtual void Log(int level, std::string s); +00401 virtual void Send(int Socket, std::string s); +00406 virtual void SendServ(int Socket, std::string s); +00411 virtual void SendFrom(int Socket, userrec* User, std::string s); +00426 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); +00433 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); +00438 virtual bool CommonChannels(userrec* u1, userrec* u2); +00446 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); +00451 virtual void SendWallops(userrec* User, std::string text); +00452 +00456 virtual bool IsNick(std::string nick); +00460 virtual int CountUsers(chanrec* c); +00464 virtual userrec* FindNick(std::string nick); +00468 virtual chanrec* FindChannel(std::string channel); +00473 virtual std::string ChanMode(userrec* User, chanrec* Chan); +00477 virtual bool IsOnChannel(userrec* User, chanrec* Chan); +00480 virtual std::string GetServerName(); +00483 virtual std::string GetNetworkName(); +00489 virtual Admin GetAdmin(); +00508 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); +00509 +00531 virtual bool AddExtendedListMode(char modechar); +00532 +00550 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); +00551 +00573 virtual void SendMode(char **parameters, int pcnt, userrec *user); +00574 +00587 virtual void SendToModeMask(std::string modes, int flags, std::string text); +00588 +00594 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); +00595 +00601 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); +00602 +00608 virtual void ChangeUserNick(userrec* user, std::string nickname); +00609 +00620 virtual void QuitUser(userrec* user, std::string reason); +00621 +00626 virtual bool MatchText(std::string sliteral, std::string spattern); +00627 +00639 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); +00640 +00646 virtual void ChangeHost(userrec* user, std::string host); +00647 +00653 virtual void ChangeGECOS(userrec* user, std::string gecos); +00654 +00663 virtual bool IsUlined(std::string server); +00664 +00668 virtual chanuserlist GetUsers(chanrec* chan); +00669 +00670 }; 00671 -00672 }; -00673 -00674 #define CONF_NOT_A_NUMBER 0x000010 -00675 #define CONF_NOT_UNSIGNED 0x000080 -00676 #define CONF_VALUE_NOT_FOUND 0x000100 -00677 #define CONF_FILE_NOT_FOUND 0x000200 -00678 -00685 class ConfigReader : public classbase -00686 { -00687 protected: -00693 std::stringstream *cache; -00694 std::stringstream *errorlog; -00697 bool readerror; -00698 long error; -00699 -00700 public: -00705 ConfigReader(); // default constructor reads ircd.conf -00709 ConfigReader(std::string filename); // read a module-specific config -00713 ~ConfigReader(); -00718 std::string ReadValue(std::string tag, std::string name, int index); -00724 bool ReadFlag(std::string tag, std::string name, int index); -00733 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); -00738 long GetError(); -00745 int Enumerate(std::string tag); -00750 bool Verify(); -00757 void DumpErrors(bool bail,userrec* user); -00758 -00764 int EnumerateValues(std::string tag, int index); -00765 }; +00672 #define CONF_NOT_A_NUMBER 0x000010 +00673 #define CONF_NOT_UNSIGNED 0x000080 +00674 #define CONF_VALUE_NOT_FOUND 0x000100 +00675 #define CONF_FILE_NOT_FOUND 0x000200 +00676 +00683 class ConfigReader : public classbase +00684 { +00685 protected: +00691 std::stringstream *cache; +00692 std::stringstream *errorlog; +00695 bool readerror; +00696 long error; +00697 +00698 public: +00703 ConfigReader(); // default constructor reads ircd.conf +00707 ConfigReader(std::string filename); // read a module-specific config +00711 ~ConfigReader(); +00716 std::string ReadValue(std::string tag, std::string name, int index); +00722 bool ReadFlag(std::string tag, std::string name, int index); +00731 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); +00736 long GetError(); +00743 int Enumerate(std::string tag); +00748 bool Verify(); +00755 void DumpErrors(bool bail,userrec* user); +00756 +00762 int EnumerateValues(std::string tag, int index); +00763 }; +00764 +00765 00766 -00767 -00768 -00774 class FileReader : public classbase -00775 { -00776 file_cache fc; -00777 public: -00782 FileReader(); -00783 -00789 FileReader(std::string filename); -00790 -00794 ~FileReader(); -00795 -00801 void LoadFile(std::string filename); -00802 -00806 bool Exists(); -00807 -00812 std::string GetLine(int x); -00813 -00819 int FileSize(); -00820 }; -00821 -00822 -00829 class ModuleFactory : public classbase -00830 { -00831 public: -00832 ModuleFactory() { } -00833 virtual ~ModuleFactory() { } -00838 virtual Module * CreateModule() = 0; -00839 }; -00840 +00772 class FileReader : public classbase +00773 { +00774 file_cache fc; +00775 public: +00780 FileReader(); +00781 +00787 FileReader(std::string filename); +00788 +00792 ~FileReader(); +00793 +00799 void LoadFile(std::string filename); +00800 +00804 bool Exists(); +00805 +00810 std::string GetLine(int x); +00811 +00817 int FileSize(); +00818 }; +00819 +00820 +00827 class ModuleFactory : public classbase +00828 { +00829 public: +00830 ModuleFactory() { } +00831 virtual ~ModuleFactory() { } +00836 virtual Module * CreateModule() = 0; +00837 }; +00838 +00839 +00840 typedef DLLFactory<ModuleFactory> ircd_module; 00841 -00842 typedef DLLFactory<ModuleFactory> ircd_module; -00843 -00844 #endif -
Generated on Thu Apr 7 20:14:21 2005 for InspIRCd by +00842 #endif +
Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by doxygen 1.3.3
-- cgit v1.2.3