Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IAsn1_2::encodeIPAddr_2 ( P6UINT8 pBuffer,
P6UINT32  bufSize,
P6UINT32 pIndex,
P6UINT32  ipAddress,
P6UINT8  overrideTag 
)
pure virtual

Take a standard 32 bit IP address and encode it in 4 octets in network byte order.

Since there is no standard BER universal tag for network address the caller must provide an application specific tag.

Parameters
pBuffer[ in out ] array of bytes to build an ASN.1 encoded message
bufSize[ in ] size in octets (i.e., bytes) of pBuffer
pIndex[ in ] current offset into pBuffer, that is, the next free byte to write into [ out ] As the IP address is encoded in pBuffer this index value increases in value
ipAddress[ in ] the ip address of "63.45.3.10" is represented in 4 bytes where the first byte contains the value of 63, the second of 45, the third 3, and the last contains the value 10 (i.e., 0x3F2D030A).
overrideTag[ in ] standard BER encoded application tag value (i.e., not a universal tag)
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eInvalidArgOne of the parameters is NULL.
P6R::eTooBigThe remaining space in pBuffer is insufficient to encode the integer value.