Changeset 7535 for source/ariba/CommunicationListener.h
- Timestamp:
- Feb 5, 2010, 9:08:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/CommunicationListener.h
r7468 r7535 61 61 62 62 public: 63 static CommunicationListener DEFAULT; 63 static CommunicationListener DEFAULT; //< default implementation 64 64 65 65 protected: 66 66 67 /** 68 * Construct a communication listener 69 */ 67 70 CommunicationListener(); 71 72 /** 73 * Destruct a communication listener 74 */ 68 75 virtual ~CommunicationListener(); 69 76 70 77 // --- link events --- 71 78 79 /** 80 * Event called when a link goes up 81 * @param lnk The id of the link 82 * @param remote The remote node where the link ends 83 */ 72 84 virtual void onLinkUp(const LinkID& lnk, const NodeID& remote); 73 85 86 /** 87 * Event called when a link goes down 88 * @param lnk The id of the link 89 * @param remote The remote node where the link ends 90 */ 74 91 virtual void onLinkDown(const LinkID& lnk, const NodeID& remote); 75 92 93 /** 94 * Event called when a link has changed, 95 * e.g. through mobility 96 * @param lnk The id of the link 97 * @param remote The remote node where the link ends 98 */ 76 99 virtual void onLinkChanged(const LinkID& lnk, const NodeID& remote); 77 100 101 /** 102 * Event called when a link has failed 103 * @param lnk The id of the link 104 * @param remote The remote node where the link ends 105 */ 78 106 virtual void onLinkFail(const LinkID& lnk, const NodeID& remote); 79 107 108 /** 109 * Request from remote node to open up a link 110 * @param remote The remote node that requests the new link 111 */ 80 112 virtual bool onLinkRequest(const NodeID& remote); 81 113 82 114 // --- general receive method --- 83 115 116 /** 117 * Called when a message is incoming 118 * @param msg The data message that is received 119 * @param remote The remote node that sent the message 120 * @param lnk The link id of the link where the message is received 121 */ 84 122 virtual void onMessage(const DataMessage& msg, const NodeID& remote, 85 123 const LinkID& lnk = LinkID::UNSPECIFIED); … … 87 125 // --- dht functionality --- 88 126 127 /** 128 * Called when a key has been resolved in the DHT 129 * @param key The key that was requested 130 * @param value the data items the key was resolved to 131 */ 89 132 virtual void onKeyValue( const Data& key, const vector<Data>& value ); 90 133
Note:
See TracChangeset
for help on using the changeset viewer.