Mixes for Privacy and Anonymity in the Internet
|
This is an abstract class for representing a socket address used in CASocket, CADatagramSocket and CAMuxSocket. More...
Public Member Functions | |
virtual | ~CASocketAddr () |
virtual CASocketAddr * | clone () const =0 |
Creates a copy of the Address. More... | |
virtual SINT32 | getType () const =0 |
The type (family) of socket for which this address is useful. More... | |
virtual SINT32 | getSize () const =0 |
The size of the SOCKADDR struct needed by function of CASocket and other. More... | |
virtual const SOCKADDR * | LPSOCKADDR () const =0 |
Casts to a SOCKADDR struct. More... | |
virtual SINT32 | toString (UINT8 *buff, UINT32 bufflen) const =0 |
Returns a string which describes this address in a human readable form. More... | |
This is an abstract class for representing a socket address used in CASocket, CADatagramSocket and CAMuxSocket.
|
virtual |
|
pure virtual |
Creates a copy of the Address.
Implemented in CASocketAddrUnix, and CASocketAddrINet.
Referenced by CACacheLoadBalancing::add(), CAListenerInterface::CAListenerInterface(), CATargetInterface::cloneInto(), CAListenerInterface::getAddr(), and CACmdLnOptions::setTargetInterfaces().
|
pure virtual |
The size of the SOCKADDR struct needed by function of CASocket and other.
Implemented in CASocketAddrUnix, and CASocketAddrINet.
Referenced by CADatagramSocket::bind(), CASocket::connect(), CASocket::listen(), CADatagramSocket::receive(), and CADatagramSocket::send().
|
pure virtual |
The type (family) of socket for which this address is useful.
Must be overwritten in subclasses.
Implemented in CASocketAddrUnix, and CASocketAddrINet.
Referenced by CAMuxSocket::accept(), CACacheLoadBalancing::add(), CADatagramSocket::bind(), CASocket::connect(), CACmdLnOptions::createSockets(), CAFirstMix::init(), CAMiddleMix::init(), and CASocket::listen().
|
pure virtual |
Casts to a SOCKADDR struct.
Implemented in CASocketAddrUnix, and CASocketAddrINet.
Referenced by CADatagramSocket::bind(), CASocket::connect(), CASocket::listen(), CADatagramSocket::receive(), and CADatagramSocket::send().
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 CASocketAddrUnix, and CASocketAddrINet.
Referenced by CAFirstMix::connectToNextMix(), CAMiddleMix::connectToNextMix(), CACmdLnOptions::createSockets(), CALastMix::init(), CAMiddleMix::init(), and CACmdLnOptions::setTargetInterfaces().