Router Class Reference

Call routing thread. More...

#include <yatephone.h>

Inheritance diagram for Router:
Thread Runnable

List of all members.

Public Member Functions

 Router (Driver *driver, const char *id, Message *msg)
virtual void run ()
virtual bool route ()
virtual void cleanup ()

Protected Member Functions

const Stringid () const

Detailed Description

Call routing thread.

Asynchronous call routing thread


Constructor & Destructor Documentation

Router ( Driver driver,
const char *  id,
Message msg 
)

Constructor - creates a new routing thread

Parameters:
driver Pointer to the driver that asked for routing
id Unique identifier of the channel being routed
msg Pointer to an already filled message

Member Function Documentation

virtual void cleanup (  )  [virtual]

Thread cleanup handler

Reimplemented from Thread.

const String& id (  )  const [inline, protected]

Get the routed channel identifier

Returns:
Unique id of the channel being routed
virtual bool route (  )  [virtual]

Actual routing method

Returns:
True if call was successfully routed
virtual void run (  )  [virtual]

Main thread running method

Implements Runnable.


The documentation for this class was generated from the following file:
Generated on Thu Apr 8 18:22:37 2010 for Yate by  doxygen 1.6.3