HP-UX C SIP Stack Message Layer Reference Guide (February 2008)
428 HP C SIP Stack Message Layer Reference Guide
Control Functions
RvSipDateHeaderEncode()
RvSipDateHeaderEncode()
DESCRIPTION
Encodes a Date header to a textual Date 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().
SYNTAX
RvStatus RvSipDateHeaderEncode(
IN RvSipDateHeaderHandle hHeader,
IN HRPOOL hPool,
OUT HPAGE* phPage,
OUT RvUint32* pLength);
PARAMETERS
hHeader
The handle to the Date header.
hPool
The handle to the specified memory pool.
hPage
The memory page allocated to contain the encoded header.
pLength
The length of the encoded information.
RETURN VALUES
Returns RvStatus.
REMARKS
The application must free the allocated page, using RPOOL_FreePage(). The
allocated page must be freed only if this function returns RV_OK.