IP_MsgData

IP_MsgData — returns a pointer to the data payload of an IP_Msg structure.

Syntax

#include <cogent.h>

char* IP_MsgData(IP_Msg* msg);

Arguments

msg

A pointer to an IP_Msg structure.

Returns

A pointer to the data portion of a message.

Description

This function returns the data portion of an IP_Msg structure. This is the buffer of characters to be transmitted, excluding any message header information.

IP_MsgData(message) is equivalent to message->msg->data.

See Also

Messages