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


The protocol in detail is :
Public Member Functions | |
| TCPModule () | |
| ~TCPModule () | |
| Node * | createNode (const std::string &name, StringTable &attributes) |
| void | pullEvent () |
| void | close () |
| void | init (StringTable &attributes, ConfigNode *localTree) |
| void | start () |
Protected Member Functions | |
| void | run () |
Protected Attributes | |
| NodeVector | sinks |
| list of sink nodes | |
| std::vector< ACE_SOCK_Stream * > | connections |
| list of sockets that connect to clients | |
| int | port |
| port number to listen to | |
| int | running |
| flag to stop the listening thread | |
|
|
|
|
|
|
|
|
closes the module. In this implementation it stops the thread. Be sure to call this method from your subclasses close method to stop the thread ! Reimplemented from ot::ThreadModule. |
|
||||||||||||
|
This method tries to create a new Node based on a given element type and the attributes of the element. If it can not create a new Node ( because it doesn't know about the element type for example ), it returns NULL. This method has to be implemented by real NodeFactories.
Implements ot::NodeFactory. |
|
||||||||||||
|
initializes the tracker module. This class provides an implementation that sets the initialization flag to true. Subclasses should call this method, if they override it, before doing anything else. It takes the attributes of the element configuring this module and a local tree consisting of the children of the element. This tree must be build of Nodes.
Reimplemented from ot::Module. |
|
|
pulls event information out of the tracker tree. It enables the module to query any EventQueue or TimeDependend node in the shared memory. It is called after pushEvent was executed on each module. Reimplemented from ot::Module. |
|
|
the work method for the module thread. This is executed by the new module thread. In this class it does nothing but subclasses should override it to add their implementation. Reimplemented from ot::ThreadModule. |
|
|
This method is called after initialisation is finished and before the main loop is started. In this implementation it starts the thread. Be sure to call this method from your subclasses start method to start the thread ! Reimplemented from ot::ThreadModule. |
|
|
list of sockets that connect to clients
|
|
|
port number to listen to
|
|
|
flag to stop the listening thread
|
|
|
list of sink nodes
|
1.4.6