IP_MsgRaw

IP_MsgRaw — like IP_MsgCascade, with IP_SUB_RAW for its subtype.

Syntax

#include <cogent.h>
int IP_MsgRaw(IP_Msg*  message,
 void*  data,
 int  len);

Arguments

message

A pointer to a message.

data

Data to copy into message->msg->data.

len

The amount of data to copy.

Returns

0 on success; or -1 if the message could not be resized, and errno is set:

    ENOSYS - the message is either not resizable or not dynamic.

    ENOMEM - the memory reallocation returned NULL.

The msg portion of message is set to NULL.

Description

This function is equivalent to: IP_MsgCascade (message, , data, , len, IP_SUB_RAW, 0)

See Also

Messages, IP_MsgCascade