Mixe for Privacy and Anonymity in the Internet
Public Member Functions | Private Attributes | List of all members
CATargetInterface Class Reference

#include <CATargetInterface.hpp>

Collaboration diagram for CATargetInterface:

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
 
CASocketAddrgetAddr () const
 
SINT32 cleanAddr ()
 

Private Attributes

CASocketAddraddr
 
TargetType target_type
 
NetworkType net_type
 

Detailed Description

Definition at line 29 of file CATargetInterface.hpp.

Constructor & Destructor Documentation

◆ CATargetInterface() [1/2]

CATargetInterface::CATargetInterface ( TargetType  target_t,
NetworkType  net_t,
CASocketAddr p_addr 
)
inline

Definition at line 32 of file CATargetInterface.hpp.

33  {
34  set(target_t,net_t,p_addr);
35  }
SINT32 set(TargetType target_t, NetworkType net_t, CASocketAddr *p_addr)

References set().

Here is the call graph for this function:

◆ CATargetInterface() [2/2]

CATargetInterface::CATargetInterface ( )
inline

Definition at line 37 of file CATargetInterface.hpp.

38  {
41  addr=NULL;
42  }
@ TARGET_UNKNOWN
Definition: typedefs.hpp:32
@ UNKNOWN_NETWORKTYPE
Definition: typedefs.hpp:30

References addr, net_type, target_type, TARGET_UNKNOWN, and UNKNOWN_NETWORKTYPE.

Member Function Documentation

◆ cleanAddr()

SINT32 CATargetInterface::cleanAddr ( )
inline

Definition at line 80 of file CATargetInterface.hpp.

81  {
82  delete addr;
83  addr=NULL;
84  return E_SUCCESS;
85  }
const SINT32 E_SUCCESS
Definition: errorcodes.hpp:2

References addr, and E_SUCCESS.

Referenced by CACmdLnOptions::clearTargetInterfaces(), CAFirstMix::init(), CAMiddleMix::init(), CAMix::needAutoConfig(), CACmdLnOptions::setTargetInterfaces(), and CALastMix::setTargets().

Here is the caller graph for this function:

◆ cloneInto()

SINT32 CATargetInterface::cloneInto ( CATargetInterface oTargetInterface) const
inline

Definition at line 44 of file CATargetInterface.hpp.

45  {
46  oTargetInterface.net_type=net_type;
47  oTargetInterface.target_type=target_type;
48  oTargetInterface.addr=addr->clone();
49  return E_SUCCESS;
50  }
virtual CASocketAddr * clone() const =0
Creates a copy of the Address.

References addr, CASocketAddr::clone(), E_SUCCESS, net_type, and target_type.

Referenced by CACmdLnOptions::getTargetInterface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAddr()

CASocketAddr* CATargetInterface::getAddr ( ) const
inline

Definition at line 75 of file CATargetInterface.hpp.

76  {
77  return addr;
78  }

References addr.

Referenced by CAFirstMix::init(), CAMiddleMix::init(), and CALastMix::setTargets().

Here is the caller graph for this function:

◆ getTargetType()

TargetType CATargetInterface::getTargetType ( ) const
inline

Definition at line 70 of file CATargetInterface.hpp.

71  {
72  return target_type;
73  }

References target_type.

Referenced by CAFirstMix::init(), CAMiddleMix::init(), CAMix::needAutoConfig(), and CALastMix::setTargets().

Here is the caller graph for this function:

◆ set() [1/3]

SINT32 CATargetInterface::set ( CATargetInterface source)
inline

Definition at line 60 of file CATargetInterface.hpp.

61  {
62  return set(source.target_type,source.net_type,source.addr);
63  }

References addr, net_type, set(), and target_type.

Here is the call graph for this function:

◆ set() [2/3]

SINT32 CATargetInterface::set ( CATargetInterface source)
inline

Definition at line 65 of file CATargetInterface.hpp.

66  {
67  return set(source->target_type,source->net_type,source->addr);
68  }

References addr, net_type, set(), and target_type.

Here is the call graph for this function:

◆ set() [3/3]

SINT32 CATargetInterface::set ( TargetType  target_t,
NetworkType  net_t,
CASocketAddr p_addr 
)
inline

Definition at line 52 of file CATargetInterface.hpp.

53  {
54  target_type=target_t;
55  net_type=net_t;
56  addr=p_addr;
57  return E_SUCCESS;
58  }

References addr, E_SUCCESS, net_type, and target_type.

Referenced by CATargetInterface(), set(), and CACmdLnOptions::setTargetInterfaces().

Here is the caller graph for this function:

Member Data Documentation

◆ addr

CASocketAddr* CATargetInterface::addr
private

Definition at line 88 of file CATargetInterface.hpp.

Referenced by CATargetInterface(), cleanAddr(), cloneInto(), getAddr(), and set().

◆ net_type

NetworkType CATargetInterface::net_type
private

Definition at line 90 of file CATargetInterface.hpp.

Referenced by CATargetInterface(), cloneInto(), and set().

◆ target_type

TargetType CATargetInterface::target_type
private

Definition at line 89 of file CATargetInterface.hpp.

Referenced by CATargetInterface(), cloneInto(), getTargetType(), and set().


The documentation for this class was generated from the following file: