LWMsgMessage Struct Reference

Message structure. More...

#include <lwmsg/message.h>

Data Fields

LWMsgStatus status
 Status code. More...
 
LWMsgCookie cookie
 Cookie. More...
 
LWMsgTag tag
 Tag. More...
 
void * data
 Data payload. More...
 

Detailed Description

Encapsulates all the elements of a message in a single structure.

Field Documentation

LWMsgStatus LWMsgMessage::status

Indicates the overall success of the message.

LWMsgCookie LWMsgMessage::cookie

An arbitrary cookie value. Primarily used for correlating request-response message pairs.

LWMsgTag LWMsgMessage::tag

Indicates the meaning and data type of the message. A given tag is meaningful in the context of a given LWMsgProtocol

void* LWMsgMessage::data

The data content of the message. Its type is determined by the tag and the associated LWMsgProtocol.