Goby Underwater Autonomy Project
Series: 1.1, revision: 163, released on 2013-02-06 14:23:27 -0500
|
provides a basic TCP client for line by line text based communications to a remote TCP server More...
#include <util/liblinebasedcomms/tcp_client.h>
Inherits goby::util::LineBasedClient< ASIOAsyncReadStream >.
Public Member Functions | |
TCPClient (const std::string &server, unsigned port, const std::string &delimiter="\r\n") | |
create a TCPClient | |
boost::asio::ip::tcp::socket & | socket () |
std::string | local_endpoint () |
string representation of the local endpoint (e.g. 192.168.1.105:54230 | |
std::string | remote_endpoint () |
string representation of the remote endpoint, (e.g. 192.168.1.106:50000 |
provides a basic TCP client for line by line text based communications to a remote TCP server
Definition at line 29 of file tcp_client.h.
goby::util::TCPClient::TCPClient | ( | const std::string & | server, |
unsigned | port, | ||
const std::string & | delimiter = "\r\n" |
||
) |
create a TCPClient
server | domain name or IP address of the remote server |
port | port of the remote server |
delimiter | string used to split lines |
Definition at line 22 of file tcp_client.cpp.