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


Public Member Functions | |
| NetworkSinkModule () | |
| virtual | ~NetworkSinkModule () |
| virtual void | init (StringTable &attributes, ConfigNode *localTree) |
| virtual Node * | createNode (const std::string &name, StringTable &attributes) |
| virtual void | start () |
| virtual void | close () |
| virtual void | pullEvent () |
Protected Member Functions | |
| void | convertFloatsHToNl (std::vector< float > &floats, float *result, int num) |
Static Protected Member Functions | |
| static void | runUnicastTransceiver (void *data) |
Protected Attributes | |
| SinkVector | nodes |
| list of NetworkSink nodes | |
| MulticastSenderVector | multicasts |
| list of MulticastSender objects | |
| UnicastSenderVector | unicasts |
| list of UnicastSender objects | |
| std::string | serverName |
| server name | |
| bool | blockMulticast |
|
|
basic constructor |
|
|
destructor |
|
|
closes the module and closes any communication sockets. Reimplemented from ot::Module. |
|
||||||||||||||||
|
converts floats to network byte order.
|
|
||||||||||||
|
This method is called to construct a new Node. It compares name to the NetworkSink element name, and if it matches creates a new NetworkSink node.
Implements ot::NodeFactory. |
|
||||||||||||
|
initializes the tracker module.
Reimplemented from ot::Module. |
|
|
pulls event information out of the tracker tree. It checks the modified member on each NetworkSink node and if a new value is stored it inserts it into the apropriate network data buffer. Then it sends any non-empty data buffers to the network. Reimplemented from ot::Module. |
|
|
Runs the unicast transceiver thread. The function reads from and writes to the network and parses network packages.
|
|
|
This method is called after initialisation is finished and before the main loop is started. It opens the sockets needed for communication. Reimplemented from ot::Module. |
|
|
|
|
|
list of MulticastSender objects
|
|
|
list of NetworkSink nodes
|
|
|
server name
|
|
|
list of UnicastSender objects
|
1.4.6