Go to the documentation of this file.
25 #ifndef GOBY_UTIL_LINEBASEDCOMMS_TCP_CLIENT_H
26 #define GOBY_UTIL_LINEBASEDCOMMS_TCP_CLIENT_H
53 int retry_interval = 10);
68 void do_subscribe()
override;
69 void do_start()
override;
70 void do_close()
override;
82 std::atomic<bool> tcp_alive_{
false};
83 std::unique_ptr<std::thread> tcp_thread_;
std::string remote_endpoint() override
string representation of the remote endpoint, (e.g. 192.168.1.106:50000)
The global namespace for the Goby project.
constexpr goby::middleware::Group linebasedcomms_in
NLOHMANN_BASIC_JSON_TPL_DECLARATION std::string to_string(const NLOHMANN_BASIC_JSON_TPL &j)
user-defined to_string function for JSON values
const ::std::string & addr() const
Reads/Writes strings from/to a TCP connection using a line-based (typically ASCII) protocol with a de...
provides a basic TCP client for line by line text based communications to a remote TCP server
TCPClient(std::string server, unsigned port, const std::string &delimiter="\r\n", int retry_interval=10)
create a TCPClient
std::string delimiter() const
std::string local_endpoint() override
string representation of the local endpoint (e.g. 192.168.1.105:54230)
::google::protobuf::uint32 port() const
constexpr goby::middleware::Group linebasedcomms_out
basic interface class for all the derived serial (and networking mimics) line-based nodes (serial,...