Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
UDPListener Class Reference

#include <udp_listener.h>

Inheritance diagram for UDPListener:
Inheritance graph
[legend]

Public Member Functions

 UDPListener (const std::string &ip, uint16_t port)
 
- Public Member Functions inherited from IPListener
 IPListener (const std::string &ip, uint16_t port)
 
void onNewDataReceived (const boost::system::error_code &error, std::size_t bytes_transfered)
 
virtual ~IPListener ()
 

Protected Member Functions

void listenNextData ()
 

Protected Attributes

boost::asio::ip::udp::endpoint endpoint
 
boost::asio::ip::udp::socket socket
 
- Protected Attributes inherited from IPListener
std::thread asioThread
 
boost::array< uint8_t, 8192 > datas
 
const std::string ip
 
ixblue_stdbin_decoder::StdBinDecoder parser
 
const uint16_t port
 
ROSPublisher rosPublisher
 
boost::asio::io_service service
 

Private Member Functions

 UDPListener ()=delete
 

Detailed Description

Definition at line 6 of file udp_listener.h.

Constructor & Destructor Documentation

UDPListener::UDPListener ( )
privatedelete
UDPListener::UDPListener ( const std::string &  ip,
uint16_t  port 
)

Definition at line 7 of file udp_listener.cpp.

Member Function Documentation

void UDPListener::listenNextData ( )
protectedvirtual

This is the pro-actor pattern implemented by boost asio. Each daughter class must use this abstract method to listen next data.

Implements IPListener.

Definition at line 16 of file udp_listener.cpp.

Member Data Documentation

boost::asio::ip::udp::endpoint UDPListener::endpoint
protected

Definition at line 15 of file udp_listener.h.

boost::asio::ip::udp::socket UDPListener::socket
protected

Definition at line 14 of file udp_listener.h.


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


ixblue_ins_driver
Author(s): Adrien BARRAL , Laure LE BRETON
autogenerated on Wed Jan 27 2021 03:37:01