#include <cogent.h>
int IP_Receive(IP_Task* myself, IP_Msg* rmsg, IP_MsgInfo* msginfo );
This function receives message of any form, and classifies them according to type. Relevant information about the sender is stored in the msginfo structure. A message can be one of the following types:
IP_ASYNC means an asynchronous message was received. No reply is necessary.
IP_SYNC means a synchronous message was received. A reply is necessary via a call to IP_MsgInfoReply.
IP_ERROR means an error occurred during IP_Receive, but defied classification.
IP_PULSE means a pulse was received. No reply is necessary.
IP_RAW means a message from a task not using the Cascade IPC library was received. The message data is contained in (void*)(rmsg->msg). A reply is required with a call to IP_MsgInfoReplyRaw.
IP_FD means activity occurred on a file descriptor. No data has been read from the file descriptor.
Copyright © 1995-2012 by Cogent Real-Time Systems, Inc. All rights reserved.