diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-09 14:39:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-09 14:39:07 +0000 |
commit | 3d7312f8af1becdbe458392e14ea64c904ee7b92 (patch) | |
tree | 8cc2699e70e6904046cf937803d058845e57ec0d /docs/module-doc/classModule.html | |
parent | 237766c84573c4a5439382fe6ba2afc026a18e09 (diff) |
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
Diffstat (limited to 'docs/module-doc/classModule.html')
-rw-r--r-- | docs/module-doc/classModule.html | 44 |
1 files changed, 31 insertions, 13 deletions
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 <a class="el" href="classclassbase.html">classbase</a>. <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a6">OnUserPart</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *channel)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a user parts a channel. </em> <a href="#a6"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a7">OnPacketTransmit</a> (char *p)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a7">OnPacketTransmit</a> (std::string &data, std::string serv)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Called before a packet is transmitted across the irc network between two irc servers. </em> <a href="#a7"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a8">OnPacketReceive</a> (char *p)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a8">OnPacketReceive</a> (std::string &data, std::string serv)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Called after a packet is received from another irc server. </em> <a href="#a8"></a><em><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a9">OnRehash</a> ()</td></tr> @@ -604,10 +604,19 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00319">319</a> <tr> <td class="md" nowrap valign="top"> void Module::OnPacketReceive </td> <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">char * </td> - <td class="mdname1" valign="top" nowrap> <em>p</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap><code> [virtual]</code></td> + <td class="md" nowrap valign="top">std::string & </td> + <td class="mdname" nowrap> <em>data</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>serv</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> @@ -624,7 +633,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00319">319</a> <p> Called after a packet is received from another irc server. <p> -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. <p> Definition at line <a class="el" href="modules_8cpp-source.html#l00313">313</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> @@ -640,10 +649,19 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00313">313</a> <tr> <td class="md" nowrap valign="top"> void Module::OnPacketTransmit </td> <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">char * </td> - <td class="mdname1" valign="top" nowrap> <em>p</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap><code> [virtual]</code></td> + <td class="md" nowrap valign="top">std::string & </td> + <td class="mdname" nowrap> <em>data</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>serv</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> @@ -660,7 +678,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00313">313</a> <p> Called before a packet is transmitted across the irc network between two irc servers. <p> -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. <p> Definition at line <a class="el" href="modules_8cpp-source.html#l00312">312</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> @@ -1309,7 +1327,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00321">321</a> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> |