Mixes for Privacy and Anonymity in the Internet
Functions | Variables
proxytest.cpp File Reference

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

CAMixpMix =NULL
 
bool bTriedTermination = false
 

Function Documentation

◆ checkSizesOfTypes()

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().

◆ cleanup()

void cleanup ( )

◆ init()

void init ( )

do necessary initialisations of libraries etc.

References CALibProxytest::init().

Referenced by main().

◆ main()

int main ( int  argc,
const char *  argv[] 
)

◆ my_terminate()

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().

◆ removePidFile()

void removePidFile ( )

Removes the stored PID (file)

References E_SUCCESS, and CALibProxytest::getOptions().

Referenced by cleanup().

◆ signal_hup()

void signal_hup ( int  )

◆ signal_interrupt()

void signal_interrupt ( int  )

◆ signal_segv()

void signal_segv ( int  )

◆ signal_term()

void signal_term ( int  )

Variable Documentation

◆ bTriedTermination

bool bTriedTermination = false

Referenced by my_terminate().

◆ pMix

CAMix* pMix =NULL