Mixe for Privacy and Anonymity in the Internet
|
#include <CALastMixChannelList.hpp>
Public Member Functions | |
CALastMixChannelList () | |
~CALastMixChannelList () | |
SINT32 | add (HCHANNEL id, CASocket *pSocket, CASymChannelCipher *pCipher, CAQueue *pQueue) |
lmChannelListEntry * | get (HCHANNEL channelIn) |
lmChannelListEntry * | getFirstSocket () |
lmChannelListEntry * | getNextSocket () |
SINT32 | removeChannel (HCHANNEL channelIn) |
UINT32 | getSize () |
Static Public Member Functions | |
static SINT32 | test () |
Private Attributes | |
UINT32 | m_nChannels |
LP_lmChannelListEntry * | m_HashTable |
The Hash-Table of all channels. More... | |
lmChannelList * | m_listSockets |
Pointer to the head of a list of all sockets. More... | |
lmChannelList * | m_listSocketsNext |
Next Element in the enumeration of all sockets. More... | |
Definition at line 106 of file CALastMixChannelList.hpp.
CALastMixChannelList::CALastMixChannelList | ( | ) |
Definition at line 34 of file CALastMixChannelList.cpp.
References DELAY_CHANNEL_LATENCY, HASHTABLE_SIZE, m_HashTable, m_listSockets, m_listSocketsNext, m_nChannels, and MAX_POLLFD.
CALastMixChannelList::~CALastMixChannelList | ( | ) |
Definition at line 61 of file CALastMixChannelList.cpp.
References HASHTABLE_SIZE, t_lastmixchannellist::list_Channels, m_HashTable, and t_lastmixchannellist::next.
SINT32 CALastMixChannelList::add | ( | HCHANNEL | id, |
CASocket * | pSocket, | ||
CASymChannelCipher * | pCipher, | ||
CAQueue * | pQueue | ||
) |
Definition at line 93 of file CALastMixChannelList.cpp.
References t_lastmixchannellist::channelIn, E_SUCCESS, HASH_MASK, t_lastmixchannellist::list_Channels, t_lastmixchannellist::list_Sockets, m_HashTable, m_listSockets, m_nChannels, MAX_POLLFD, t_lastmixchannellist::next, t_lastmixchannellist::pCipher, t_lastmixchannellist::pQueueSend, t_lastmixchannellist::prev, t_lastmixchannellist::pSocket, t_lastmixchannellist::sendmeCounterDownstream, and t_lastmixchannellist::sendmeCounterUpstream.
Referenced by CALastMixA::loop(), and test().
|
inline |
Definition at line 135 of file CALastMixChannelList.hpp.
References t_lastmixchannellist::channelIn, HASH_MASK, t_lastmixchannellist::list_Channels, m_HashTable, and t_lastmixchannellist::next.
Referenced by CALastMixA::loop().
|
inline |
Definition at line 178 of file CALastMixChannelList.hpp.
References t_lastmixchannellist::list_Sockets, m_listSockets, m_listSocketsNext, and t_lastmixchannellist::next.
Referenced by CALastMix::clean(), CALastMixA::loop(), and test().
|
inline |
Definition at line 187 of file CALastMixChannelList.hpp.
References t_lastmixchannellist::list_Sockets, m_listSocketsNext, and t_lastmixchannellist::next.
Referenced by CALastMix::clean(), CALastMixA::loop(), and test().
|
inline |
Definition at line 197 of file CALastMixChannelList.hpp.
References m_nChannels.
Referenced by CALastMixA::loop().
Definition at line 195 of file CALastMixChannelList.cpp.
References channel, t_lastmixchannellist::channelIn, E_SUCCESS, CALibProxytest::getOptions(), HASH_MASK, t_lastmixchannellist::list_Channels, t_lastmixchannellist::list_Sockets, LOG_ENCRYPTED, m_HashTable, m_listSockets, m_listSocketsNext, m_nChannels, t_lastmixchannellist::next, t_lastmixchannellist::prev, and CAMsg::printMsg().
Referenced by CALastMixA::loop(), and test().
|
static |
Definition at line 256 of file CALastMixChannelList.cpp.
References add(), t_lastmixchannellist::channelIn, getFirstSocket(), getNextSocket(), getRandom(), and removeChannel().
|
private |
The Hash-Table of all channels.
Definition at line 203 of file CALastMixChannelList.hpp.
Referenced by add(), CALastMixChannelList(), get(), removeChannel(), and ~CALastMixChannelList().
|
private |
Pointer to the head of a list of all sockets.
Definition at line 206 of file CALastMixChannelList.hpp.
Referenced by add(), CALastMixChannelList(), getFirstSocket(), and removeChannel().
|
private |
Next Element in the enumeration of all sockets.
Definition at line 208 of file CALastMixChannelList.hpp.
Referenced by CALastMixChannelList(), getFirstSocket(), getNextSocket(), and removeChannel().
|
private |
Definition at line 201 of file CALastMixChannelList.hpp.
Referenced by add(), CALastMixChannelList(), getSize(), and removeChannel().