Mixe for Privacy and Anonymity in the Internet
Public Member Functions
CASocketAddr Class Reference

This is an abstract class for representing a socket address used in CASocket, CADatagramSocket and CAMuxSocket. More...

#include <CASocketAddr.hpp>

Inheritance diagram for CASocketAddr:
[legend]

List of all members.

Public Member Functions

virtual ~CASocketAddr ()
virtual CASocketAddrclone () const =0
 Creates a copy of the Address.
virtual SINT32 getType () const =0
 The type (family) of socket for which this address is useful.
virtual SINT32 getSize () const =0
 The size of the SOCKADDR struct needed by function of CASocket and other.
virtual const SOCKADDRLPSOCKADDR () const =0
 Casts to a SOCKADDR struct.
virtual SINT32 toString (UINT8 *buff, UINT32 bufflen) const =0
 Returns a string which describes this address in a human readable form.

Detailed Description

This is an abstract class for representing a socket address used in CASocket, CADatagramSocket and CAMuxSocket.

Definition at line 32 of file CASocketAddr.hpp.


Constructor & Destructor Documentation

virtual CASocketAddr::~CASocketAddr ( ) [inline, virtual]

Definition at line 35 of file CASocketAddr.hpp.

{}

Member Function Documentation

virtual CASocketAddr* CASocketAddr::clone ( ) const [pure virtual]
virtual SINT32 CASocketAddr::getSize ( ) const [pure virtual]

The size of the SOCKADDR struct needed by function of CASocket and other.

Implemented in CASocketAddrINet, and CASocketAddrUnix.

Referenced by CADatagramSocket::bind(), CASocket::connect(), CASocket::listen(), CADatagramSocket::receive(), and CADatagramSocket::send().

virtual SINT32 CASocketAddr::getType ( ) const [pure virtual]

The type (family) of socket for which this address is useful.

Must be overwritten in subclasses.

Implemented in CASocketAddrINet, and CASocketAddrUnix.

Referenced by CAMuxSocket::accept(), CACacheLoadBalancing::add(), CADatagramSocket::bind(), CASocket::connect(), CACmdLnOptions::createSockets(), CAMiddleMix::init(), CAFirstMix::init(), and CASocket::listen().

virtual const SOCKADDR* CASocketAddr::LPSOCKADDR ( ) const [pure virtual]

Casts to a SOCKADDR struct.

Implemented in CASocketAddrUnix, and CASocketAddrINet.

Referenced by CADatagramSocket::bind(), CASocket::connect(), CASocket::listen(), and CADatagramSocket::send().

virtual SINT32 CASocketAddr::toString ( UINT8 buff,
UINT32  bufflen 
) const [pure virtual]

Returns a string which describes this address in a human readable form.

Parameters:
buffbuffer which stores the result
bufflensize of buff
Return values:
E_SUCCESSif successful
E_SPACEif the buffer is to small
E_UNKNOWNin case of an other error

Implemented in CASocketAddrINet, and CASocketAddrUnix.

Referenced by CAMiddleMix::connectToNextMix(), CAFirstMix::connectToNextMix(), CACmdLnOptions::createSockets(), CAMiddleMix::init(), CALastMix::init(), and CACmdLnOptions::setTargetInterfaces().


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