SignallingEngine Class Reference
Main signalling component holder.
More...
#include <yatesig.h>
List of all members.
Detailed Description
Main signalling component holder.
The engine is the center of all SS7 or ISDN applications. It is used as a base to build the protocol stack from components.
Constructor & Destructor Documentation
Constructor of an empty engine
- Parameters:
-
| name | The debug name of this engine |
Destructor, removes all components
Member Function Documentation
Check if a component is in the engine's list
- Parameters:
-
| component | Pointer to component to check |
- Returns:
- True if the component is in the engine's list
Retrive a component by name, lock the list while searching for it
- Parameters:
-
| name | Name of the component to find |
- Returns:
- Pointer to component found or NULL
Insert a component in the engine, lock the list while doing so
- Parameters:
-
| component | Pointer to component to insert in engine |
bool remove |
( |
const String & |
name |
) |
|
Remove and destroy a component from the engine by name
- Parameters:
-
| name | Name of component to remove from engine |
- Returns:
- True if a component was found and destroyed
Remove a component from the engine, lock the list while doing so
- Parameters:
-
| component | Pointer to component to remove from engine |
bool start |
( |
const char * |
name = "Signalling" , |
|
|
Thread::Priority |
prio = Thread::Normal , |
|
|
unsigned long |
usec = 1000 | |
|
) |
| | |
Starts the worker thread that keeps components alive
- Parameters:
-
| name | Static name of the thread |
| prio | Thread's priority |
| usec | How long to sleep between iterations, in microseconds |
- Returns:
- True if (already) started, false if an error occured
Stops and destroys the worker thread if running
Return a pointer to the worker thread
- Returns:
- Pointer to running worker thread or NULL
virtual void timerTick |
( |
const Time & |
when |
) |
[protected, virtual] |
Method called periodically by the SignallingThreadPrivate to keep everything alive
- Parameters:
-
| when | Time to use as computing base for events and timeouts |
Member Data Documentation
The list of components managed by this engine
The documentation for this class was generated from the following file: