|
Mixes for Privacy and Anonymity in the Internet
|
This class implements the pool strategie of a Mix. More...
Public Member Functions | |
| CAPool (UINT32 poolsize) | |
| ~CAPool () | |
| SINT32 | pool (tPoolEntry *pPoolEntry) |
Private Attributes | |
| tPoolListEntry * | m_pPoolList |
| tPoolListEntry * | m_pLastEntry |
| tPoolListEntry * | m_pEntry |
| HCHANNEL * | m_arChannelIDs |
| UINT32 | m_uPoolSize |
| UINT32 | m_uRandMax |
This class implements the pool strategie of a Mix.
See [Message Pool] for more information.
| CAPool::CAPool | ( | UINT32 | poolsize | ) |
| CAPool::~CAPool | ( | ) |
References m_arChannelIDs, m_pEntry, m_pPoolList, and t_pool_list::next.
| SINT32 CAPool::pool | ( | tPoolEntry * | pPoolEntry | ) |
References t_MixPacket::channel, E_SUCCESS, getRandom(), m_arChannelIDs, m_pEntry, m_pLastEntry, m_pPoolList, m_uPoolSize, m_uRandMax, t_pool_list::next, t_queue_entry::packet, and t_pool_list::poolentry.
Referenced by fm_loopReadFromMix(), fm_loopSendToMix(), lm_loopReadFromMix(), lm_loopSendToMix(), mm_loopReadFromMixAfter(), and mm_loopReadFromMixBefore().
HCHANNEL* CAPool::m_arChannelIDs [private] |
tPoolListEntry* CAPool::m_pEntry [private] |
tPoolListEntry* CAPool::m_pLastEntry [private] |
tPoolListEntry* CAPool::m_pPoolList [private] |
UINT32 CAPool::m_uPoolSize [private] |
UINT32 CAPool::m_uRandMax [private] |
1.7.6.1