Goby3 3.2.3
2025.05.13
|
#include <goby/middleware/io/udp_one_to_many.h>
Public Member Functions | |
UDPOneToManyThread (const Config &config, int index=-1, bool is_final=true) | |
Constructs the thread. | |
~UDPOneToManyThread () override | |
![]() | |
IOThread (const IOConfig &config, int index, std::string glog_group="i/o") | |
Constructs the thread. | |
void | initialize () override |
void | finalize () override |
virtual | ~IOThread () |
Protected Member Functions | |
virtual void | async_read () override |
Starts an asynchronous read on the udp socket. | |
virtual void | async_write (std::shared_ptr< const goby::middleware::protobuf::IOData > io_msg) override |
Starts an asynchronous write from data published. | |
![]() | |
void | write (std::shared_ptr< const goby::middleware::protobuf::IOData > io_msg) |
void | handle_read_success (std::size_t bytes_transferred, const std::string &bytes) |
void | handle_read_success (std::size_t bytes_transferred, std::shared_ptr< goby::middleware::protobuf::IOData > io_msg) |
void | handle_write_success (std::size_t bytes_transferred) |
void | handle_read_error (const boost::system::error_code &ec) |
void | handle_write_error (const boost::system::error_code &ec) |
SocketType & | mutable_socket () |
Access the (mutable) socket (or serial_port) object. | |
boost::asio::io_context & | mutable_io () |
bool | socket_is_open () |
Does the socket exist and is it open? | |
const std::string & | glog_group () |
Definition at line 65 of file udp_one_to_many.h.
|
inline |
Constructs the thread.
config | A reference to the Protocol Buffers config read by the main application at launch |
Definition at line 76 of file udp_one_to_many.h.
|
inlineoverride |
Definition at line 86 of file udp_one_to_many.h.
|
overrideprotectedvirtual |
Starts an asynchronous read on the udp socket.
Definition at line 146 of file udp_one_to_many.h.
|
overrideprotectedvirtual |
Starts an asynchronous write from data published.
Definition at line 180 of file udp_one_to_many.h.