#include <ThinClient.h>
Inheritance diagram for ThinClient:
Public Member Functions | |
ThinClient (const string &uri) | |
ThinClient (const string &uri, const string &id) | |
void | set_receiver (Receiver *) |
Receiver * | get_receiver () |
virtual void | publish (const Notification &e) |
virtual void | subscribe (const Filter &f) |
virtual void | unsubscribe (const Filter &f) |
virtual void | unsubscribe () |
virtual Notification * | get_notification () |
virtual NotificationSequence * | get_notification_sequence () |
virtual void | suspend () |
virtual void | resume () |
virtual void | shutdown () |
publisher.cc, and subscriber.cc.
|
construct a ThinClient connected to a given server the given URI must be a valid uri for an external (active) Siena server. |
|
construct a ThinClient connected to a given server, with the given ID the given URI must be a valid uri for an external (active) Siena server. The application must make sure that the ID of this client is unique |
|
receives a notification receives a notification. This method is synchronous, meaning that it suspends waiting for incoming notifications. Implements SienaPull. |
|
returns the receiver associated with this ThinClient |
|
publish a notification Implements SienaBase.
|
|
attaches a receiver to this interface a ThinClient must have a valid receiver in order to receive notifications. Notice that it is necessary to set a receiver only if the ThinClient is used to subscribe for notifications. If you use the ThinClient only to publish, then you don't need to set a receiver. Notice: the ThinClient does not manage a receiver. In particular, it does not destroy receivers associated with it. It is the responsibility of the application to create and destroy receivers. |
|
closes the interface to the Siena service Reimplemented from SienaBase. |
|
subscribes for a class of notifications Implements SienaPull. |
|
cancel all subscriptions Implements SienaPull. |
|
cancels subscriptions to notifications Implements SienaPull. |