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/classModule.html | 44 ++++++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 13 deletions(-) (limited to 'docs/module-doc/classModule.html') diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 1d3fc1699..37ab96846 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -36,10 +36,10 @@ Inherits classbase. virtual void OnUserPart (userrec *user, chanrec *channel)  Called when a user parts a channel.

-virtual void OnPacketTransmit (char *p) +virtual void OnPacketTransmit (std::string &data, std::string serv)  Called before a packet is transmitted across the irc network between two irc servers.


-virtual void OnPacketReceive (char *p) +virtual void OnPacketReceive (std::string &data, std::string serv)  Called after a packet is received from another irc server.


virtual void OnRehash () @@ -604,10 +604,19 @@ Definition at line 319 void Module::OnPacketReceive (  - char *  - p -  )  - [virtual] + std::string &  + data, + + + + + std::string  + serv + + + + )  + [virtual] @@ -624,7 +633,7 @@ Definition at line 319

Called after a packet is received from another irc server.

-The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called immediately after the packet is received but before any other operations with the core of the ircd. +This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called immediately after the packet is received but before any other operations with the core of the ircd.

Definition at line 313 of file modules.cpp.

@@ -640,10 +649,19 @@ Definition at line 313 void Module::OnPacketTransmit (  - char *  - p -  )  - [virtual] + std::string &  + data, + + + + + std::string  + serv + + + + )  + [virtual] @@ -660,7 +678,7 @@ Definition at line 313

Called before a packet is transmitted across the irc network between two irc servers.

-The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program. +This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program.

Definition at line 312 of file modules.cpp.

@@ -1309,7 +1327,7 @@ Definition at line 321


The documentation for this class was generated from the following files: -
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by +
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by doxygen 1.3.3
-- cgit v1.2.3