Skip navigation.

Using the CORBA Notification Service

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents Index View as PDF   Get Adobe Reader

 


CosNotifyChannelAdmin::StructuredProxyPushConsumer::
connect_structured_push_supplier

Synopsis

Prepares the Notification Service to receive an event.

OMG IDL

void connect_structured_push_supplier (
in CosNotifyComm::StructuredPushSupplier push_supplier)
raises(CosEventChannelAdmin::AlreadyConnected);

Exception

CosEventChannelAdmin::AlreadyConnected

Never raised.

Description

Used by poster applications when posting events. You must call this operation to prepare the Notification Service to receive an event and you must pass in a NIL when you use this operation. The sequence of usage is as follows:

  1. Make a proxy.
  2. Use this operation to connect to the Notification Service and pass in a NIL.
  3. Post events.
  4. Before exiting the poster program, disconnect.

Examples

Note: Code examples shown here are abbreviated. For complete code examples, see "Creating and Posting Events" on page -4.

C++ code example:

proxy_push_consumer->connect_structured_push_supplier(
CosNotifyComm::StructuredPushSupplier::_nil()
);

 

Skip navigation bar  Back to Top Previous Next