|
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, CASymCipher *pCipher, HCHANNEL *channelOut) |
| Adds a new Channel to the Channellist. | |
| SINT32 | getInToOut (HCHANNEL channelIn, HCHANNEL *channelOut, CASymCipher **ppCipher) |
| SINT32 | remove (HCHANNEL channelIn) |
| Removes a channel form the channellist. | |
| SINT32 | getOutToIn (HCHANNEL *channelIn, HCHANNEL channelOut, CASymCipher **ppCipher) |
Static Public Member Functions | |
| static SINT32 | test () |
Private Member Functions | |
| SINT32 | getOutToIn_intern_without_lock (HCHANNEL *channelIn, HCHANNEL channelOut, CASymCipher **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.
References m_pHashTableIn, and m_pHashTableOut.
| SINT32 CAMiddleMixChannelList::add | ( | HCHANNEL | channelIn, |
| CASymCipher * | 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 mm_loopReadFromMixBefore(), and test().
| SINT32 CAMiddleMixChannelList::getInToOut | ( | HCHANNEL | channelIn, |
| HCHANNEL * | channelOut, | ||
| CASymCipher ** | ppCipher | ||
| ) |
References t_middlemixchannellist::channelIn, t_middlemixchannellist::channelOut, E_SUCCESS, E_UNKNOWN, t_middlemixchannellist::list_HashTableIn, CAMutex::lock(), CALockAble::lock(), m_Mutex, m_pHashTableIn, t_middlemixchannellist::dl_in::next, t_middlemixchannellist::pCipher, and CAMutex::unlock().
Referenced by mm_loopReadFromMixBefore().
| SINT32 CAMiddleMixChannelList::getOutToIn | ( | HCHANNEL * | channelIn, |
| HCHANNEL | channelOut, | ||
| CASymCipher ** | ppCipher | ||
| ) |
References getOutToIn_intern_without_lock(), CAMutex::lock(), m_Mutex, and CAMutex::unlock().
Referenced by mm_loopReadFromMixAfter().
| SINT32 CAMiddleMixChannelList::getOutToIn_intern_without_lock | ( | HCHANNEL * | channelIn, |
| HCHANNEL | channelOut, | ||
| CASymCipher ** | ppCipher | ||
| ) | [private] |
| SINT32 CAMiddleMixChannelList::remove | ( | HCHANNEL | channelIn | ) |
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 mm_loopReadFromMixAfter(), mm_loopReadFromMixBefore(), and test().
| SINT32 CAMiddleMixChannelList::test | ( | ) | [static] |
References add(), getRandom(), and remove().
CAMutex CAMiddleMixChannelList::m_Mutex [private] |
Referenced by add(), getInToOut(), getOutToIn(), remove(), and ~CAMiddleMixChannelList().
Referenced by add(), CAMiddleMixChannelList(), getInToOut(), remove(), and ~CAMiddleMixChannelList().
Referenced by add(), CAMiddleMixChannelList(), getOutToIn_intern_without_lock(), remove(), and ~CAMiddleMixChannelList().
1.7.6.1