#include <udp_listener.h>
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 | |
Definition at line 6 of file udp_listener.h.
|
privatedelete |
UDPListener::UDPListener | ( | const std::string & | ip, |
uint16_t | port | ||
) |
Definition at line 7 of file udp_listener.cpp.
|
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.
|
protected |
Definition at line 15 of file udp_listener.h.
|
protected |
Definition at line 14 of file udp_listener.h.