Signals | Public Member Functions | Protected Slots | Private Member Functions | Private Attributes

#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 141 of file medulla.h.


Member Function Documentation

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

Reimplemented from Dashel::Hub.

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

Reimplemented from Dashel::Hub.

void Aseba::Hub::firstConnectionCreated ( ) [signal]
virtual void Aseba::Hub::incomingData ( Dashel::Stream stream) [private, virtual]

Reimplemented from Dashel::Hub.

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

Reimplemented from Dashel::Hub.

void Aseba::Hub::sendMessage ( Message message,
Dashel::Stream sourceStream = 0 
)

Sends a message to Dashel peers. Does not delete the message, should be called by the main thread.

Parameters:
messageaseba message to send
sourceStreamoriginate of the message, if from Dashel.
void Aseba::Hub::sendMessage ( Message message,
Dashel::Stream sourceStream = 0 
)

Sends a message to Dashel peers. Convenience overload


Member Data Documentation

bool Aseba::Hub::dump [private]

should we dump content of CAN messages

Definition at line 184 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 185 of file medulla.h.

bool Aseba::Hub::rawTime [private]

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

Definition at line 186 of file medulla.h.

bool Aseba::Hub::verbose [private]

should we print a notification on each message

Definition at line 183 of file medulla.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:39