| Mixes for Privacy and Anonymity in the Internet
    | 
Data structure that stores all information about the currently open Mix channels. More...
| Public Member Functions | |
| CAMiddleMixChannelList () | |
| ~CAMiddleMixChannelList () | |
| SINT32 | add (HCHANNEL channelIn, CASymChannelCipher *pCipher, HCHANNEL *channelOut) | 
| Adds a new Channel to the Channellist.  More... | |
| SINT32 | getInToOut (HCHANNEL channelIn, HCHANNEL *channelOut, CASymChannelCipher **ppCipher) | 
| SINT32 | remove (HCHANNEL channelIn) | 
| Removes a channel form the channellist.  More... | |
| SINT32 | getOutToIn (HCHANNEL *channelIn, HCHANNEL channelOut, CASymChannelCipher **ppCipher) | 
| Static Public Member Functions | |
| static SINT32 | test () | 
| Private Member Functions | |
| SINT32 | getOutToIn_intern_without_lock (HCHANNEL *channelIn, HCHANNEL channelOut, CASymChannelCipher **ppCipher) | 
| Private Attributes | |
| LP_mmHashTableEntry * | m_pHashTableIn | 
| LP_mmHashTableEntry * | m_pHashTableOut | 
| CAMutex | m_Mutex | 
Data structure that stores all information about the currently open Mix channels.
See [MiddleMixChannelList] for more information.
| CAMiddleMixChannelList::CAMiddleMixChannelList | ( | ) | 
References m_pHashTableIn, and m_pHashTableOut.
| CAMiddleMixChannelList::~CAMiddleMixChannelList | ( | ) | 
| SINT32 CAMiddleMixChannelList::add | ( | HCHANNEL | channelIn, | 
| CASymChannelCipher * | pCipher, | ||
| HCHANNEL * | channelOut | ||
| ) | 
Adds a new Channel to the Channellist.
| channelIn | incoming Channel-ID | 
| pCipher | Cipher for recoding | 
| channelOut | on return holds a newly created random outgoing Channel-ID | 
| E_SUCCESS | if Channel was successfully added to the list | 
References t_middlemixchannellist::channelIn, t_middlemixchannellist::channelOut, E_SUCCESS, getOutToIn_intern_without_lock(), getRandom(), t_middlemixchannellist::list_HashTableIn, t_middlemixchannellist::list_HashTableOut, CAMutex::lock(), m_Mutex, m_pHashTableIn, m_pHashTableOut, t_middlemixchannellist::dl_in::next, t_middlemixchannellist::dl_out::next, t_middlemixchannellist::pCipher, t_middlemixchannellist::dl_in::prev, t_middlemixchannellist::dl_out::prev, and CAMutex::unlock().
Referenced by test().
| SINT32 CAMiddleMixChannelList::getInToOut | ( | HCHANNEL | channelIn, | 
| HCHANNEL * | channelOut, | ||
| CASymChannelCipher ** | ppCipher | ||
| ) | 
References t_middlemixchannellist::channelIn, t_middlemixchannellist::channelOut, E_SUCCESS, E_UNKNOWN, t_middlemixchannellist::list_HashTableIn, CALockAble::lock(), CAMutex::lock(), m_Mutex, m_pHashTableIn, t_middlemixchannellist::dl_in::next, t_middlemixchannellist::pCipher, and CAMutex::unlock().
| SINT32 CAMiddleMixChannelList::getOutToIn | ( | HCHANNEL * | channelIn, | 
| HCHANNEL | channelOut, | ||
| CASymChannelCipher ** | ppCipher | ||
| ) | 
References getOutToIn_intern_without_lock(), CAMutex::lock(), m_Mutex, and CAMutex::unlock().
| 
 | private | 
Removes a channel form the channellist.
| channelIn | incoming Channel-ID of the channel which should be removed | 
| E_SUCCESS | if channel was successfully removed from the list | 
| E_UNKNOWN | otherwise | 
References t_middlemixchannellist::channelIn, t_middlemixchannellist::channelOut, E_SUCCESS, E_UNKNOWN, t_middlemixchannellist::list_HashTableIn, t_middlemixchannellist::list_HashTableOut, CAMutex::lock(), m_Mutex, m_pHashTableIn, m_pHashTableOut, t_middlemixchannellist::dl_in::next, t_middlemixchannellist::dl_out::next, t_middlemixchannellist::pCipher, t_middlemixchannellist::dl_in::prev, t_middlemixchannellist::dl_out::prev, and CAMutex::unlock().
Referenced by test().
| 
 | static | 
References add(), getRandom(), and remove().
| 
 | private | 
Referenced by add(), getInToOut(), getOutToIn(), remove(), and ~CAMiddleMixChannelList().
| 
 | private | 
Referenced by add(), CAMiddleMixChannelList(), getInToOut(), remove(), and ~CAMiddleMixChannelList().
| 
 | private | 
Referenced by add(), CAMiddleMixChannelList(), getOutToIn_intern_without_lock(), remove(), and ~CAMiddleMixChannelList().