Main Page | Class Hierarchy | Class List | File List | Class Members

AAAAccountingClientSession Class Reference

Accounting Client Session Base Class Definition. More...

#include <diameter_api.h>

Inheritance diagram for AAAAccountingClientSession:

AAAAccountingSession AAASession AAAEventHandler List of all members.

Public Types

enum  RECTYPE { RECTYPE_EVENT = 1, RECTYPE_START = 2, RECTYPE_INTERIM = 3, RECTYPE_STOP = 4 }

Public Member Functions

 AAAAccountingClientSession (AAAApplicationCore &appCore, diameter_unsigned32_t id)
virtual ~AAAAccountingClientSession ()
AAAReturnCode SetInterimRecordInterval (RECTYPE type, int interval=0, AAASessionPayload payload=NULL)
virtual AAAReturnCode HandleInterimRecordEvent (RECTYPE type, AAASessionPayload payload)

Detailed Description

Accounting Client Session Base Class Definition.

This is the base class used by client accounting application. They can inherit this class to implement specific functionalities.


Member Enumeration Documentation

enum AAAAccountingClientSession::RECTYPE
 

Record type enumeration


Constructor & Destructor Documentation

AAAAccountingClientSession::AAAAccountingClientSession AAAApplicationCore appCore,
diameter_unsigned32_t  id
 

constructor

Parameters:
appCore Application core instance
id Application ID associated with this session

virtual AAAAccountingClientSession::~AAAAccountingClientSession  )  [virtual]
 

destructor


Member Function Documentation

virtual AAAReturnCode AAAAccountingClientSession::HandleInterimRecordEvent RECTYPE  type,
AAASessionPayload  payload
[virtual]
 

Event handler for interim record events. This method is invoked when interim record events has been scheduled via SetInterimRecordInterval

Parameters:
type Record type involved in this call
payload user specified payload assigned during a call to SetInterimRecordInterval()

AAAReturnCode AAAAccountingClientSession::SetInterimRecordInterval RECTYPE  type,
int  interval = 0,
AAASessionPayload  payload = NULL
 

Assigns an interim interval value to the current client session. A call to this method schedules HandleInterimRecordEvent() to be invoked depending on the interval value and record type. (see notes on diameter draft). This method is optional. Applications MAY implement thier own algorithm for scheduling record events.

Parameters:
type Record type for this interval
interval Interval in seconds being scheduled
payload User defined payload


The documentation for this class was generated from the following file:
Generated on Fri Jun 25 19:12:02 2004 for Open Diameter C++ API by doxygen 1.3.5