Changeset 2393 for source/ariba


Ignore:
Timestamp:
Feb 10, 2009, 5:41:47 PM (16 years ago)
Author:
mies
Message:

added MessageData wrapper

Location:
source/ariba
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/Makefile.am

    r2392 r2393  
    5353  tidy/LinkProperties.h \
    5454  tidy/TidyMessage.h \
     55  tidy/DataMessage.h \
    5556  tidy/Module.h \
    5657  tidy/Name.h \
     
    7172  tidy/TidyMessage.cpp \
    7273  tidy/TidyMessage.h \
     74  tidy/DataMessage.cpp \
     75  tidy/DataMessage.h \
    7376  tidy/Module.cpp \
    7477  tidy/Module.h \
  • source/ariba/tidy/Node.cpp

    r2392 r2393  
    178178
    179179LinkID Node::establishLink(const NodeID& nid, const ServiceID& sid,
    180                 const LinkProperties& req, const Message* msg) {
     180                const LinkProperties& req, const DataMessage& msg) {
    181181        return context->getOverlay().establishLink(nid, sid);
    182182}
     
    186186}
    187187
    188 seqnum_t Node::sendMessage(Message* msg, const NodeID& nid,
     188seqnum_t Node::sendMessage(const DataMessage& msg, const NodeID& nid,
    189189                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
     193seqnum_t Node::sendMessage(const DataMessage& msg, const LinkID& lnk) {
     194        return context->getOverlay().sendMessage((Message*)msg, lnk);
    195195}
    196196
  • source/ariba/tidy/Node.h

    r2392 r2393  
    5353#include "AribaModule.h"
    5454#include "TidyCommunicationListener.h"
    55 #include "TidyMessage.h"
     55#include "DataMessage.h"
    5656
    5757namespace ariba {
     
    197197        LinkID establishLink(const NodeID& nid, const ServiceID& sid,
    198198                        const LinkProperties& req = LinkProperties::DEFAULT,
    199                         const Message* msg = NULL);
     199                        const DataMessage& msg = DataMessage::UNSPECIFIED);
    200200
    201201        /**
     
    223223         * @return A sequence number
    224224         */
    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,
    226226                        const LinkProperties& req = LinkProperties::DEFAULT);
    227227
     
    234234         * @param lnk The link to be used for sending the message
    235235         */
    236         seqnum_t sendMessage(Message* msg, const LinkID& lnk);
     236        seqnum_t sendMessage(const DataMessage& msg, const LinkID& lnk);
    237237
    238238        // --- communication listeners ---
  • source/ariba/tidy/TidyCommunicationListener.cpp

    r2392 r2393  
    7171
    7272// dummy
    73 bool CommunicationListener::onLinkRequest(const NodeID& remote, Message* msg) {
     73bool CommunicationListener::onLinkRequest(const NodeID& remote,
     74                const DataMessage& msg) {
    7475        return false;
    7576}
    7677
    7778// dummy
    78 void CommunicationListener::onMessage(Message* msg, const NodeID& remote,
    79                 const LinkID& lnk) {
     79void CommunicationListener::onMessage(const DataMessage& msg,
     80                const NodeID& remote, const LinkID& lnk) {
    8081}
    8182
    8283// dummy
    83 void CommunicationListener::onMessageSent(seqnum_t seq_num, bool failed, Message* msg) {
     84void CommunicationListener::onMessageSent(seqnum_t seq_num, bool failed,
     85                const DataMessage& msg) {
    8486}
    8587
  • source/ariba/tidy/TidyCommunicationListener.h

    r2392 r2393  
    4949#include "Identifiers.h"
    5050#include "LinkProperties.h"
     51#include "DataMessage.h"
    5152
    5253namespace ariba {
     
    7778        // --- service specific events ---
    7879
    79         virtual bool onLinkRequest(const NodeID& remote, Message* msg);
     80        virtual bool onLinkRequest(const NodeID& remote, const DataMessage& msg);
    8081
    8182        // --- general receive method ---
    8283
    83         virtual void onMessage(Message* msg, const NodeID& remote,
     84        virtual void onMessage(const DataMessage& msg, const NodeID& remote,
    8485                        const LinkID& lnk = LinkID::UNSPECIFIED);
    8586
    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);
    8789
    8890        // --- dht functionality ---
  • source/ariba/tidy/ariba.h

    r2392 r2393  
    4747#include "AribaModule.h"
    4848#include "LinkProperties.h"
    49 #include "TidyMessage.h"
     49#include "DataMessage.h"
    5050#include "TidyCommunicationListener.h"
    5151#include "Name.h"
Note: See TracChangeset for help on using the changeset viewer.