class MPacketContext : public MInetBase |
Provides a packet context as a number of (key, value) pairs.
The low eight bits of the key contain always the protocol number (extension header) being implemented by the hook.
If the protocol is destination option or hop-by-hop option, the implemented option types are communicated to the default handler by adding a non-zero value to the packet context with a key computed as "(option-type << 8) | protocol".
Public Member Functions | |
---|---|
TUint32 | HookValue(const TUint32) |
TInt | SetHookValue(const TUint32, const TUint32) |
Inherited Functions | |
---|---|
MInetBase::GetApiL(const TDesC8 &,TUint *) | |
MInetBase::GetApiL(const TDesC8 &,TUint) |
TUint32 | HookValue | ( | const TUint32 | aId | ) | const [pure virtual] |
Gets the value associated with the specified key.
Return the current value associated with aId. If aId does not exist, ZERO is returned [=> there is no way to differentiate between non-existing value and a value that is explicitly set to zero. Implementation may interpret setting value to ZERO as request to delete the association, if it exists].
const TUint32 aId | Key |
TInt | SetHookValue | ( | const TUint32 | aId, |
const TUint32 | aValue | |||
) | [pure virtual] |
Sets a (key,value) pair.
If a setting already exists for the key, the value is just replaced.
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.