Changeset 12060 for source/ariba/CommunicationListener.h
- Timestamp:
- Jun 19, 2013, 11:05:49 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/CommunicationListener.h
r9684 r12060 44 44 #include "LinkProperties.h" 45 45 #include "DataMessage.h" 46 #include "ariba/overlay/SequenceNumber.h" 46 47 47 48 namespace ariba { 49 50 typedef ariba::overlay::SequenceNumber SequenceNumber; 48 51 49 52 // forward decl 50 53 namespace overlay { 51 54 class BaseOverlay; 55 class OverlayMsg; 52 56 } 53 57 … … 116 120 117 121 /** 122 * @DEPRECATED 123 * 118 124 * Called when a message is incoming 119 125 * @param msg The data message that is received … … 123 129 virtual void onMessage(const DataMessage& msg, const NodeID& remote, 124 130 const LinkID& lnk = LinkID::UNSPECIFIED); 131 132 133 /** 134 * NOTE: This interface is still unstable and may change in future releases. 135 * ---> Especially the parameter «overlay_msg» may be replaced or removed. 136 * 137 * Called when a message is incoming 138 * @param msg A shared buffer with the (serialized) payload 139 * @param remote The remote node that sent the message 140 * @param lnk The link id of the link where the message is received 141 * @param overlay_msg A pointer to the ariba internal Overlay Message 142 */ 143 virtual void onMessage(reboost::shared_buffer_t message, 144 const NodeID& remote, 145 const LinkID& lnk, 146 const SequenceNumber& seqnum, 147 const ariba::overlay::OverlayMsg* overlay_msg); 125 148 126 149 // --- dht functionality --- … … 133 156 virtual void onKeyValue( const Data& key, const vector<Data>& value ); 134 157 158 // --- ping pong (routed) --- 159 /** 160 * Called when a ping message was received. 161 * 162 * @param remote Node which sent the ping message 163 * @return bool Allows to send a pong message (default: true) 164 */ 165 virtual bool onPing(const NodeID& remote); 166 167 /** 168 * Called when a ping message is lost. 169 * 170 * NOTE: A ping message could also get lost without notice. 171 * 172 * @param remote Node to which the ping message was sent 173 */ 174 virtual void onPingLost(const NodeID& remote); 175 176 /** 177 * Called when a pong message was received. 178 * 179 * @param remote Node which sent the pong message 180 */ 181 virtual void onPong(const NodeID& remote); 135 182 }; 136 183
Note:
See TracChangeset
for help on using the changeset viewer.