IP_Reply

IP_Reply — replies to an IP_SYNC message using rcvid.

Syntax

#include <cogent.h>

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