#include <cogent.h>
int IP_MsgCascade(IP_Msg* message, void* data, int len, int subtype, int status );
0 on success, or -1 if the message could not be resized, and errno is set:
The msg portion of message is set to NULL.
This function assumes that the message points to an IP_MsgBuffer, and writes data into its data portion for len bytes. If len is greater than the currently allocated message length, the message is resized. If the data argument points to the same location as the message's data, then no copy is performed. The message's length, status and subtype are all updated regardless. The message type is set to IP_MSG_COGENT.
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.