#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.
ThinClient::ThinClient | ( | const string & | uri | ) |
construct a ThinClient connected to a given server
the given URI must be a valid uri for an external (active) Siena server.
ThinClient::ThinClient | ( | const string & | uri, | |
const string & | id | |||
) |
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
void ThinClient::set_receiver | ( | Receiver * | ) |
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.
Receiver* ThinClient::get_receiver | ( | ) |
returns the receiver associated with this ThinClient
virtual void ThinClient::publish | ( | const Notification & | e | ) | [virtual] |
virtual void ThinClient::subscribe | ( | const Filter & | f | ) | [virtual] |
subscribes for a class of notifications
Implements SienaPull.
virtual void ThinClient::unsubscribe | ( | const Filter & | f | ) | [virtual] |
cancels subscriptions to notifications
Implements SienaPull.
virtual void ThinClient::unsubscribe | ( | ) | [virtual] |
cancel all subscriptions
Implements SienaPull.
virtual Notification* ThinClient::get_notification | ( | ) | [virtual] |
receives a notification
receives a notification. This method is synchronous, meaning that it suspends waiting for incoming notifications.
Implements SienaPull.
virtual void ThinClient::shutdown | ( | ) | [virtual] |