Sun Java Communications Suite 5 Event Notification Service Guide

upub_publish

Purpose

Sends a notification.

Syntax

void upub_publish (upub_t *upub,
                              const char *event_ref,
                              void *payload,
                              unsigned int payload_len,
                              void (*delete_payload) (void *));

Parameters

upub

Publisher. 

event_ref

Event reference. This is a URI identifying the resource that is modifed. 

payload

Notification payload. 

payload_len

Length in bytes of the payload. 

delete_payload

Callback to free the payload when it is no longer needed. 

Returns

Nothing.