HP-UX C SIP Stack Message Layer Reference Guide (January 2008)

644 HP C SIP Stack Message Layer Reference Guide
Control Functions
RvSipRetryAfterHeaderEncode()
RvSipRetryAfterHeaderEncode()
DESCRIPTION
Encodes a Retry-After header to a textual Retry-After header. The textual
header is placed on a page taken from a specified pool. To copy the textual
header from the page to a consecutive buffer, use RPOOL_CopyToExternal().
The application must free the allocated page, using RPOOL_FreePage(). The
application must free the allocated page only if this function returns RV_OK.
SYNTAX
RvStatus RvSipRetryAfterHeaderEncode(
IN RvSipRetryAfterHeaderHandle hHeader,
IN HRPOOL hPool,
OUT HPAGE* phPage,
OUT RvUint32* pLength);
PARAMETERS
hHeader
The handle to the Retry-After header.
hPool
The handle to the specified memory pool.
phPage
The memory page allocated to contain the encoded header.
pLength
The length of the encoded information.
RETURN VALUES
Returns RvStatus.