Aseba::Switch Class Reference
[Software router of messages.]

#include <switch.h>

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

List of all members.

Public Member Functions

void broadcastDummyUserMessage ()
void forwardDataFrom (Dashel::Stream *stream)
 Switch (unsigned port, bool verbose, bool dump, bool forward, bool rawTime)
 Broadcast messages form any data stream to all others data streams including itself.

Private Member Functions

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

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.

Definition at line 39 of file switch.h.


Member Function Documentation

void Aseba::Switch::forwardDataFrom ( Dashel::Stream stream  ) 

Forwards the data received for a connections to the other ones. If forward is false, transmit it back to the sender too.

Parameters:
stream the stream the packet was received from

Member Data Documentation

bool Aseba::Switch::dump [private]

should we dump content of CAN messages

Definition at line 65 of file switch.h.

bool Aseba::Switch::forward [private]

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

Definition at line 66 of file switch.h.

bool Aseba::Switch::rawTime [private]

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

Definition at line 67 of file switch.h.

bool Aseba::Switch::verbose [private]

should we print a notification on each message

Definition at line 64 of file switch.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:15 2011