Aseba::Hub Class Reference
[Software router of messages on TCP and D-Bus.]

#include <medulla.h>

Inheritance diagram for Aseba::Hub:
Inheritance graph
[legend]

List of all members.

Signals

void firstConnectionCreated ()
void messageAvailable (Message *message, Dashel::Stream *sourceStream)

Public Member Functions

 Hub (unsigned port, bool verbose, bool dump, bool forward, bool rawTime, bool systemBus)
void sendMessage (Message &message, Dashel::Stream *sourceStream=0)
void sendMessage (Message *message, Dashel::Stream *sourceStream=0)

Protected Slots

void firstConnectionAvailable ()
 If no description has been previously requested, requests one in 200 ms.
void requestDescription ()
 Timer has elapsed, request a description.

Private Member Functions

virtual void connectionClosed (Dashel::Stream *stream, bool abnormal)
virtual void connectionCreated (Dashel::Stream *stream)
virtual void incomingData (Dashel::Stream *stream)
virtual void run ()

Private Attributes

bool dump
 should we dump content of CAN messages
bool forward
 should we only forward messages instead of transmit them back to the sender
bool rawTime
 should displayed timestamps be of the form sec:usec since 1970
bool verbose
 should we print a notification on each message

Detailed Description

Route Aseba messages on the TCP part of the network.

This thread only *receives* messages. All dispatch, including forwarding, is done in the main thread called by the AsebaNetworkInterface class.

Definition at line 144 of file medulla.h.


Member Function Documentation

void Aseba::Hub::firstConnectionCreated (  )  [signal]
void Aseba::Hub::messageAvailable ( Message message,
Dashel::Stream sourceStream 
) [signal]

Member Data Documentation

bool Aseba::Hub::dump [private]

should we dump content of CAN messages

Definition at line 186 of file medulla.h.

bool Aseba::Hub::forward [private]

should we only forward messages instead of transmit them back to the sender

Definition at line 187 of file medulla.h.

bool Aseba::Hub::rawTime [private]

should displayed timestamps be of the form sec:usec since 1970

Reimplemented in Aseba::Dump.

Definition at line 188 of file medulla.h.

bool Aseba::Hub::verbose [private]

should we print a notification on each message

Definition at line 185 of file medulla.h.


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


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:14 2011