Notification

The samples in the subdirectories of this directory illustrate progressively more involved uses of the Notification framework.

These samples are all based on variants of sample user classes TSender and TReceiver, which implement the sending and receiving sides of notification. These two classes ONLY vary in minor ways between the various samples.

Notification is also extensively used by the Document framework. You don't need to understand the Document framework in order to understand these samples.

BasicNotification

BasicNotification introduces sample user classes TSender and TReceiver, which implement the simplest form of notification using TNotifier, TInterest, and TMemberFunctionConnectionTo<>.

MultipleInterests

MultipleInterests extends TSender to add additional protocol and interests, and extends TReceiver to use separate handlers for each interest.

CustomNotification

CustomNotification defines a sample TNotification subclass, TLongNotification. It extends TSender to issue it and TReceiver to handle it.

Batching

Batching shows how several notifications can be sent together as a batch. It modifies TReceiver to enable receiving the batched notifications. This can reduce communications traffic between a sender and receiver, and allow receivers to optimize their responses to notification.

CustomInterest

CustomInterest defines an example TInterest subclass. It modifies TSender to send this interest as well as the standard interest. It defines an additional receiver class, TValueReceiver, that only registers for this particular interest.

RemoteNotification

RemoteNotification illustrates how to send notifications across task boundaries using MRemoteCallerNotifier and MRemoteDispatcherNotifier. You should be familiar with Communications and RPC in particular before reviewing this sample. No custom interests or notifications are used in this sample, so in other respects it is most similar to BasicNotification.


Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.