Yate
|
Call routing thread. More...
#include <yatephone.h>
Public Member Functions | |
Router (Driver *driver, const char *id, Message *msg) | |
virtual void | run () |
virtual bool | route () |
virtual void | cleanup () |
Public Member Functions inherited from Thread | |
bool | startup () |
bool | error () const |
bool | running () const |
int | locks () const |
bool | locked () const |
const char * | name () const |
void | cancel (bool hard=false) |
bool | isCurrent () const |
NamedCounter * | getObjCounter () const |
NamedCounter * | setObjCounter (NamedCounter *counter) |
Public Member Functions inherited from Runnable | |
virtual | ~Runnable () |
Protected Member Functions | |
const String & | id () const |
Protected Member Functions inherited from Thread | |
Thread (const char *name=0, Priority prio=Normal) | |
Thread (const char *name, const char *prio) | |
virtual | ~Thread () |
Additional Inherited Members | |
Public Types inherited from Thread | |
enum | Priority { Lowest, Low, Normal, High, Highest } |
Static Public Member Functions inherited from Thread | |
static const char * | currentName () |
static void | yield (bool exitCheck=false) |
static void | idle (bool exitCheck=false) |
static void | sleep (unsigned int sec, bool exitCheck=false) |
static void | msleep (unsigned long msec, bool exitCheck=false) |
static void | usleep (unsigned long usec, bool exitCheck=false) |
static unsigned long | idleUsec () |
static unsigned long | idleMsec () |
static void | idleMsec (unsigned long msec) |
static Thread * | current () |
static int | count () |
static bool | check (bool exitNow=true) |
static void | exit () |
static NamedCounter * | getCurrentObjCounter (bool always=false) |
static NamedCounter * | setCurrentObjCounter (NamedCounter *counter) |
static Priority | priority (const char *name, Priority defvalue=Normal) |
static const char * | priority (Priority prio) |
static void | killall () |
static void | preExec () |
static int | lastError () |
static bool | errorString (String &buffer) |
static bool | errorString (String &buffer, int code) |
Call routing thread.
Asynchronous call routing thread
Constructor - creates a new routing thread
driver | Pointer to the driver that asked for routing |
id | Unique identifier of the channel being routed |
msg | Pointer to an already filled message |
|
inlineprotected |
Get the routed channel identifier
|
virtual |
Actual routing method
|
virtual |
Main thread running method
Implements Runnable.