blob: 7d523fd81f7c3efb18fe01b2d3e4e8dfb6d868fd [file] [log] [blame]
Ashwin Sridharanfd9cc7a2019-04-03 16:47:02 -04001
2This directory contains a few sample programmes which demonstrate
3various aspects of how a user programme can use RMr to send
4and/or receive messages. These programmes are fairly simple
5in nature, and in most cases error checking is not performed
6to keep the code simple.
E. Scott Daniels8761b5d2019-08-09 15:37:48 -04007
8
9Health Check
10 This is an example of how a health check process might
11 be implemented. It sends 1 or more messages to an RMR
12 application and waits for the response. The latency of
13 each round trip (mu-seconds) is written to the tty.
14
15
16Message echoer
17 This is a simple process which returns the received message
18 back to the sender, optionally changing the message type
19 while leaving all other parts of the message unchanged.
20 This is a good verification for applications like the
21 health checker.
22
23Receiver
24 This is a simple receiver process which returns messages to
25 the sender when a specific type is sent. Messages are checked
26 for accuracy when run with the example sender.
27
28Sender
29 A small sender which puts in information that lets the receiver
30 confirm that the message was received correctly (simple checksum
31 on portions of the payload and RMR header data.