Ignore:
Timestamp:
Jul 21, 2009, 1:54:55 PM (15 years ago)
Author:
Christoph Mayer
Message:

begin merge back from relay branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/modules/OverlayInterface.h

    r3718 r5151  
    128128
    129129        /**
     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        /**
    130142         * Returns the nodes known to this overlay.
    131143         *
     
    139151        virtual NodeList getKnownNodes() const = 0;
    140152
     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
    141161        //--- functions from CommunicationListener that we _can_ use as overlay ---
    142162
    143163        /// @see CommunicationListener
    144164        virtual void onLinkUp(const LinkID& lnk, const NodeID& remote);
     165
    145166        /// @see CommunicationListener
    146167        virtual void onLinkDown(const LinkID& lnk, const NodeID& remote);
     168
    147169        /// @see CommunicationListener
    148170        virtual void onLinkChanged(const LinkID& lnk, const NodeID& remote);
     171
    149172        /// @see CommunicationListener
    150173        virtual void onLinkFail(const LinkID& lnk, const NodeID& remote);
     174
    151175        /// @see CommunicationListener
    152176        virtual void onLinkQoSChanged(const LinkID& lnk, const NodeID& remote,
    153177                        const LinkProperties& prop);
     178
    154179        /// @see CommunicationListener
    155180        virtual bool onLinkRequest(const NodeID& remote, const DataMessage& msg);
     181
    156182        /// @see CommunicationListener
    157183        virtual void onMessage(const DataMessage& msg, const NodeID& remote,
     
    162188
    163189protected:
    164 
    165190        /// Reference to an active base overlay
    166191        BaseOverlay& baseoverlay;
Note: See TracChangeset for help on using the changeset viewer.