IP_MsgInfoReply

IP_MsgInfoReply — replies to an IP_SYNC message using IP_MsgInfo.

Syntax

#include <cogent.h>
int IP_MsgInfoReply(IP_MsgInfo*  orig,
 IP_Msg*  rmsg);

Arguments

orig

The original msginfo as filled by IP_Receive.

rmsg

The reply message.

Returns

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

Description

This function replies to a previously received IP_SYNC message by using the information in the IP_MsgInfo structure filled by IP_Receive. The rmsg contains the information to be transmitted as the reply.

See Also

Replying to Messages, IP_Reply