IP_ProcessMessage

IP_ProcessMessage — classifies messages for IP_Receive.

Syntax

#include <cogent.h>
int IP_ProcessMessage(IP_Task*  myself,
 int  rcvid,
 void*  msgbuffer,
 int  length,
 IP_MsgInfo*  msginfo);

Arguments

myself

A task structure referring to the current task.

rcvid

The rcvid from the most recently received message.

msgbuffer

The most recently received message.

length

The length of msgbuffer.

msginfo

A structure to be filled with message information.

Returns

The message type.

Description

This function is used by IP_Receive to classify messages. Do not call this function directly.

See Also

Receiving Messages and Events, IP_Receive