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

Message Object Functions 47
Get and Set Functions
RvSipMsgSetContentLengthHeader()
RvSipMsgSetContentLengthHeader()
DESCRIPTION
Sets a Content Length value in the message. The Content Length indicates the
size of the message body.
SYNTAX
RvStatus RvSipMsgSetContentLengthHeader(
IN RvSipMsgHandle hSipMsg,
IN RvInt32 contentLen);
PARAMETERS
hSipMsg
The handle to the message.
contentLen
The Content Length value to be set.
RETURN VALUES
Returns RvStatus.
REMARKS
If the body is of type multipart and holds a list of body part objects, this function
will return RV_ERROR_UNKNOWN. In this case, the content length is
determine by the size of the encoded body part list.