#include <yateiax.h>
Public Member Functions | |
IAXInfoElementBinary (Type type, unsigned char *buf, unsigned len) | |
virtual | ~IAXInfoElementBinary () |
int | length () const |
DataBlock & | data () |
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) |
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
DataBlock& data | ( | ) | [inline] |
Get the data
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 |
virtual void toBuffer | ( | DataBlock & | buf | ) | [virtual] |
Constructs a buffer containing this Information Element
buf | Destination buffer |
Reimplemented from IAXInfoElement.
virtual void toString | ( | String & | buf | ) | [virtual] |
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 |