#include <ConnectionEventService.h>
Public Member Functions | |
virtual | ~ConnectionEventService () |
obligatory vdtor | |
virtual void | addConnectEventListener (ConnectionEventListener *l) CLASSIC_CCA_PURE |
Register l as interested in post-notification of connections. | |
virtual void | addDisconnectEventListener (ConnectionEventListener *l) CLASSIC_CCA_PURE |
Register l as interested in pre-notification of disconnections. | |
virtual void | removeConnectEventListener (ConnectionEventListener *l) CLASSIC_CCA_PURE |
Remove l as interested in post-notification of connections. | |
virtual void | removeDisconnectEventListener (ConnectionEventListener *l) CLASSIC_CCA_PURE |
Remove l as interested in pre-notification of disconnections. |
Should be able to get and use one of these from the Services implementation during a setServices call.
The CCAT Event Bus model could conceivably be used to implement this, but this interface and its subsidiaries place much smaller burden on the framework writer. Further, with an asynchronous bus delivery mechanism it may be harder to guarantee the event order condition on the DisconnectingConnectionEvent.
From the CCAT event page: A publisher can send events directly to listeners without an intervening event channel. The ports can simply be connected together. This is an instance of a 1-to-n uses-to-provides connection, which is permitted by the CCA specification. Connecting multiple providers is also possible. The CCA specification allows general m-to-n connections between m uses ports and n provides ports.
We note that while possibly allowing it, the specification does not require or (presently, 8/2000) provide a standard way to allow MxN Port connections.
virtual classic::gov::cca::ConnectionEventService::~ConnectionEventService | ( | ) | [inline, virtual] |
virtual void classic::gov::cca::ConnectionEventService::addConnectEventListener | ( | ConnectionEventListener * | l | ) | [virtual] |
Register l as interested in post-notification of connections.
virtual void classic::gov::cca::ConnectionEventService::addDisconnectEventListener | ( | ConnectionEventListener * | l | ) | [virtual] |
Register l as interested in pre-notification of disconnections.
virtual void classic::gov::cca::ConnectionEventService::removeConnectEventListener | ( | ConnectionEventListener * | l | ) | [virtual] |
Remove l as interested in post-notification of connections.
virtual void classic::gov::cca::ConnectionEventService::removeDisconnectEventListener | ( | ConnectionEventListener * | l | ) | [virtual] |
Remove l as interested in pre-notification of disconnections.