Mixes for Privacy and Anonymity in the Internet
Public Member Functions | Private Attributes | List of all members
CAAccountingControlChannel Class Reference

implementation of a per-user control-channel for the AccountingInstance. More...

Inheritance diagram for CAAccountingControlChannel:
CASyncControlChannel CAAbstractControlChannel

Public Member Functions

 CAAccountingControlChannel (fmHashTableEntry *pHashEntry)
 Creates a new accounting controlchannel and stores a pointer to this in the pHashEntry. More...
 
virtual ~CAAccountingControlChannel ()
 
SINT32 processXMLMessage (const XERCES_CPP_NAMESPACE::DOMDocument *a_doc)
 processMessage - receives an XML msg and appends it to the AI message queue where it will be processed asynchronously More...
 
- Public Member Functions inherited from CASyncControlChannel
 CASyncControlChannel (UINT8 id, bool bIsEncrypted)
 Constructor for a synchronized (e.g. More...
 
virtual ~CASyncControlChannel ()
 
- Public Member Functions inherited from CAAbstractControlChannel
 CAAbstractControlChannel (UINT8 id, bool bIsEncrypted)
 
virtual ~CAAbstractControlChannel ()
 
SINT32 sendXMLMessage (const XERCES_CPP_NAMESPACE::DOMDocument *pDocMsg) const
 Call to send a XML message via this control channel. More...
 
SINT32 sendXMLMessage (const UINT8 *msgXML, UINT32 msgLen) const
 Call to send a XML message via this control channel. More...
 
UINT32 getID () const
 Returns the id of this control channel. More...
 

Private Attributes

fmHashTableEntrym_pHashEntry
 

Additional Inherited Members

- Protected Member Functions inherited from CASyncControlChannel
SINT32 proccessMessage (const UINT8 *msg, UINT32 msglen)
 Processes some bytes of a message we got from the communication channel. More...
 
SINT32 proccessMessageComplete ()
 Parses the bytes in m_MsgBuff and calls processXMLMessage() More...
 
- Protected Member Functions inherited from CAAbstractControlChannel
SINT32 setDispatcher (CAControlChannelDispatcher *pDispatcher)
 Sets the Dispatcher. More...
 
- Protected Attributes inherited from CASyncControlChannel
UINT8m_MsgBuff
 buffer for assembling the parts of the message More...
 
UINT32 m_aktIndex
 how much bytes have we received already? More...
 
UINT32 m_MsgBytesLeft
 how much bytes we need until all bytes are received? More...
 
- Protected Attributes inherited from CAAbstractControlChannel
CAControlChannelDispatcherm_pDispatcher
 
bool m_bIsEncrypted
 
UINT32 m_ID
 

Detailed Description

implementation of a per-user control-channel for the AccountingInstance.

All incoming messages are appended to the AccountingInstance queue where they are processed in an own thread.

Author
Bastian Voigt

Constructor & Destructor Documentation

◆ CAAccountingControlChannel()

CAAccountingControlChannel::CAAccountingControlChannel ( fmHashTableEntry pHashEntry)

Creates a new accounting controlchannel and stores a pointer to this in the pHashEntry.

References E_SUCCESS, CAAccountingInstance::initTableEntry(), m_pHashEntry, t_fmhashtableentry::pAccountingInfo, t_accountinginfo::pControlChannel, and CAMsg::printMsg().

◆ ~CAAccountingControlChannel()

CAAccountingControlChannel::~CAAccountingControlChannel ( )
virtual

Member Function Documentation

◆ processXMLMessage()

SINT32 CAAccountingControlChannel::processXMLMessage ( const XERCES_CPP_NAMESPACE::DOMDocument *  a_doc)
virtual

processMessage - receives an XML msg and appends it to the AI message queue where it will be processed asynchronously

Implements CASyncControlChannel.

References m_pHashEntry, CAMsg::printMsg(), and CAAccountingInstance::processJapMessage().

Member Data Documentation

◆ m_pHashEntry

fmHashTableEntry* CAAccountingControlChannel::m_pHashEntry
private