Mixe for Privacy and Anonymity in the Internet
|
#include "StdAfx.h"
#include "CACmdLnOptions.hpp"
#include "CAMsg.hpp"
#include "CALocalProxy.hpp"
#include "CAQueue.hpp"
#include "CAThreadList.hpp"
#include "CAStatusManager.hpp"
#include "CALibProxytest.hpp"
#include "CACryptoBenchmark.hpp"
#include "UDPMix/CAUDPMixMiddle.hpp"
#include "CAMiddleMix.hpp"
#include "xml/DOM_Output.hpp"
#include "CAMix.hpp"
#include "TypeA/CAFirstMixA.hpp"
#include "TypeA/CALastMixA.hpp"
#include "CALogPacketStats.hpp"
#include "CATLSClientSocket.hpp"
Go to the source code of this file.
Functions | |
void | removePidFile () |
Removes the stored PID (file) More... | |
void | init () |
do necessary initialisations of libraries etc. More... | |
void | cleanup () |
do necessary cleanups of libraries etc. More... | |
void | my_terminate (void) |
Remark: terminate() might be already defined by the c lib – do not use this name... More... | |
void | signal_segv (int) |
void | signal_term (int) |
void | signal_interrupt (int) |
void | signal_hup (int) |
void | checkSizesOfTypes () |
Check what the sizes of (base) types are as expected – if not kill the programm. More... | |
int | main (int argc, const char *argv[]) |
Variables | |
CAMix * | pMix =NULL |
bool | bTriedTermination = false |
void checkSizesOfTypes | ( | ) |
Check what the sizes of (base) types are as expected – if not kill the programm.
Definition at line 262 of file proxytest.cpp.
References t_MixPacket::channel, t_MixPacket::data, t_MixPacketPayload::data, t_MixPacket::flags, t_MixPacketPayload::len, MIXPACKET_SIZE, t_MixPacket::payload, CAMsg::printMsg(), and t_MixPacketPayload::type.
Referenced by main().
void cleanup | ( | ) |
do necessary cleanups of libraries etc.
Definition at line 151 of file proxytest.cpp.
References CALibProxytest::cleanup(), pMix, CAMsg::printMsg(), and removePidFile().
Referenced by CAAccountingInstance::__newSettlementTransaction(), CALibProxytest::cleanup(), main(), and my_terminate().
void init | ( | ) |
do necessary initialisations of libraries etc.
Definition at line 145 of file proxytest.cpp.
References CALibProxytest::init().
Referenced by main().
int main | ( | int | argc, |
const char * | argv[] | ||
) |
Definition at line 519 of file proxytest.cpp.
References checkSizesOfTypes(), CAMsg::cleanup(), cleanup(), CACryptoBenchmark::doBenchmark(), E_SUCCESS, ev_net_firstMixInited, ev_net_lastMixInited, ev_net_middleMixInited, ev_sys_start, CAMsg::getLogLevelStr(), CALibProxytest::getOptions(), CAMsg::init(), init(), len, CAReplayDatabase::measurePerformance(), MONITORING_FIRE_NET_EVENT, MONITORING_FIRE_SYS_EVENT, pMix, CAMsg::printMsg(), S_IREAD, S_IWRITE, CASocket::setMaxNormalSockets(), signal_hup(), signal_interrupt(), signal_segv(), signal_term(), CALocalProxy::start(), and CAMix::start().
void my_terminate | ( | void | ) |
Remark: terminate() might be already defined by the c lib – do not use this name...
Definition at line 182 of file proxytest.cpp.
References bTriedTermination, cleanup(), CAMix::isShutDown(), msSleep(), pMix, and CAMix::shutDown().
Referenced by signal_interrupt(), and signal_term().
void removePidFile | ( | ) |
Removes the stored PID (file)
Definition at line 122 of file proxytest.cpp.
References E_SUCCESS, and CALibProxytest::getOptions().
Referenced by cleanup().
void signal_hup | ( | int | ) |
Definition at line 254 of file proxytest.cpp.
References CALibProxytest::getOptions(), pMix, and CACmdLnOptions::reread().
Referenced by main().
void signal_interrupt | ( | int | ) |
Definition at line 241 of file proxytest.cpp.
References ev_sys_sigInt, MONITORING_FIRE_SYS_EVENT, my_terminate(), and CAMsg::printMsg().
Referenced by main().
void signal_segv | ( | int | ) |
Definition at line 204 of file proxytest.cpp.
References ev_sys_sigSegV, MONITORING_FIRE_SYS_EVENT, CAMsg::printMsg(), and sSleep().
Referenced by main().
void signal_term | ( | int | ) |
Definition at line 233 of file proxytest.cpp.
References ev_sys_sigTerm, MONITORING_FIRE_SYS_EVENT, my_terminate(), and CAMsg::printMsg().
Referenced by main().
bool bTriedTermination = false |
Definition at line 103 of file proxytest.cpp.
Referenced by my_terminate().
CAMix* pMix =NULL |
Definition at line 75 of file proxytest.cpp.
Referenced by CAInfoService::CAInfoService(), CAReplayCtrlChannelMsgProc::CAReplayCtrlChannelMsgProc(), cleanup(), CALastMixA::loop(), main(), my_terminate(), CAReplayCtrlChannelMsgProc::proccessGetTimestamp(), CAReplayCtrlChannelMsgProc::proccessGotTimestamp(), CACmdLnOptions::reread(), and signal_hup().