#include <source/ariba/communication/CommunicationEvents.h>
Public Member Functions | |
CommunicationEvents () | |
virtual | ~CommunicationEvents () |
Protected Member Functions | |
virtual bool | onLinkRequest (const LinkID &id, const NetworkLocator *local, const NetworkLocator *remote) |
virtual void | onLinkUp (const LinkID &id, const NetworkLocator *local, const NetworkLocator *remote) |
virtual void | onLinkDown (const LinkID &id, const NetworkLocator *local, const NetworkLocator *remote) |
virtual void | onLinkChanged (const LinkID &id, const NetworkLocator *oldlocal, const NetworkLocator *newlocal, const NetworkLocator *oldremote, const NetworkLocator *newremote) |
virtual void | onLinkFail (const LinkID &id, const NetworkLocator *local, const NetworkLocator *remote) |
virtual void | onLinkQoSChanged (const LinkID &id, const NetworkLocator *local, const NetworkLocator *remote, const QoSParameterSet &qos) |
Friends | |
class | BaseCommunication |
Definition at line 53 of file CommunicationEvents.h.
ariba::communication::CommunicationEvents::CommunicationEvents | ( | ) |
Definition at line 44 of file CommunicationEvents.cpp.
ariba::communication::CommunicationEvents::~CommunicationEvents | ( | ) | [virtual] |
Definition at line 47 of file CommunicationEvents.cpp.
bool ariba::communication::CommunicationEvents::onLinkRequest | ( | const LinkID & | id, | |
const NetworkLocator * | local, | |||
const NetworkLocator * | remote | |||
) | [protected, virtual] |
This method is called when a link request is received. If this method returns true, a the link request is processed and a new link will be established.
id | The provisional link identifier of the new link |
Reimplemented in ariba::overlay::BaseOverlay.
Definition at line 50 of file CommunicationEvents.cpp.
Referenced by ariba::communication::BaseCommunication::receiveMessage().
void ariba::communication::CommunicationEvents::onLinkUp | ( | const LinkID & | id, | |
const NetworkLocator * | local, | |||
const NetworkLocator * | remote | |||
) | [protected, virtual] |
This method is called when a link is established and can be used to send messages.
id | The link id of the established link |
Reimplemented in ariba::overlay::BaseOverlay.
Definition at line 54 of file CommunicationEvents.cpp.
Referenced by ariba::communication::BaseCommunication::receiveMessage().
void ariba::communication::CommunicationEvents::onLinkDown | ( | const LinkID & | id, | |
const NetworkLocator * | local, | |||
const NetworkLocator * | remote | |||
) | [protected, virtual] |
This method is called when a link is dropped.
id | The link identifier of the dropped link |
Reimplemented in ariba::overlay::BaseOverlay.
Definition at line 57 of file CommunicationEvents.cpp.
Referenced by ariba::communication::BaseCommunication::dropLink(), and ariba::communication::BaseCommunication::receiveMessage().
void ariba::communication::CommunicationEvents::onLinkChanged | ( | const LinkID & | id, | |
const NetworkLocator * | oldlocal, | |||
const NetworkLocator * | newlocal, | |||
const NetworkLocator * | oldremote, | |||
const NetworkLocator * | newremote | |||
) | [protected, virtual] |
This method is called when a link has been changed because of interface failure, mobility, etc. in this case messages can still be sent over the link -- connectivity is still provided with different link properties.
id | The link identifier of the changed link |
Reimplemented in ariba::overlay::BaseOverlay.
Definition at line 61 of file CommunicationEvents.cpp.
Referenced by ariba::communication::BaseCommunication::receiveMessage().
void ariba::communication::CommunicationEvents::onLinkFail | ( | const LinkID & | id, | |
const NetworkLocator * | local, | |||
const NetworkLocator * | remote | |||
) | [protected, virtual] |
Reimplemented in ariba::overlay::BaseOverlay.
Definition at line 64 of file CommunicationEvents.cpp.
virtual void ariba::communication::CommunicationEvents::onLinkQoSChanged | ( | const LinkID & | id, | |
const NetworkLocator * | local, | |||
const NetworkLocator * | remote, | |||
const QoSParameterSet & | qos | |||
) | [protected, virtual] |
Reimplemented in ariba::overlay::BaseOverlay.
friend class BaseCommunication [friend] |
Definition at line 55 of file CommunicationEvents.h.