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

54 HP C SIP Stack Message Layer Reference Guide
Get and Set Functions
RvSipMsgGetBody()
RvSipMsgGetBody()
DESCRIPTION
Copies the body from the message into a given buffer. If the bufferLen is
adequate, the function copies the message body into strBuffer. Otherwise, the
function returns RV_ERROR_INSUFFICIENT_BUFFER and actualLen
contains the required buffer length.
SYNTAX
RvStatus RvSipMsgGetBody(
IN RvSipMsgHandle hSipMsg,
IN RvChar* strBuffer,
IN RvUint bufferLen,
OUT RvUint* actualLen);
PARAMETERS
hSipMsg
The handle to the message.
strBuffer
The buffer with which to fill the requested parameter.
bufferLen
The length of the buffer.
actualLen
The length of the requested parameter + 1, to include a NULL value at the end
of the parameter.
RETURN VALUES
Returns RvStatus.