Sun Java System Communications Services 6 2005Q4 Event Notification Service Guide

subscriber_notify_cb_t

Purpose

Subscriber callback; called upon receipt of a notification.

Syntax

typedef void (*subscriber_notify_cb_t) (void *arg,
                                        char *event,
                                        char *data,
                                        int datalen);

Parameters

arg

Context pointer passed to subscribe (notify_arg).

event

The event reference (URI). The notification event reference matches the subscription, but may contain additional information called event attributes, such as a uid.

data

The body of the notification. A MIME object. 

datalen

Length of the data. 

Returns

Zero if successful, non-zero otherwise.