Changeset 5151 for source/ariba/overlay/modules/OverlayInterface.h
- Timestamp:
- Jul 21, 2009, 1:54:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/OverlayInterface.h
r3718 r5151 128 128 129 129 /** 130 * Routes a message to a given node by using an existing link. 131 * 132 * TODO: This is a hack. This method allows the BaseOverlay class to 133 * use overlay signaling links to transfer data for relaying 134 * 135 * @param node The destination node. 136 * @param link An established link 137 * @param msg The message to be sent. 138 */ 139 virtual void routeMessage(const NodeID& node, const LinkID& link, Message* msg) = 0; 140 141 /** 130 142 * Returns the nodes known to this overlay. 131 143 * … … 139 151 virtual NodeList getKnownNodes() const = 0; 140 152 153 /** 154 * Returns the link id of the next hop a route message would take. 155 * 156 * @param id The destination node id 157 * @return The link id of the next hop 158 */ 159 virtual const LinkID& getNextLinkId( const NodeID& id ) const = 0; 160 141 161 //--- functions from CommunicationListener that we _can_ use as overlay --- 142 162 143 163 /// @see CommunicationListener 144 164 virtual void onLinkUp(const LinkID& lnk, const NodeID& remote); 165 145 166 /// @see CommunicationListener 146 167 virtual void onLinkDown(const LinkID& lnk, const NodeID& remote); 168 147 169 /// @see CommunicationListener 148 170 virtual void onLinkChanged(const LinkID& lnk, const NodeID& remote); 171 149 172 /// @see CommunicationListener 150 173 virtual void onLinkFail(const LinkID& lnk, const NodeID& remote); 174 151 175 /// @see CommunicationListener 152 176 virtual void onLinkQoSChanged(const LinkID& lnk, const NodeID& remote, 153 177 const LinkProperties& prop); 178 154 179 /// @see CommunicationListener 155 180 virtual bool onLinkRequest(const NodeID& remote, const DataMessage& msg); 181 156 182 /// @see CommunicationListener 157 183 virtual void onMessage(const DataMessage& msg, const NodeID& remote, … … 162 188 163 189 protected: 164 165 190 /// Reference to an active base overlay 166 191 BaseOverlay& baseoverlay;
Note:
See TracChangeset
for help on using the changeset viewer.