|
Mixe for Privacy and Anonymity in the Internet
|
This is an abstract class for representing a socket address used in CASocket, CADatagramSocket and CAMuxSocket. More...
#include <CASocketAddr.hpp>
Public Member Functions | |
| virtual | ~CASocketAddr () |
| virtual CASocketAddr * | clone () 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 SOCKADDR * | LPSOCKADDR () 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. | |
This is an abstract class for representing a socket address used in CASocket, CADatagramSocket and CAMuxSocket.
Definition at line 32 of file CASocketAddr.hpp.
| virtual CASocketAddr::~CASocketAddr | ( | ) | [inline, virtual] |
Definition at line 35 of file CASocketAddr.hpp.
{}
| virtual CASocketAddr* CASocketAddr::clone | ( | ) | const [pure virtual] |
Creates a copy of the Address.
Implemented in CASocketAddrINet, and CASocketAddrUnix.
Referenced by CACacheLoadBalancing::add(), CAListenerInterface::CAListenerInterface(), CATargetInterface::cloneInto(), CAListenerInterface::getAddr(), and CACmdLnOptions::setTargetInterfaces().
| 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.
| buff | buffer which stores the result |
| bufflen | size of buff |
| E_SUCCESS | if successful |
| E_SPACE | if the buffer is to small |
| E_UNKNOWN | in 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().
1.7.6.1