ROS2Sonic  0.2.0
A ROS2 driver for R2Sonic MBES
Loading...
Searching...
No Matches
r2sonic::UdpReceiver Class Referenceabstract

#include <udp_receiver.hpp>

Inheritance diagram for r2sonic::UdpReceiver:

Public Member Functions

 UdpReceiver ()
 
void receiveHandler (const boost::system::error_code &error, size_t bytes_transferred)
 
virtual void receiveImpl (const boost::system::error_code &error, size_t bytes_transferred)=0
 
void wait ()
 
void receive (const std::string &host, const std::string &port)
 
void receive (const std::string &host, const int &port)
 
char * startBit ()
 

Protected Attributes

boost::asio::io_context io_service_
 
boost::asio::ip::udp::socket socket_
 
boost::array< char, 262144 > recv_buffer_
 
boost::asio::ip::udp::endpoint remote_endpoint_
 
boost::asio::ip::udp::endpoint local_endpoint_
 

Constructor & Destructor Documentation

◆ UdpReceiver()

NS_HEAD UdpReceiver::UdpReceiver ( )

Member Function Documentation

◆ receive() [1/2]

void UdpReceiver::receive ( const std::string & host,
const int & port )

◆ receive() [2/2]

void UdpReceiver::receive ( const std::string & host,
const std::string & port )

◆ receiveHandler()

void UdpReceiver::receiveHandler ( const boost::system::error_code & error,
size_t bytes_transferred )

◆ receiveImpl()

virtual void r2sonic::UdpReceiver::receiveImpl ( const boost::system::error_code & error,
size_t bytes_transferred )
pure virtual

◆ startBit()

char * UdpReceiver::startBit ( )

◆ wait()

void UdpReceiver::wait ( )

Member Data Documentation

◆ io_service_

boost::asio::io_context r2sonic::UdpReceiver::io_service_
protected

◆ local_endpoint_

boost::asio::ip::udp::endpoint r2sonic::UdpReceiver::local_endpoint_
protected

◆ recv_buffer_

boost::array<char, 262144> r2sonic::UdpReceiver::recv_buffer_
protected

◆ remote_endpoint_

boost::asio::ip::udp::endpoint r2sonic::UdpReceiver::remote_endpoint_
protected

◆ socket_

boost::asio::ip::udp::socket r2sonic::UdpReceiver::socket_
protected

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