Sun Java Communications Suite 5 Event Notification Service Guide

publisher_new_s

Purpose

Creates a new synchronous publisher.

Syntax

publisher_t *publisher_new_s (pas_dispatcher_t *disp,
                              void *worker,
                              const char *host,
                              unsigned short port);

Parameters

disp

P&S thread pool context 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.

host

Notification server host name. 

port

Notification server port. 

Returns

A new active publisher (publisher_t).