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

subscriber_new_s

Purpose

Creates a new synchronous subscriber.

Syntax

subscriber_t *subscriber_new_s (pas_dispatcher_t *disp,
                                const char *host,
                                unsigned short port);

Parameters

disp

Publish and subscribe dispatcher returned by pas_dispatcher_new.

worker

Application worker. If not NULL, grouped with existing workers created by ENS to service this publisher session. Used to prevent multiple threads from accessing the publisher data at the same time. Only usable if the caller creates and dispatches the GDisp context. 

host

Notification server host name or IP address. 

port

Subscription service port number. 

Returns

A new active subscriber (subscriber_t).