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 | Friends
goby::util::TCPServer Class Reference

provides a basic TCP server for line by line text based communications to a one or more remote TCP clients More...

#include <util/liblinebasedcomms/tcp_server.h>

Inherits goby::util::LineBasedInterface.

List of all members.

Public Member Functions

 TCPServer (unsigned port, const std::string &delimiter="\r\n")
 create a TCP server
std::string local_endpoint ()
 string representation of the local endpoint (e.g. 192.168.1.105:54230

Friends

class TCPConnection
class LineBasedConnection< boost::asio::ip::tcp::socket >

Detailed Description

provides a basic TCP server for line by line text based communications to a one or more remote TCP clients

Definition at line 44 of file tcp_server.h.


Constructor & Destructor Documentation

goby::util::TCPServer::TCPServer ( unsigned  port,
const std::string &  delimiter = "\r\n" 
) [inline]

create a TCP server

Parameters:
portport of the server (use 50000+ to avoid problems with special system ports)
delimiterstring used to split lines

Definition at line 51 of file tcp_server.h.


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