CNifIfBase Class Reference

class CNifIfBase : public CBase
Base class for nif binder layers. Classes derived from CNifIfBase act as a binder layer to the layer 3 protocol, and send and receive a specified protocol between the network layer and the link layer
Note:

There should be one CNifIfBase object per protocol, per nif instance

Since
v5.0

Inherits from

Constructor & Destructor Documentation

CNifIfBase(CNifIfFactory &)

IMPORT_CCNifIfBase(CNifIfFactory &aFactory)

Constructor

Parameters

CNifIfFactory & aFactory

CNifIfBase()

IMPORT_CCNifIfBase()

Constructor

CNifIfBase(CNifIfLink &)

IMPORT_CCNifIfBase(CNifIfLink &aLink)[protected]

Constructor

Parameters

CNifIfLink & aLink

~CNifIfBase()

IMPORT_C~CNifIfBase()

Destructor

Member Functions Documentation

BindL(TAny *)

IMPORT_C voidBindL(TAny *aId)[virtual]

Bind to the protocol layer (store the pointer to the CProtocolBase object)

Parameters

TAny * aIdA pointer to the protocol layer (should be cast to a CProtocolBase object)

Cleanup(TAny *)

IMPORT_C voidCleanup(TAny *aIf)[static]

Clean up an interface

Parameters

TAny * aIf

Close()

IMPORT_C voidClose()[virtual]

Decrement reference count

Control(TUint, TUint, TDes8 &, TAny *)

IMPORT_C TIntControl(TUintaLevel,
TUintaName,
TDes8 &aOption,
TAny *aSource = 0
)[virtual]

Control function for additional control of the nif

Parameters

TUint aLevelThe intended level for this control option
TUint aNameThe name of the control option
TDes8 & aOptionAny data associated with this control option, contained within a TPckg(Buf)
TAny * aSource = 0If provided, an identifier for the source of the control option; by default, zero

Info(TNifIfInfo &)

voidInfo(TNifIfInfo &aInfo)const [pure virtual]

Retrieve information about an network interface

Parameters

TNifIfInfo & aInfoOn return, contains information about the nif

Notification(TAgentToNifEventType, void *)

TInt Notification(TAgentToNifEventTypeaEvent,
void *aInfo
)[pure virtual]
Notification of an event from the agent
Note:

SC with previous releases broken in v6.1 when first argument changed type

Since

Parameters

TAgentToNifEventType aEventThe type of event that occured
void * aInfoAny data associated with the event

Notify()

MNifIfNotify *Notify()const [inline]

Accessor method for the iNotify pointer to the MNifIfNotify interface

Open()

IMPORT_C voidOpen()[virtual]

Increment reference count

Send(RMBufChain &, TAny *)

TInt Send(RMBufChain &aPdu,
TAny *aSource = 0
)[pure virtual]

Send data through this interface

Parameters

RMBufChain & aPduA packet contained within a RMBufChain
TAny * aSource = 0A pointer to the object that is sending this data

State()

IMPORT_C TIntState()[virtual]
Return the current state of the interface
Note:

Return interface as being up for BC

Since
v2.0?

Member Data Documentation

CNifIfFactory * iFactory

CNifIfFactory *iFactory[protected]

MNifIfNotify * iNotify

MNifIfNotify *iNotify[protected]

TInt iRefCount

TInt iRefCount[protected]