Changeset 5718 for source


Ignore:
Timestamp:
Aug 5, 2009, 4:31:21 PM (15 years ago)
Author:
mies
Message:
 
Location:
source/ariba
Files:
2 edited

Legend:

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

    r5717 r5718  
    108108        dmsg.setTTL((uint8_t) ttl);
    109109        cmsg.encapsulate(&dmsg);
    110         discovery_count++;
    111         if (discovery_count<0) discovery_count = 0;
    112         const route_item* item = (*table)[ discovery_count % table->size() ];
    113         if (item!=NULL && !item->info.isUnspecified()) send(&cmsg,item->info);
     110
     111        // get next hop
     112        const route_item* item = table->get_next_hop(destination);
     113        if (item!=NULL && !item->info.isUnspecified()) send(&cmsg, item->info);
    114114}
    115115
     
    292292        M* m = msg.getMessage()->convert<ChordMessage> ();
    293293        if (m == NULL) return;
    294 
    295         // drop-self messages
    296         if (m->getSource() == nodeid ) {
    297                 delete m;
    298                 return;
    299         }
    300294
    301295        // handle messages
  • source/ariba/utility/transport/tcpip/tcpip.cpp

    r5698 r5718  
    5454
    5555tcpip::~tcpip() {
    56 
     56        if (running) stop();
    5757}
    5858
Note: See TracChangeset for help on using the changeset viewer.