Next: Information Service
Up: l1soft_1107_online
Previous: Inter Process Communication (2)
Introduction
- Implemented in the mrs package.
- Three components: message senders, message server (one), message
receivers.
- Senders send messages to the server using a simple stream
like interface.
- Message text and expected parameters can be stored in a database.
- Message server forwards messages to connected receivers according
to selection criteria.
- Message receiver can subscribe to message server to receive
all messages that fit some set of selection criteria.
- In general senders probably wont be receivers and vice versa.
Example
#include "mrs/message.h"
IPCPartition partition ("Murrough");
MRSStream mout (partition);
mout << messname1 << MRS_FATAL << ENDM;
mout << messname2 << MRS_PARAM<int>("par",2)
<< MRS_WARNING << ENDM;
mout << messname3 << MRS_TEXT("some arbitrary text")
<< MRS_ERROR << ENDM;
Next: Information Service
Up: l1soft_1107_online
Previous: Inter Process Communication (2)
Murrough Landon (m.p.j.landon@qmul.ac.uk)