#include <NetworkSourceModule.h>
Inheritance diagram for ot::NetworkSourceModule:


Public Member Functions | |
| NetworkSourceModule () | |
| virtual | ~NetworkSourceModule () |
| virtual Node * | createNode (const std::string &name, StringTable &attributes) |
| virtual void | start () |
| virtual void | close () |
| virtual void | pushEvent () |
Static Protected Member Functions | |
| static void | convertFloatsNToHl (float *floats, float *result, int num) |
| static void | runMulticastReceiver (void *data) |
| static void | runUnicastTransceiver (void *data) |
| static bool | processRecord (NetworkReceiver *receiver) |
Protected Attributes | |
| MulticastReceiverVector | multicasts |
| list of multicast groups to listen for | |
| UnicastReceiverVector | unicasts |
| list of unicast receivers to listen for | |
|
|
basic constructor |
|
|
destructor |
|
|
closes the module and closes any communication sockets and stops thread. Reimplemented from ot::Module. |
|
||||||||||||||||
|
Converts num floats from network byte order.
|
|
||||||||||||
|
This method is called to construct a new Node. It compares name to the NetworkSource element name, and if it matches creates a new NetworkSource node.
Implements ot::NodeFactory. |
|
|
Processes the received data buffer and writes the decoded data the event of the station defined by the station number.
|
|
|
pushes event information into the tree. It checks whether there is new data for any NetworkSource node, copies it into the nodes and calls push on them. Reimplemented from ot::Module. |
|
|
Runs the multicast receiver thread. The function reads from the network and parses network packages.
|
|
|
Runs the unicast transceiver thread. The function reads from and writes to the network and parses network packages.
|
|
|
opens the sockets needed for communication and starts the receive thread. It is called after initialisation is done. Reimplemented from ot::Module. |
|
|
list of multicast groups to listen for
|
|
|
list of unicast receivers to listen for
|
1.4.6