Yate
Public Member Functions
IAXMetaTrunkFrame Class Reference

Meta trunk frame. More...

#include <yateiax.h>

Inheritance diagram for IAXMetaTrunkFrame:
RefObject Mutex GenObject Lockable

List of all members.

Public Member Functions

 IAXMetaTrunkFrame (IAXEngine *engine, const SocketAddr &addr)
virtual ~IAXMetaTrunkFrame ()
const SocketAddraddr () const
u_int32_t timestamp ()
void setTimestamp (u_int32_t tStamp)
bool add (u_int16_t sCallNo, const DataBlock &data, u_int32_t tStamp)
bool send (u_int32_t tStamp=Time::msecNow())

Detailed Description

Meta trunk frame.

Handle meta trunk frame with timestamps


Constructor & Destructor Documentation

IAXMetaTrunkFrame ( IAXEngine engine,
const SocketAddr addr 
)

Constructor. Constructs an outgoing meta trunk frame

Parameters:
engineThe engine that owns this frame
addrRemote peer address
virtual ~IAXMetaTrunkFrame ( ) [virtual]

Destructor


Member Function Documentation

bool add ( u_int16_t  sCallNo,
const DataBlock data,
u_int32_t  tStamp 
)

Add a mini frame. If no room, send before adding

Parameters:
sCallNoSorce call number
dataMini frame data
tStampMini frame timestamp
Returns:
False if the frame was sent and the write operation failed
const SocketAddr& addr ( ) const [inline]

Get the remote peer address

Returns:
The remote peer address
bool send ( u_int32_t  tStamp = Time::msecNow())

Send this frame to remote peer

Parameters:
tStampFrame timestamp
Returns:
The result of the write operation

Referenced by IAXEngine::sendTrunkFrame().

void setTimestamp ( u_int32_t  tStamp)

Set the timestamp of this frame

Parameters:
tStampTimestamp value to set
u_int32_t timestamp ( ) [inline]

Get the timestamp of this frame

Returns:
The timestamp of this frame

The documentation for this class was generated from the following file: