Yate
|
A single IAX2 numeric Information Element. More...
#include <yateiax.h>
Public Member Functions | |
IAXInfoElementBinary (Type type, unsigned char *buf, unsigned len) | |
virtual | ~IAXInfoElementBinary () |
int | length () const |
DataBlock & | data () |
void | setData (void *buf, unsigned len) |
virtual void | toBuffer (DataBlock &buf) |
virtual void | toString (String &buf) |
Static Public Member Functions | |
static IAXInfoElementBinary * | packIP (const SocketAddr &addr) |
static bool | unpackIP (SocketAddr &addr, IAXInfoElementBinary *ie) |
A single IAX2 numeric Information Element.
This class holds a single Information Element with binary data
IAXInfoElementBinary | ( | Type | type, |
unsigned char * | buf, | ||
unsigned | len | ||
) | [inline] |
Constructor
type | Type of this IE |
buf | Source buffer to construct this IE |
len | Buffer length |
virtual ~IAXInfoElementBinary | ( | ) | [inline, virtual] |
Destructor
int length | ( | ) | const [inline] |
Get the data length
static IAXInfoElementBinary* packIP | ( | const SocketAddr & | addr | ) | [static] |
Constructs an APPARENT_ADDR information element from a SocketAddr object
addr | Source object |
void setData | ( | void * | buf, |
unsigned | len | ||
) | [inline] |
Set the data
buf | Source buffer to construct this IE |
len | Buffer length |
References DataBlock::assign().
Constructs a buffer containing this Information Element
buf | Destination buffer |
Reimplemented from IAXInfoElement.
static bool unpackIP | ( | SocketAddr & | addr, |
IAXInfoElementBinary * | ie | ||
) | [static] |
Decode an APPARENT_ADDR information element and copy it to a SocketAddr object
addr | Destination object |
ie | Source IE |