DUNE: Uniform Navigational Environment  2019.02.0
Transports::TCP::Client::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
 ~Task (void)
 
void onResourceAcquisition (void)
 
void onResourceRelease (void)
 
void onDataTransmission (const uint8_t *p, unsigned int len)
 
void onDataReception (uint8_t *p, unsigned int n, double timeout)
 

Public Attributes

Arguments m_args
 
TCPSocket * m_sock
 
IMC::Parser m_parser
 

Constructor & Destructor Documentation

Transports::TCP::Client::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline
Transports::TCP::Client::Task::~Task ( void  )
inline

References onResourceRelease().

Member Function Documentation

void Transports::TCP::Client::Task::onDataReception ( uint8_t *  p,
unsigned int  n,
double  timeout 
)
inline

References m_parser, and m_sock.

void Transports::TCP::Client::Task::onDataTransmission ( const uint8_t *  p,
unsigned int  len 
)
inline

References m_sock.

void Transports::TCP::Client::Task::onResourceAcquisition ( void  )
inline
void Transports::TCP::Client::Task::onResourceRelease ( void  )
inline

References m_parser, and m_sock.

Referenced by ~Task().

Member Data Documentation

Arguments Transports::TCP::Client::Task::m_args

Referenced by onResourceAcquisition(), and Task().

IMC::Parser Transports::TCP::Client::Task::m_parser
TCPSocket* Transports::TCP::Client::Task::m_sock
Collaboration diagram for Transports::TCP::Client::Task:
Collaboration graph