Changeset 5644 for source/ariba


Ignore:
Timestamp:
Aug 4, 2009, 11:16:12 AM (15 years ago)
Author:
mies
Message:
 
Location:
source/ariba/overlay/modules/chord
Files:
2 edited

Legend:

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

    r5642 r5644  
    5959        this->table = new chord_routing_table(_nodeid, 2);
    6060        orphan_removal_counter = 0;
     61        discovery_count = 0;
    6162        stabilize_counter = 0;
    6263        stabilize_finger = 0;
     
    110111        cmsg.encapsulate(&dmsg);
    111112        msg.encapsulate(&cmsg);
    112         this->onMessage(&msg, NodeID::UNSPECIFIED, LinkID::UNSPECIFIED);
     113        discovery_count++;
     114        const route_item* item = (*table)[ discovery_count % table->size() ];
     115        if (item!=NULL && !item->info.isUnspecified()) send(&msg,item->info);
     116//      this->onMessage(&msg, NodeID::UNSPECIFIED, LinkID::UNSPECIFIED);
    113117}
    114118
  • source/ariba/overlay/modules/chord/Chord.h

    r5624 r5644  
    7878        vector<LinkID> bootstrapLinks;
    7979        vector<NodeID> pending;
     80        int discovery_count;
    8081
    8182        // helper: sets up a link using the "base overlay"
Note: See TracChangeset for help on using the changeset viewer.