All user messages within the RCM protocol are exchanged through endpoints, which can be considered logical channels. Each endpoint is identified by an 8-bit number ranging from 1 to 239.
In order to communicate, the user needs to first register an endpoint through the RCM_RegisterEndpoint function. Once the endpoint is registered in both the sending and receiving node, a message can be exchanged.
The sending node uses RCM_SendMessage function to send a message described by a RCMMessage structure (see Messages). The most basic method of gaining access to the received messages in the receiving node is to poll the connection using RCM_GetPendingMessage function. This function returns a pointer to a received RCMMessage structure. Once obtained, the user is responsible for freeing the message structure using RCM_UnlockMessage function.
The following example illustrates how to send messages, using three types :
The following example illustrates how to receive messages:
Generated on Fri Aug 31 2018 09:37:14 for RCM API Library by 1.8.7