- Timestamp:
- Feb 10, 2009, 5:41:47 PM (16 years ago)
- Location:
- source/ariba
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/Makefile.am
r2392 r2393 53 53 tidy/LinkProperties.h \ 54 54 tidy/TidyMessage.h \ 55 tidy/DataMessage.h \ 55 56 tidy/Module.h \ 56 57 tidy/Name.h \ … … 71 72 tidy/TidyMessage.cpp \ 72 73 tidy/TidyMessage.h \ 74 tidy/DataMessage.cpp \ 75 tidy/DataMessage.h \ 73 76 tidy/Module.cpp \ 74 77 tidy/Module.h \ -
source/ariba/tidy/Node.cpp
r2392 r2393 178 178 179 179 LinkID Node::establishLink(const NodeID& nid, const ServiceID& sid, 180 const LinkProperties& req, const Message*msg) {180 const LinkProperties& req, const DataMessage& msg) { 181 181 return context->getOverlay().establishLink(nid, sid); 182 182 } … … 186 186 } 187 187 188 seqnum_t Node::sendMessage( Message*msg, const NodeID& nid,188 seqnum_t Node::sendMessage(const DataMessage& msg, const NodeID& nid, 189 189 const ServiceID& sid, const LinkProperties& req) { 190 return context->getOverlay().sendMessage( msg, nid, sid);191 } 192 193 seqnum_t Node::sendMessage( Message*msg, const LinkID& lnk) {194 return context->getOverlay().sendMessage( msg, lnk);190 return context->getOverlay().sendMessage((Message*)msg, nid, sid); 191 } 192 193 seqnum_t Node::sendMessage(const DataMessage& msg, const LinkID& lnk) { 194 return context->getOverlay().sendMessage((Message*)msg, lnk); 195 195 } 196 196 -
source/ariba/tidy/Node.h
r2392 r2393 53 53 #include "AribaModule.h" 54 54 #include "TidyCommunicationListener.h" 55 #include " TidyMessage.h"55 #include "DataMessage.h" 56 56 57 57 namespace ariba { … … 197 197 LinkID establishLink(const NodeID& nid, const ServiceID& sid, 198 198 const LinkProperties& req = LinkProperties::DEFAULT, 199 const Message* msg = NULL);199 const DataMessage& msg = DataMessage::UNSPECIFIED); 200 200 201 201 /** … … 223 223 * @return A sequence number 224 224 */ 225 seqnum_t sendMessage( Message*msg, const NodeID& nid, const ServiceID& sid,225 seqnum_t sendMessage(const DataMessage& msg, const NodeID& nid, const ServiceID& sid, 226 226 const LinkProperties& req = LinkProperties::DEFAULT); 227 227 … … 234 234 * @param lnk The link to be used for sending the message 235 235 */ 236 seqnum_t sendMessage( Message*msg, const LinkID& lnk);236 seqnum_t sendMessage(const DataMessage& msg, const LinkID& lnk); 237 237 238 238 // --- communication listeners --- -
source/ariba/tidy/TidyCommunicationListener.cpp
r2392 r2393 71 71 72 72 // dummy 73 bool CommunicationListener::onLinkRequest(const NodeID& remote, Message* msg) { 73 bool CommunicationListener::onLinkRequest(const NodeID& remote, 74 const DataMessage& msg) { 74 75 return false; 75 76 } 76 77 77 78 // dummy 78 void CommunicationListener::onMessage( Message* msg, const NodeID& remote,79 const LinkID& lnk) {79 void CommunicationListener::onMessage(const DataMessage& msg, 80 const NodeID& remote, const LinkID& lnk) { 80 81 } 81 82 82 83 // dummy 83 void CommunicationListener::onMessageSent(seqnum_t seq_num, bool failed, Message* msg) { 84 void CommunicationListener::onMessageSent(seqnum_t seq_num, bool failed, 85 const DataMessage& msg) { 84 86 } 85 87 -
source/ariba/tidy/TidyCommunicationListener.h
r2392 r2393 49 49 #include "Identifiers.h" 50 50 #include "LinkProperties.h" 51 #include "DataMessage.h" 51 52 52 53 namespace ariba { … … 77 78 // --- service specific events --- 78 79 79 virtual bool onLinkRequest(const NodeID& remote, Message*msg);80 virtual bool onLinkRequest(const NodeID& remote, const DataMessage& msg); 80 81 81 82 // --- general receive method --- 82 83 83 virtual void onMessage( Message*msg, const NodeID& remote,84 virtual void onMessage(const DataMessage& msg, const NodeID& remote, 84 85 const LinkID& lnk = LinkID::UNSPECIFIED); 85 86 86 virtual void onMessageSent(seqnum_t seq_num, bool failed, Message* msg = NULL); 87 virtual void onMessageSent(seqnum_t seq_num, bool failed, 88 const DataMessage& msg = DataMessage::UNSPECIFIED); 87 89 88 90 // --- dht functionality --- -
source/ariba/tidy/ariba.h
r2392 r2393 47 47 #include "AribaModule.h" 48 48 #include "LinkProperties.h" 49 #include " TidyMessage.h"49 #include "DataMessage.h" 50 50 #include "TidyCommunicationListener.h" 51 51 #include "Name.h"
Note:
See TracChangeset
for help on using the changeset viewer.