|
Mixes for Privacy and Anonymity in the Internet
|
Functions | |
| void | removePidFile () |
| Removes the stored PID (file) | |
| void | init () |
| do necessary initialisations of libraries etc. | |
| void | cleanup () |
| do necessary cleanups of libraries etc. | |
| void | my_terminate (void) |
| Remark: terminate() might be already defined by the c lib -- do not use this name... | |
| void | signal_segv (int) |
| void | signal_term (int) |
| void | signal_interrupt (int) |
| void | signal_hup (int) |
| void | checkSizesOfBaseTypes () |
| Check what the sizes of base types are as expected -- if not kill the programm. | |
| int | main (int argc, const char *argv[]) |
Variables | |
| CAMix * | pMix = NULL |
| bool | bTriedTermination = false |
| void checkSizesOfBaseTypes | ( | ) |
Check what the sizes of base types are as expected -- if not kill the programm.
References CAMsg::printMsg().
Referenced by main().
| void cleanup | ( | ) |
do necessary cleanups of libraries etc.
References CALibProxytest::cleanup(), pMix, CAMsg::printMsg(), and removePidFile().
Referenced by CAAccountingInstance::__newSettlementTransaction(), CAFirstMix::clean(), main(), and my_terminate().
| void init | ( | ) |
do necessary initialisations of libraries etc.
References CALibProxytest::init().
Referenced by CACmdLnOptions::initLogging(), and main().
| int main | ( | int | argc, |
| const char * | argv[] | ||
| ) |
CAIPAddrWithNetmask Test
End CAIPAddrWithNetmask Test
References t_MixPacket::channel, checkSizesOfBaseTypes(), CAMsg::cleanup(), cleanup(), t_MixPacketPayload::data, t_MixPacket::data, E_SUCCESS, ev_net_firstMixInited, ev_net_lastMixInited, ev_net_middleMixInited, ev_sys_start, t_MixPacket::flags, CASocket::getMaxOpenSockets(), CALibProxytest::getOptions(), CAMsg::init(), init(), t_MixPacketPayload::len, len, CAReplayDatabase::measurePerformance(), MIXPACKET_SIZE, MONITORING_FIRE_NET_EVENT, MONITORING_FIRE_SYS_EVENT, msSleep(), t_MixPacket::payload, pMix, CAMsg::printMsg(), CASocket::setMaxNormalSockets(), signal_hup(), signal_interrupt(), signal_segv(), signal_term(), CALocalProxy::start(), CAMix::start(), CAQueue::test(), and t_MixPacketPayload::type.
| 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(), 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().
Referenced by CAInfoService::CAInfoService(), CAReplayCtrlChannelMsgProc::CAReplayCtrlChannelMsgProc(), cleanup(), main(), mm_loopReadFromMixAfter(), mm_loopReadFromMixBefore(), my_terminate(), CAReplayCtrlChannelMsgProc::proccessGetTimestamp(), CAReplayCtrlChannelMsgProc::proccessGotTimestamp(), CACmdLnOptions::reread(), and threadReConfigure().
1.7.6.1