|
Mixe for Privacy and Anonymity in the Internet
|
implementation of a per-user control-channel for the AccountingInstance. More...
#include <CAAccountingControlChannel.hpp>
Public Member Functions | |
| CAAccountingControlChannel (fmHashTableEntry *pHashEntry) | |
| Creates a new accounting controlchannel and stores a pointer to this in the pHashEntry. | |
| 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 | |
Private Attributes | |
| fmHashTableEntry * | m_pHashEntry |
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.
Definition at line 43 of file CAAccountingControlChannel.hpp.
Creates a new accounting controlchannel and stores a pointer to this in the pHashEntry.
Definition at line 37 of file CAAccountingControlChannel.cpp.
References E_SUCCESS, CAAccountingInstance::initTableEntry(), m_pHashEntry, t_fmhashtableentry::pAccountingInfo, t_accountinginfo::pControlChannel, and CAMsg::printMsg().
: CASyncControlChannel(ACCOUNT_CONTROL_CHANNEL_ID, true) { m_pHashEntry = pHashEntry; if (m_pHashEntry == NULL) { CAMsg::printMsg(LOG_CRIT,"CAAccountingControlChannel: User hash entry is NULL - creating control channel will fail!"); } if (CAAccountingInstance::initTableEntry(m_pHashEntry) == E_SUCCESS) { m_pHashEntry->pAccountingInfo->pControlChannel = this; } }
| CAAccountingControlChannel::~CAAccountingControlChannel | ( | ) | [virtual] |
Definition at line 52 of file CAAccountingControlChannel.cpp.
References CAAccountingInstance::cleanupTableEntry(), m_pHashEntry, and CAMsg::printMsg().
{
// todo cleanup hashtable entry
#ifdef DEBUG
CAMsg::printMsg(LOG_DEBUG, "~CAAccountingControlChannel destructor\n");
#endif
CAAccountingInstance::cleanupTableEntry(m_pHashEntry);
}
| 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.
Definition at line 66 of file CAAccountingControlChannel.cpp.
References m_pHashEntry, CAMsg::printMsg(), and CAAccountingInstance::processJapMessage().
{
#ifdef DEBUG
CAMsg::printMsg(LOG_DEBUG, "Invoking processJapMessage\n");
#endif
return CAAccountingInstance::processJapMessage( m_pHashEntry,a_doc );
}
Definition at line 51 of file CAAccountingControlChannel.hpp.
Referenced by CAAccountingControlChannel(), processXMLMessage(), and ~CAAccountingControlChannel().
1.7.6.1