Classes | Functions
Software router of messages.

Classes

class  Aseba::Switch

Functions

void Aseba::Switch::broadcastDummyUserMessage ()
virtual void Aseba::Switch::connectionClosed (Dashel::Stream *stream, bool abnormal)
virtual void Aseba::Switch::connectionCreated (Dashel::Stream *stream)
virtual void Aseba::Switch::incomingData (Dashel::Stream *stream)
void Aseba::Switch::remapId (Dashel::Stream *stream, const uint16 localId, const uint16 targetId)
 Aseba::Switch::Switch (unsigned port, bool verbose, bool dump, bool forward, bool rawTime)
 Broadcast messages form any data stream to all others data streams including itself.

Function Documentation

Send a dummy user message to all connected pears.

Definition at line 139 of file switch.cpp.

void Aseba::Switch::connectionClosed ( Dashel::Stream stream,
bool  abnormal 
) [private, virtual]

Reimplemented from Dashel::Hub.

Definition at line 127 of file switch.cpp.

void Aseba::Switch::connectionCreated ( Dashel::Stream stream) [private, virtual]

Reimplemented from Dashel::Hub.

Definition at line 59 of file switch.cpp.

void Aseba::Switch::incomingData ( Dashel::Stream stream) [private, virtual]

Reimplemented from Dashel::Hub.

Definition at line 68 of file switch.cpp.

void Aseba::Switch::remapId ( Dashel::Stream stream,
const uint16  localId,
const uint16  targetId 
)

Remap the node identifier for messages coming on a stream

Parameters:
streamthe stream from which node id will be remapped
localIdthe new local node id to use
targetIdthe target node id to remap

Definition at line 151 of file switch.cpp.

Aseba::Switch::Switch ( unsigned  port,
bool  verbose,
bool  dump,
bool  forward,
bool  rawTime 
)

Broadcast messages form any data stream to all others data streams including itself.

Creates the switch, listen to TCP on port.

Parameters:
verboseshould we print a notification on each message
dumpshould we dump content of each message
forwardshould we only forward messages instead of transmit them back to the sender

Definition at line 45 of file switch.cpp.



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