IP_Reply

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `IP_Reply`

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

## Syntax

``int IP_Reply`(int rcvid, IP_Msg* rmsg);`

## Arguments

`rcvid`

  The `rcvid` returned from `IP_Receive` in `msginfo->rcvid`.

`rmsg`

  The message to transmit as a reply.

## Returns

`0` on success, or `-1` on failure and `errno` is set.

## Description

This function replies to a previously recevied `IP_SYNC` message by using the `rcvid` directly. This is sometimes simpler than using the `IP_MsgInfo` structure, as the `rcvid` is a single integer that can be easily passed to other functions.

## See Also

Replying to Messages, `IP_MsgInfoReply`

Prev | Home | Next
`IP_RemoveFDHandler` | Up | `IP_ReplyRaw`

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