IP_ReplyRaw

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `IP_ReplyRaw`

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

## Syntax

``int `IP_ReplyRaw``(int rcvid, char* msg, int len);`

## Arguments

`rcvid`

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

`msg`

  The message buffer to be transmitted.

`len`

  The length of the message buffer.

## Returns

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

## Description

This function replies to a previously received `IP_RAW` 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. `len` bytes of `msg` are transmitted as the reply message.

## See Also

Replying to Messages, `IP_MsgInfoReplyRaw`

Prev | Home | Next
`IP_Reply` | Up | `IP_SelectFD`

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