Goby3
3.1.5
2024.05.14
|
Reads/Writes strings from/to a TCP connection using a line-based (typically ASCII) protocol with a defined end-of-line regex. More...
#include <goby/middleware/io/line_based/tcp_client.h>
Public Member Functions | |
TCPClientThreadLineBased (const goby::middleware::protobuf::TCPClientConfig &config, int index=-1) | |
Constructs the thread. More... | |
~TCPClientThreadLineBased () | |
![]() | |
TCPClientThread (const goby::middleware::protobuf::TCPClientConfig &config, int index=-1) | |
Constructs the thread. More... | |
~TCPClientThread () override | |
![]() | |
IOThread (const IOConfig &config, int index, std::string glog_group="i/o") | |
Constructs the thread. More... | |
void | initialize () override |
void | finalize () override |
virtual | ~IOThread () |
Additional Inherited Members | |
![]() | |
void | insert_endpoints (std::shared_ptr< goby::middleware::protobuf::IOData > &io_msg) |
![]() | |
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. More... | |
boost::asio::io_context & | mutable_io () |
bool | socket_is_open () |
Does the socket exist and is it open? More... | |
const std::string & | glog_group () |
Reads/Writes strings from/to a TCP connection using a line-based (typically ASCII) protocol with a defined end-of-line regex.
line_in_group | goby::middleware::Group to publish to after receiving data from the TCP socket |
line_out_group | goby::middleware::Group to subcribe to for data to send to the TCP socket |
Definition at line 74 of file tcp_client.h.
|
inline |
Constructs the thread.
config | A reference to the Protocol Buffers config read by the main application at launch |
index | Thread index for multiple instances in a given application (-1 indicates a single instance) |
Definition at line 85 of file tcp_client.h.
|
inline |
Definition at line 91 of file tcp_client.h.