OCL::TcpReporting Class Reference

A component which writes data reports to a tcp/ip socket. It can serve different clients. It uses a ASCI-based protocol. More...

#include <TcpReporting.hpp>

Inheritance diagram for OCL::TcpReporting:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool configureHook ()
bool configureHook ()
const RTT::PropertyBag * getReport ()
const RTT::PropertyBag * getReport ()
bool startHook ()
bool startHook ()
void stopHook ()
void stopHook ()
 TcpReporting (std::string fr_name="ReportingComponent")
 TcpReporting (std::string fr_name="ReportingComponent")
 ~TcpReporting ()
 ~TcpReporting ()

Protected Attributes

RTT::SocketMarshallerfbody

Private Attributes

bool _finishing
unsigned int port
RTT::Property< unsigned int > port_prop

Detailed Description

A component which writes data reports to a tcp/ip socket. It can serve different clients. It uses a ASCI-based protocol.

Usage

Authentication of the client:

The server accepts different kinds of commands. Before these commands are available for the client, the client has to authenticate itself.

Getting Help:

The client can get the available commands

and the syntax for each command.

Getting a list of available data:

The client can get the names of all the available data.

Subscribe to Data:

The client has to send the server the names of the available data he wants to get. Only the subscribed data will be send to the client.

Unsubscribe to Data:

The client can cancel a subscription.

Getting a list of the subscriptions:

The client can ask for the subscriptions he has made.

Start/stop streaming the data:

The client can start and stop the streaming of the subscribed data.

Close the connection with the server:

The client can close the connection with the server.

When an error occures:

When an error occurs because of wrong syntax the server will answer with an error message.

The streaming data:

When the streaming is started the server will send the following message at each timeframe.

Definition at line 170 of file install/include/orocos/ocl/TcpReporting.hpp.


Constructor & Destructor Documentation

OCL::TcpReporting::TcpReporting ( std::string  fr_name = "ReportingComponent"  ) 

Create a reporting component which starts up a server

Parameters:
fr_name Name of the TCP reporting component.
port Port to listen on.

Definition at line 214 of file TcpReporting.cpp.

OCL::TcpReporting::~TcpReporting (  ) 

Definition at line 222 of file TcpReporting.cpp.

OCL::TcpReporting::TcpReporting ( std::string  fr_name = "ReportingComponent"  ) 

Create a reporting component which starts up a server

Parameters:
fr_name Name of the TCP reporting component.
port Port to listen on.
OCL::TcpReporting::~TcpReporting (  ) 

Member Function Documentation

bool OCL::TcpReporting::configureHook (  )  [virtual]

Implementation of base::TaskCore::configureHook(). Calls load().

Reimplemented from OCL::ReportingComponent.

bool OCL::TcpReporting::configureHook (  )  [virtual]

Implementation of base::TaskCore::configureHook(). Calls load().

Reimplemented from OCL::ReportingComponent.

Definition at line 232 of file TcpReporting.cpp.

const RTT::PropertyBag* OCL::TcpReporting::getReport (  ) 

Return a property bag.

const RTT::PropertyBag * OCL::TcpReporting::getReport (  ) 

Return a property bag.

Definition at line 226 of file TcpReporting.cpp.

bool OCL::TcpReporting::startHook (  )  [virtual]

Reimplemented from OCL::ReportingComponent.

bool OCL::TcpReporting::startHook (  )  [virtual]

Reimplemented from OCL::ReportingComponent.

Definition at line 237 of file TcpReporting.cpp.

void OCL::TcpReporting::stopHook (  )  [virtual]

Reimplemented from OCL::ReportingComponent.

void OCL::TcpReporting::stopHook (  )  [virtual]

Reimplemented from OCL::ReportingComponent.

Definition at line 246 of file TcpReporting.cpp.


Member Data Documentation

Flag to indicate that shutdown() has been called and changes in the list of reported data should not be reported to the client anymore.

Definition at line 179 of file install/include/orocos/ocl/TcpReporting.hpp.

marsh::MarshallInterface

Definition at line 186 of file install/include/orocos/ocl/TcpReporting.hpp.

unsigned int OCL::TcpReporting::port [private]

Definition at line 180 of file install/include/orocos/ocl/TcpReporting.hpp.

RTT::Property< unsigned int > OCL::TcpReporting::port_prop [private]

Definition at line 181 of file install/include/orocos/ocl/TcpReporting.hpp.


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


ocl
Author(s): OCL Development Team
autogenerated on Fri Jan 11 09:50:53 2013