|
Yate
|
Meta trunk frame. More...
#include <yateiax.h>
Public Member Functions | |
| IAXMetaTrunkFrame (IAXEngine *engine, const SocketAddr &addr, bool timestamps, unsigned int maxLen, unsigned int sendInterval) | |
| virtual | ~IAXMetaTrunkFrame () |
| const SocketAddr & | addr () const |
| unsigned int | calls () const |
| void | changeCalls (bool add) |
| bool | trunkTimestamps () const |
| unsigned int | sendInterval () const |
| unsigned int | maxLen () const |
| unsigned int | add (u_int16_t sCallNo, const DataBlock &data, u_int32_t tStamp) |
| bool | timerTick (const Time &now=Time()) |
| bool | send () |
Public Member Functions inherited from RefObject | |
| RefObject () | |
| virtual | ~RefObject () |
| virtual void * | getObject (const String &name) const |
| virtual bool | alive () const |
| bool | ref () |
| bool | deref () |
| int | refcount () const |
| virtual void | destruct () |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual const String & | toString () const |
| virtual const String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Public Member Functions inherited from Mutex | |
| Mutex (bool recursive=false, const char *name=0) | |
| Mutex (const Mutex &original) | |
| ~Mutex () | |
| Mutex & | operator= (const Mutex &original) |
| virtual bool | lock (long maxwait=-1) |
| virtual bool | unlock () |
| virtual bool | locked () const |
| const char * | owner () const |
| bool | recursive () const |
Public Member Functions inherited from Lockable | |
| virtual | ~Lockable () |
| virtual bool | check (long maxwait=-1) |
| virtual bool | unlockAll () |
Additional Inherited Members | |
Static Public Member Functions inherited from RefObject | |
| static bool | alive (const RefObject *obj) |
| static bool | efficientIncDec () |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Static Public Member Functions inherited from Mutex | |
| static int | count () |
| static int | locks () |
| static bool | efficientTimedLock () |
Static Public Member Functions inherited from Lockable | |
| static void | wait (unsigned long maxwait) |
| static unsigned long | wait () |
| static void | startUsingNow () |
| static void | enableSafety (bool safe=true) |
| static bool | safety () |
Protected Member Functions inherited from RefObject | |
| virtual void | zeroRefs () |
| bool | resurrect () |
| virtual void | destroyed () |
Meta trunk frame.
Handle meta trunk frame with timestamps
| IAXMetaTrunkFrame | ( | IAXEngine * | engine, |
| const SocketAddr & | addr, | ||
| bool | timestamps, | ||
| unsigned int | maxLen, | ||
| unsigned int | sendInterval ) |
Constructor. Constructs an outgoing meta trunk frame
| engine | The engine that owns this frame |
| addr | Remote peer address |
| timestamps | True if miniframes have timestamps, false if not |
| maxLen | Maximum frame length |
| sendInterval | Trunk send interval in milliseconds |
References addr(), maxLen(), and sendInterval().
|
virtual |
Destructor
| unsigned int add | ( | u_int16_t | sCallNo, |
| const DataBlock & | data, | ||
| u_int32_t | tStamp ) |
Add a mini frame. If no room, send before adding
| sCallNo | Sorce call number |
| data | Mini frame data |
| tStamp | Mini frame timestamp |
Referenced by changeCalls().
|
inline |
|
inline |
Retrieve the number of calls using this trunk
|
inline |
Change the number of calls using this trunk
| add | True to add a call, false to remove it |
References add().
|
inline |
|
inline |
Send this frame to remote peer if there is any data in buffer
|
inline |
Send this frame to remote peer if the time arrived
| now | Current time |
|
inline |
Check if the frame is adding mini frames timestamps