NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 4538


Ignore:
Timestamp:
Oct 9, 2009, 6:40:59 PM (8 years ago)
Author:
stud-lenk
Message:

Do a networknotification() when multicast peers have been added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ntlp/branches/20090723-multicast/src/ntlp_statemodule_querier.cpp

    r4531 r4538  
    10391039      if (r_entry->get_state() == qn_established) {
    10401040        if (r_entry->is_multicast_QNode()) {
    1041           if ( r_entry->get_new_multicast_peers_added() )
    1042           {
    1043             DLog(param.name, "New multicast peers were added, notifying NSLP (not yet implemented)");
    1044             // TODO MULTICAST:
    1045             // We have to notify the NSLP about the new multicast peer.
    1046             // As commented in http://projekte.tm.uka.de/trac/NSIS/ticket/126
    1047             // we should indicate that Rerouting occurred.
    1048           }
    10491041          DLog(param.name, "This node is a multicasting QN in state ESTABLISHED. Purging unresponsive peers now.");
    10501042          r_entry->purge_multicast_peers();
     1043
     1044          // In case multicast peers have been added in this Query/Response cycle
     1045          // the NSLP needs to get notified (for instance for triggering a new handshake on NSLP layer)
     1046          if ( r_entry->get_new_multicast_peers_added() )
     1047          {
     1048            DLog(param.name, "New multicast peers were added, notifying NSLP about a Routing Status Change");
     1049            // NOTE: networknotification evaluates the routing entry's SII handle, which
     1050            //       is allways ZERO for multicast because there is no designated peer.
     1051            networknotification(r_key, r_entry, APIMsg::route_changed_status_good, true)
     1052          }
    10511053        } else {
    10521054          // Usually this should NEVER happen. If this is not a multicast QNode
Note: See TracChangeset for help on using the changeset viewer.