Ignore:
Timestamp:
Sep 25, 2009, 2:30:33 PM (15 years ago)
Author:
mies
Message:

added basic DHT functionality (untested)

Location:
source/ariba/overlay/modules/chord
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/modules/chord/Chord.cpp

    r6198 r6266  
    181181        if (item == NULL || item->info.isUnspecified()) return EndpointDescriptor::UNSPECIFIED();
    182182        return baseoverlay.getEndpointDescriptor(item->info);
     183}
     184
     185/// @see OverlayInterface.h
     186bool Chord::isClosestNodeTo( const NodeID& node ) {
     187        return table->is_closest_to(node);
    183188}
    184189
  • source/ariba/overlay/modules/chord/Chord.h

    r5876 r6266  
    123123
    124124        /// @see OverlayInterface.h
     125        virtual bool isClosestNodeTo( const NodeID& node );
     126
     127        /// @see OverlayInterface.h
    125128        virtual NodeList getKnownNodes(bool deep = true) const;
    126129
Note: See TracChangeset for help on using the changeset viewer.