|
Mixe for Privacy and Anonymity in the Internet
|
#include <CATargetInterface.hpp>
Public Member Functions | |
| CATargetInterface (TargetType target_t, NetworkType net_t, CASocketAddr *p_addr) | |
| CATargetInterface () | |
| SINT32 | cloneInto (CATargetInterface &oTargetInterface) const |
| SINT32 | set (TargetType target_t, NetworkType net_t, CASocketAddr *p_addr) |
| SINT32 | set (CATargetInterface &source) |
| SINT32 | set (CATargetInterface *source) |
| TargetType | getTargetType () const |
| CASocketAddr * | getAddr () const |
| SINT32 | cleanAddr () |
Private Attributes | |
| CASocketAddr * | addr |
| TargetType | target_type |
| NetworkType | net_type |
Definition at line 29 of file CATargetInterface.hpp.
| CATargetInterface::CATargetInterface | ( | TargetType | target_t, |
| NetworkType | net_t, | ||
| CASocketAddr * | p_addr | ||
| ) | [inline] |
Definition at line 32 of file CATargetInterface.hpp.
{
set(target_t,net_t,p_addr);
}
| CATargetInterface::CATargetInterface | ( | ) | [inline] |
Definition at line 37 of file CATargetInterface.hpp.
References addr, net_type, target_type, TARGET_UNKNOWN, and UNKNOWN_NETWORKTYPE.
{
target_type=TARGET_UNKNOWN;
net_type=UNKNOWN_NETWORKTYPE;
addr=NULL;
}
| SINT32 CATargetInterface::cleanAddr | ( | ) | [inline] |
Definition at line 80 of file CATargetInterface.hpp.
References addr, and E_SUCCESS.
Referenced by CACmdLnOptions::clearTargetInterfaces(), CAMiddleMix::init(), CAFirstMix::init(), CAMix::needAutoConfig(), CACmdLnOptions::setTargetInterfaces(), and CALastMix::setTargets().
| SINT32 CATargetInterface::cloneInto | ( | CATargetInterface & | oTargetInterface | ) | const [inline] |
Definition at line 44 of file CATargetInterface.hpp.
References addr, CASocketAddr::clone(), E_SUCCESS, net_type, and target_type.
Referenced by CACmdLnOptions::getTargetInterface().
{
oTargetInterface.net_type=net_type;
oTargetInterface.target_type=target_type;
oTargetInterface.addr=addr->clone();
return E_SUCCESS;
}
| CASocketAddr* CATargetInterface::getAddr | ( | ) | const [inline] |
Definition at line 75 of file CATargetInterface.hpp.
References addr.
Referenced by CAMiddleMix::init(), CAFirstMix::init(), and CALastMix::setTargets().
{
return addr;
}
| TargetType CATargetInterface::getTargetType | ( | ) | const [inline] |
Definition at line 70 of file CATargetInterface.hpp.
References target_type.
Referenced by CAMiddleMix::init(), CAFirstMix::init(), CAMix::needAutoConfig(), and CALastMix::setTargets().
{
return target_type;
}
| SINT32 CATargetInterface::set | ( | TargetType | target_t, |
| NetworkType | net_t, | ||
| CASocketAddr * | p_addr | ||
| ) | [inline] |
Definition at line 52 of file CATargetInterface.hpp.
References addr, E_SUCCESS, net_type, and target_type.
Referenced by CACmdLnOptions::setTargetInterfaces().
{
target_type=target_t;
net_type=net_t;
addr=p_addr;
return E_SUCCESS;
}
| SINT32 CATargetInterface::set | ( | CATargetInterface & | source | ) | [inline] |
Definition at line 60 of file CATargetInterface.hpp.
{
return set(source.target_type,source.net_type,source.addr);
}
| SINT32 CATargetInterface::set | ( | CATargetInterface * | source | ) | [inline] |
Definition at line 65 of file CATargetInterface.hpp.
{
return set(source->target_type,source->net_type,source->addr);
}
CASocketAddr* CATargetInterface::addr [private] |
Definition at line 88 of file CATargetInterface.hpp.
Referenced by CATargetInterface(), cleanAddr(), cloneInto(), getAddr(), and set().
NetworkType CATargetInterface::net_type [private] |
Definition at line 90 of file CATargetInterface.hpp.
Referenced by CATargetInterface(), cloneInto(), and set().
TargetType CATargetInterface::target_type [private] |
Definition at line 89 of file CATargetInterface.hpp.
Referenced by CATargetInterface(), cloneInto(), getTargetType(), and set().
1.7.6.1