#include <switch.h>
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, uint16 > | IdPair |
| 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
A pair of id: local, target.
Definition at line 76 of file switch.h.
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:
-
| stream | the stream the packet was received from |
Member Data Documentation
should we dump content of CAN messages
Definition at line 71 of file switch.h.
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.
should displayed timestamps be of the form sec:usec since 1970
Definition at line 73 of file switch.h.
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: