Mixe for Privacy and Anonymity in the Internet
|
#include "StdAfx.h"
#include "CAMiddleMix.hpp"
#include "CASingleSocketGroup.hpp"
#include "CAMsg.hpp"
#include "CACmdLnOptions.hpp"
#include "CASocketAddrINet.hpp"
#include "CASocketAddrUnix.hpp"
#include "CAThread.hpp"
#include "CAInfoService.hpp"
#include "CAUtil.hpp"
#include "CABase64.hpp"
#include "CAPool.hpp"
#include "xml/DOM_Output.hpp"
#include "CAStatusManager.hpp"
#include "CALibProxytest.hpp"
#include "CAControlChannelDispatcher.hpp"
#include "CASymChannelCipher.hpp"
#include "CASymChannelCipherFactory.hpp"
Go to the source code of this file.
Macros | |
#define | MIDDLE_MIX_SIZE_OF_SYMMETRIC_KEYS 2*KEY_SIZE |
#define | MIDDLE_MIX_ASYM_PADDING_SIZE 42 |
#define | RETRIES 100 |
#define | RETRYTIME 10 |
Functions | |
THREAD_RETURN | mm_loopSendToMixAfter (void *param) |
UPSTREAM (to WEB) Take the packets from the Queue and write them to the Socket. More... | |
THREAD_RETURN | mm_loopSendToMixBefore (void *param) |
DOWNSTREAM (to Client) Take the packets from the Queue and write them to the Socket. More... | |
THREAD_RETURN | mm_loopReadFromMixBefore (void *param) |
THREAD_RETURN | mm_loopReadFromMixAfter (void *param) |
#define MIDDLE_MIX_ASYM_PADDING_SIZE 42 |
Definition at line 1041 of file CAMiddleMix.cpp.
#define MIDDLE_MIX_SIZE_OF_SYMMETRIC_KEYS 2*KEY_SIZE |
Definition at line 1040 of file CAMiddleMix.cpp.
#define RETRIES 100 |
#define RETRYTIME 10 |
THREAD_RETURN mm_loopReadFromMixAfter | ( | void * | param | ) |
SGX MIX locksem(downstreamSemPreId, SN_EMPTY); memcpy(downstreamPreBuffer,pPoolEntry, sizeof(tPoolEntry)); unlocksem(downstreamSemPreId, SN_FULL);
locksem(downstreamSemPostId, SN_FULL); memcpy(pPoolEntry,downstreamPostBuffer, sizeof(tPoolEntry)); unlocksem(downstreamSemPostId, SN_EMPTY); getRandom(pMixPacket->data,DATA_SIZE);
SGX MIX locksem(pMix->downstreamSemPreId, SN_EMPTY); memcpy(pMix->downstreamPreBuffer,pPoolEntry, sizeof(tPoolEntry)); unlocksem(pMix->downstreamSemPreId, SN_FULL);
locksem(pMix->downstreamSemPostId, SN_FULL); memcpy(pPoolEntry,pMix->downstreamPostBuffer, sizeof(tPoolEntry)); unlocksem(pMix->downstreamSemPostId, SN_EMPTY);
Definition at line 1254 of file CAMiddleMix.cpp.
THREAD_RETURN mm_loopReadFromMixBefore | ( | void * | param | ) |
Definition at line 1045 of file CAMiddleMix.cpp.
THREAD_RETURN mm_loopSendToMixAfter | ( | void * | param | ) |
UPSTREAM (to WEB) Take the packets from the Queue and write them to the Socket.
Definition at line 920 of file CAMiddleMix.cpp.
THREAD_RETURN mm_loopSendToMixBefore | ( | void * | param | ) |
DOWNSTREAM (to Client) Take the packets from the Queue and write them to the Socket.
Definition at line 981 of file CAMiddleMix.cpp.