class IAXInfoElementBinary

A single IAX2 numeric Information Element. More...

Full nameTelEngine::IAXInfoElementBinary
Definition#include <libs/yiax/yateiax.h>
InheritsTelEngine::IAXInfoElement [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods


Detailed Description

This class holds a single Information Element with binary data

 IAXInfoElementBinary (Type type, unsigned char* buf, unsigned len)

IAXInfoElementBinary

Constructor

Parameters:
typeType of this IE
bufSource buffer to construct this IE
lenBuffer length

 ~IAXInfoElementBinary ()

~IAXInfoElementBinary

[virtual]

Destructor

inline int  length ()

length

[const]

Get the data length

Returns: The data length

inline DataBlock&  data ()

data

Get the data

Returns: The data

void  toBuffer (DataBlock& buf)

toBuffer

[virtual]

Constructs a buffer containing this Information Element

Parameters:
bufDestination buffer

Reimplemented from IAXInfoElement.

IAXInfoElementBinary*  packIP (const SocketAddr& addr)

packIP

[static]

Constructs an APPARENT_ADDR information element from a SocketAddr object

Parameters:
addrSource object

Returns: A valid IAXInfoElementBinary pointer

bool  unpackIP (SocketAddr& addr, IAXInfoElementBinary* ie)

unpackIP

[static]

Decode an APPARENT_ADDR information element and copy it to a SocketAddr object

Parameters:
addrDestination object
ieSource IE

Returns: False if ie is 0

void  toString (String& buf)

toString

[virtual]

Add this element to a string

Parameters:
bufDestination string

Reimplemented from IAXInfoElement.


Generated by: paulc on bussard on Mon Mar 8 12:18:15 2010, using kdoc 2.0a54.