diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-88AB6957-6D2B-5668-8CC3-4E426E68C9B7.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-88AB6957-6D2B-5668-8CC3-4E426E68C9B7.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,64 @@ + + + + + + Writing +an Outflow Hook TutorialThis topic describes how to write an outflow hook. + +The CIp6Hook() is +a base class for all hook protocols. + + +The OpenL() function is used to open a hook for a +data flow + + +The following are the parameters of OpenL() function: + + + +aHead – Contains the address information of the flow + + +aFlow – Flow for the active hook + + + + +The ReadyL() function sets the data packet in a ready +state. + + +The IP protocol calls the ApplyL() function to create +an outflow hook. The following are the parameters of an ApplyL() function: + + + +aPacket – A complete packet to be processed by the hook. It includes +the IP header + + +aInfo - Information block associated with the packet + + + + +How to write an Outflow Hook example

The following +is an example code for how to write an outflow hook:

+MFlowHook* OpenL(TPacketHead &aHead, CFlowContext *aFlow); +TInt ReadyL(TPacketHead& aHead); +TInt ApplyL(RMBufSendPacket& aPacket, RMBufSendInfo& aInfo); +
+
+Creating +an ESK File +Writing an +Inbound Hook +
\ No newline at end of file