|
Goby3 3.5.1
2026.06.04
|
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. | |
| ~TCPClientThreadLineBased () | |
| Public Member Functions inherited from goby::middleware::io::detail::TCPClientThread< line_in_group, line_out_group, PubSubLayer::INTERPROCESS, PubSubLayer::INTERTHREAD, goby::middleware::protobuf::TCPClientConfig, goby::zeromq::SimpleThread, false > | |
| TCPClientThread (const goby::middleware::protobuf::TCPClientConfig &config, int index=-1) | |
| Constructs the thread. | |
| ~TCPClientThread () override | |
| Public Member Functions inherited from goby::middleware::io::detail::IOThread< line_in_group, line_out_group, publish_layer, subscribe_layer, goby::middleware::protobuf::TCPClientConfig, boost::asio::ip::tcp::socket, goby::zeromq::SimpleThread, use_indexed_groups > | |
| IOThread (const goby::middleware::protobuf::TCPClientConfig &config, int index, std::string glog_group="i/o") | |
| Constructs the thread. | |
| void | initialize () override |
| void | finalize () override |
| virtual | ~IOThread () |
| Public Member Functions inherited from goby::middleware::SimpleThread< Config, detail::InterProcessTag > | |
| SimpleThread (const Config &cfg, double loop_freq_hertz=0, int index=-1) | |
| Construct a thread with a given configuration, optionally a loop frequency and/or index. | |
| SimpleThread (const Config &cfg, boost::units::quantity< boost::units::si::frequency > loop_freq, int index=-1) | |
| Construct a thread with a given configuration, a loop frequency (using boost::units) and optionally an index. | |
| InterVehicleForwarder< InterProcessForwarder< InterThreadTransporter, detail::InterProcessTag > > & | intervehicle () |
| Access the transporter on the intervehicle layer (which wraps interprocess and interthread). | |
| InterProcessForwarder< InterThreadTransporter, detail::InterProcessTag > & | interprocess () |
| Access the transporter on the interprocess layer (which wraps interthread). | |
| InterThreadTransporter & | interthread () |
| Access the transporter on the interthread layer (this is the innermost transporter). | |
| Public Member Functions inherited from goby::middleware::Thread< Config, TransporterType > | |
| Thread (const Config &cfg, TransporterType *transporter, int index) | |
| Construct a thread with a given configuration, underlying transporter, and index (for multiple instantiations), but without any loop() frequency. | |
| Thread (const Config &cfg, TransporterType *transporter, double loop_freq_hertz=0, int index=-1) | |
| Construct a thread with all possible metadata (using double to specify frequency in Hertz). | |
| Thread (const Config &cfg, TransporterType *transporter, boost::units::quantity< boost::units::si::frequency > loop_freq, int index=-1) | |
| Construct a thread with all possible metadata (using boost::units to specify frequency). | |
| virtual | ~Thread () |
| void | run (std::atomic< bool > &alive) |
| Run the thread until the boolean reference passed is set false. This call blocks, and should be run in a std::thread by the caller. | |
| int | index () const |
| std::type_index | type_index () |
| void | set_type_index (std::type_index type_i) |
| std::string | name () |
| void | set_name (const std::string &name) |
| int | uid () |
| void | set_uid (int uid) |
| double | loop_frequency_hertz () const |
| decltype(loop_frequency_) | loop_frequency () const |
| void | set_loop_frequency_hertz (double loop_freq_hertz) |
| void | set_loop_frequency (boost::units::quantity< boost::units::si::frequency > loop_freq) |
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.