IP_MsgRaw

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `IP_MsgRaw`

`IP_MsgRaw` -- like `IP_MsgCascade`, with `IP_SUB_RAW` for its `subtype`.

## Syntax

``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`

Prev | Home | Next
`IP_MsgLisp` | Up | `IP_MsgRawData`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.