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

#include <CATargetInterface.hpp>

Collaboration diagram for CATargetInterface:
[legend]

List of all members.

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::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);
        }

Member Function Documentation

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;
        }

Here is the call graph for this function:

Definition at line 75 of file CATargetInterface.hpp.

References addr.

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

        {
          return addr;
        }
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;
        }

Definition at line 60 of file CATargetInterface.hpp.

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

Definition at line 65 of file CATargetInterface.hpp.

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

Member Data Documentation

Definition at line 88 of file CATargetInterface.hpp.

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

Definition at line 90 of file CATargetInterface.hpp.

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

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: