Public Member Functions | Private Types | Private Member Functions | Private Attributes
Aseba::Switch Class Reference

#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)
void remapId (Dashel::Stream *stream, const uint16 localId, const uint16 targetId)
 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 Types

typedef std::pair< uint16, uint16IdPair
 A pair of id: local, target.
typedef std::map
< Dashel::Stream *, IdPair
IdRemapTable
 A table allowing to remap the aseba node id of streams.

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
IdRemapTable idRemapTable
 table for remapping id
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 38 of file switch.h.


Member Typedef Documentation

typedef std::pair<uint16, uint16> Aseba::Switch::IdPair [private]

A pair of id: local, target.

Definition at line 76 of file switch.h.

typedef std::map<Dashel::Stream*, IdPair> Aseba::Switch::IdRemapTable [private]

A table allowing to remap the aseba node id of streams.

Definition at line 78 of file switch.h.


Member Function Documentation

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

Parameters:
streamthe stream the packet was received from

Member Data Documentation

bool Aseba::Switch::dump [private]

should we dump content of CAN messages

Definition at line 71 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 72 of file switch.h.

table for remapping id

Definition at line 79 of file switch.h.

bool Aseba::Switch::rawTime [private]

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

Definition at line 73 of file switch.h.

bool Aseba::Switch::verbose [private]

should we print a notification on each message

Definition at line 70 of file switch.h.


The documentation for this class was generated from the following files:


aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:40