Replying to Messages

Cogent API and Utilities: Version 4.1
Prev | Chapter 3. Interprocess Communication | Next

# 3.9. Replying to Messages

Some messages and events require a reply. The reply can be via the low-level interprocess communication mechanism, or indirectly via an `IP_MsgInfo` structure. This structure is filled by `IP_Receive` with enough information to facilitate a reply. Further, the message can be either a Cascade IPC message structure (`IP_Msg`), or it can be a raw binary buffer. In the case of a raw reply, it is the programmer's responsibility to ensure that the message is correctly formatted for the receiver. `IP_MsgInfoReply` is the normal means of replying.

- `IP_Reply` - replies to an IP_SYNC message using rcvid.

- `IP_MsgInfoReply` - replies to an IP_SYNC message using IP_MsgInfo.

- `IP_ReplyRaw` - replies to an IP_RAW message using rcvid.

- `IP_MsgInfoReplyRaw` - replies to an IP_RAW message using IP_MsgInfo.

Prev | Home | Next
Receiving Messages and Events | Up | Sending Messages

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