Goby3
3.1.5a
2024.05.23
|
#include <goby/middleware/io/detail/tcp_client_interface.h>
Public Member Functions | |
TCPClientThread (const Config &config, int index=-1) | |
Constructs the thread. More... | |
~TCPClientThread () override | |
Public Member Functions inherited from goby::middleware::io::detail::IOThread< line_in_group, line_out_group, publish_layer, subscribe_layer, Config, boost::asio::ip::tcp::socket, ThreadType, false > | |
IOThread (const Config &config, int index, std::string glog_group="i/o") | |
Constructs the thread. More... | |
void | initialize () override |
void | finalize () override |
virtual | ~IOThread () |
Protected Member Functions | |
void | insert_endpoints (std::shared_ptr< goby::middleware::protobuf::IOData > &io_msg) |
Protected Member Functions inherited from goby::middleware::io::detail::IOThread< line_in_group, line_out_group, publish_layer, subscribe_layer, Config, boost::asio::ip::tcp::socket, ThreadType, false > | |
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) |
boost::asio::ip::tcp::socket & | mutable_socket () |
Access the (mutable) socket (or serial_port) object. More... | |
boost::asio::io_context & | mutable_io () |
bool | socket_is_open () |
Does the socket exist and is it open? More... | |
virtual void | async_read ()=0 |
Starts an asynchronous read on the socket. More... | |
const std::string & | glog_group () |
Definition at line 55 of file tcp_client_interface.h.
|
inline |
Constructs the thread.
config | A reference to the Protocol Buffers config read by the main application at launch |
Definition at line 67 of file tcp_client_interface.h.
|
inlineoverride |
Definition at line 81 of file tcp_client_interface.h.
|
inlineprotected |
Definition at line 96 of file tcp_client_interface.h.