Writing
an Outflow Hook Tutorial
This 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);
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.