Mixes for Privacy and Anonymity in the Internet
|
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.
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.
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.
References CALibProxytest::init().
Referenced by main().
int main | ( | int | argc, |
const char * | argv[] | ||
) |
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...
References bTriedTermination, cleanup(), CAMix::isShutDown(), msSleep(), pMix, and CAMix::shutDown().
Referenced by signal_interrupt(), and signal_term().
void removePidFile | ( | ) |
Removes the stored PID (file)
References E_SUCCESS, and CALibProxytest::getOptions().
Referenced by cleanup().
void signal_hup | ( | int | ) |
References CALibProxytest::getOptions(), pMix, and CACmdLnOptions::reread().
Referenced by main().
void signal_interrupt | ( | int | ) |
References ev_sys_sigInt, MONITORING_FIRE_SYS_EVENT, my_terminate(), and CAMsg::printMsg().
Referenced by main().
void signal_segv | ( | int | ) |
References ev_sys_sigSegV, MONITORING_FIRE_SYS_EVENT, CAMsg::printMsg(), and sSleep().
Referenced by main().
void signal_term | ( | int | ) |
References ev_sys_sigTerm, MONITORING_FIRE_SYS_EVENT, my_terminate(), and CAMsg::printMsg().
Referenced by main().
bool bTriedTermination = false |
Referenced by my_terminate().
CAMix* pMix =NULL |
Referenced by CAInfoService::CAInfoService(), CAReplayCtrlChannelMsgProc::CAReplayCtrlChannelMsgProc(), cleanup(), CALastMixA::loop(), main(), my_terminate(), CAReplayCtrlChannelMsgProc::proccessGetTimestamp(), CAReplayCtrlChannelMsgProc::proccessGotTimestamp(), CACmdLnOptions::reread(), and signal_hup().