Library: RemotingNG
Package: Transport
Header: Poco/RemotingNG/EventListener.h
The EventListener class extends the Listener interface with methods for managing event subscriptions on the client side.
Direct Base Classes: Listener
All Base Classes: Poco::RefCountedObject, Listener
Known Derived Classes: Poco::UPnP::GENA::Listener
Member Functions: subscribeToEvents, unsubscribeFromEvents
Inherited Functions: createURI, duplicate, endPoint, handlesURI, protocol, referenceCount, registerObject, release, start, stop, unregisterObject
typedef Poco::AutoPtr < EventListener > Ptr;
EventListener(
const std::string & endPoint
);
Creates an EventListener.
virtual ~EventListener();
Destroys the EventListener.
virtual void subscribeToEvents(
EventSubscriber::Ptr pEventSubscriber
) = 0;
Register an EventSubscriber to the EventListener.
The EventListener is responsible for sending a protocol-specific subscription request to the server so that events will be delivered from the server to the EventListener.
If necessary for the event delivery protocol, the EventListener is also responsible for assigning a unique ID (or URI) to the registered EventSubscriber instance.
virtual void unsubscribeFromEvents(
EventSubscriber::Ptr pEventSubscriber
) = 0;
Unregister an EventSubscriber from the EventListener.
The EventListener is responsible for sending a protocol-specific unsubscription request to the server so that the server will no longer deliver events for this EventSubscriber.