ANNA Suite  2020b
Multipurpose development suite for Telco applications
Public Member Functions | List of all members
anna::comm::AccessPoint Class Reference

#include <AccessPoint.hpp>

Public Member Functions

 AccessPoint ()
 
 AccessPoint (const std::string &path)
 
 AccessPoint (const INetAddress &inetAddress)
 
 ~AccessPoint ()
 
const INetAddressgetINetAddress () const
 
const std::string & getPath () const
 
void clear ()
 
bool isNull () const
 
bool operator== (const AccessPoint &) const
 
AccessPointoperator= (const INetAddress &)
 
AccessPointoperator= (const std::string &path)
 
AccessPointoperator= (const AccessPoint &)
 
void asString (std::string &msg) const
 
void asXML (const char *name, xml::Node *parent) const noexcept(false)
 
std::string serialize () const
 
void translate (const Socket &, sockaddr *&, int &len) noexcept(false)
 

Detailed Description

Estructura para mantener la informacion de los extremos de un Socket.

Dependiendo del tipo de Socket puede tener un punto local y/o un punto remoto.

See also
Socket
Warning
This should be internally used

Constructor & Destructor Documentation

◆ AccessPoint() [1/3]

anna::comm::AccessPoint::AccessPoint ( )
inline
39 : a_path(NULL) {;}

◆ AccessPoint() [2/3]

anna::comm::AccessPoint::AccessPoint ( const std::string &  path)
inline
40 : a_path(new std::string(path)) {;}

◆ AccessPoint() [3/3]

anna::comm::AccessPoint::AccessPoint ( const INetAddress inetAddress)
inline
41 : a_path(NULL), a_inetAddress(inetAddress) {;}

◆ ~AccessPoint()

anna::comm::AccessPoint::~AccessPoint ( )
inline
43 { delete a_path; }

Member Function Documentation

◆ asString()

void anna::comm::AccessPoint::asString ( std::string &  msg) const

◆ asXML()

void anna::comm::AccessPoint::asXML ( const char *  name,
xml::Node parent 
) const
noexcept

◆ clear()

void anna::comm::AccessPoint::clear ( )
inline
48 { a_inetAddress.clear(); delete a_path; a_path = NULL; }
void clear()
Definition: INetAddress.hpp:101

◆ getINetAddress()

const INetAddress& anna::comm::AccessPoint::getINetAddress ( ) const
inline
45 { return a_inetAddress; }

◆ getPath()

const std::string& anna::comm::AccessPoint::getPath ( ) const
inline
46 { return *a_path; }

◆ isNull()

bool anna::comm::AccessPoint::isNull ( ) const
inline
49 { return a_path == NULL && a_inetAddress.isNull(); }
bool isNull() const
Definition: INetAddress.hpp:96

◆ operator=() [1/3]

AccessPoint& anna::comm::AccessPoint::operator= ( const INetAddress )

◆ operator=() [2/3]

AccessPoint& anna::comm::AccessPoint::operator= ( const std::string &  path)

◆ operator=() [3/3]

AccessPoint& anna::comm::AccessPoint::operator= ( const AccessPoint )

◆ operator==()

bool anna::comm::AccessPoint::operator== ( const AccessPoint ) const

◆ serialize()

std::string anna::comm::AccessPoint::serialize ( ) const

◆ translate()

void anna::comm::AccessPoint::translate ( const Socket ,
sockaddr *&  ,
int &  len 
)
noexcept

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