Note: Goby version 1 (shown here) is now considered obsolete. Please use version 2 for new projects, and consider upgrading old projects.

Goby Underwater Autonomy Project  Series: 1.1, revision: 163, released on 2013-02-06 14:23:27 -0500
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions
goby::util::TCPClient Class Reference

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 >.

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

goby::util::TCPClient::TCPClient ( const std::string &  server,
unsigned  port,
const std::string &  delimiter = "\r\n" 
)

create a TCPClient

Parameters:
serverdomain name or IP address of the remote server
portport of the remote server
delimiterstring used to split lines

Definition at line 22 of file tcp_client.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends