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

#include <RemoteConnection.hpp>

Inheritance diagram for anna::comm::handler::RemoteConnection:
Inheritance graph
[legend]
Collaboration diagram for anna::comm::handler::RemoteConnection:
Collaboration graph
[legend]

Public Member Functions

 RemoteConnection (Communicator *communicator)
 
void setup (comm::RemoteConnection *remoteConnection)
 
comm::ClientSocketgetClientSocket ()
 
- Public Member Functions inherited from anna::comm::handler::MetaClientSocket
 MetaClientSocket (Communicator *communicator, Type::_v type)
 
- Public Member Functions inherited from anna::comm::Handler
Type::_v getType () const
 
int getfd () const
 
bool supportCongestionControl () const
 
bool supportTimeout () const
 
bool operator== (const int fd) const
 
void asAttribute (xml::Node *node) const noexcept(false)
 
- Public Member Functions inherited from anna::Runnable
const std::string & getId () const
 
bool hasRequestedStop () const
 
bool isRunning () const
 
void requestStop () noexcept(false)
 
- Public Member Functions inherited from anna::Mutex
 Mutex (const Mode::_v mode=Mode::Recursive)
 
virtual ~Mutex ()
 
virtual void lock () noexcept(false)
 
virtual void unlock ()
 
bool trylock () noexcept(false)
 
 operator const pthread_mutex_t * () const
 

Additional Inherited Members

- Protected Member Functions inherited from anna::comm::Handler
 Handler (Communicator *communicator, const Type::_v type, const int support=Support::CongestionControl)
 
 Handler (const Type::_v type, const int support=Support::CongestionControl)
 
void setfd (const int fd)
 
void setTimeout (const Millisecond &timeout)
 
bool canContinue () const
 
virtual void recoverAddress (const in_addr_t &address)
 
- Protected Member Functions inherited from anna::Runnable
 Runnable ()
 
 Runnable (const std::string &id)
 
 Runnable (const char *id)
 
void setId (const std::string &id)
 
void setIsRunning (const bool isRunning)
 
virtual void run () noexcept(false)
 
virtual void terminate ()
 
- Protected Member Functions inherited from anna::Safe
 Safe ()
 
- Protected Attributes inherited from anna::comm::Handler
Communicatora_communicator
 

Constructor & Destructor Documentation

◆ RemoteConnection()

anna::comm::handler::RemoteConnection::RemoteConnection ( Communicator communicator)
inline
24  :
26  a_remoteConnection(NULL)
27  {;}
MetaClientSocket(Communicator *communicator, Type::_v type)
Definition: MetaClientSocket.hpp:24

Member Function Documentation

◆ getClientSocket()

comm::ClientSocket* anna::comm::handler::RemoteConnection::getClientSocket ( )
virtual

Devuelve el ClientSocket asociado a este manejador de conexiones.

Returns
El ClientSocket asociado a este manejador de conexiones. Puede ser NULL.
Warning
Uso interno. Se necesita para poder cooperar con el anna::comm::CongestionController.

Reimplemented from anna::comm::Handler.

◆ setup()

void anna::comm::handler::RemoteConnection::setup ( comm::RemoteConnection remoteConnection)
inline
29 { a_remoteConnection = remoteConnection; }
Here is the call graph for this function:

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