hpimdm/Neighbor.py
def recv_ack(self, my_boot_time, neighbor_boot_time, my_snapshot_sn, neighbor_snapshot):
        """
        Decide if a received Ack should be processed... this decision is based on the SNs obtained during the Sync
        process with this neighbor
        """
        if neighbor_boot_time < self.time_of_boot:
            return False
        elif neighbor_boot_time > self.time_of_boot:
            self.time_of_boot = neighbor_boot_time
            self.neighbor_snapshot_sn = 0
            self.start_sync_process()
            return False

        return self.neighbor_state != Unknown and self.current_sync_sn > 0 and \
               self.my_snapshot_boot_time == my_boot_time and self.time_of_boot == neighbor_boot_time and\
               self.my_snapshot_sequencer == my_snapshot_sn and self.neighbor_snapshot_sn == neighbor_snapshot

        Decide if a received Ack should be processed... this decision is based on the SNs obtained during the Sync
        process with this neighbor
        
Decide if a received Ack should be processed... this decision is based on the SNs obtained during the Sync
process with this neighbor
Decide if a received Ack should be processed ... this decision is based on the SNs obtained during the Sync process with this neighbor
def recv_ack(self, my_boot_time, neighbor_boot_time, my_snapshot_sn, neighbor_snapshot):
        if neighbor_boot_time < self.time_of_boot:
            return False
        elif neighbor_boot_time > self.time_of_boot:
            self.time_of_boot = neighbor_boot_time
            self.neighbor_snapshot_sn = 0
            self.start_sync_process()
            return False
        return self.neighbor_state != Unknown and self.current_sync_sn > 0 and \
               self.my_snapshot_boot_time == my_boot_time and self.time_of_boot == neighbor_boot_time and\
               self.my_snapshot_sequencer == my_snapshot_sn and self.neighbor_snapshot_sn == neighbor_snapshot
def recv_ack ( self , my_boot_time , neighbor_boot_time , my_snapshot_sn , neighbor_snapshot ) : if neighbor_boot_time < self . time_of_boot : return False elif neighbor_boot_time > self . time_of_boot : self . time_of_boot = neighbor_boot_time self . neighbor_snapshot_sn = 0 self . start_sync_process ( ) return False return self . neighbor_state != Unknown and self . current_sync_sn > 0 and self . my_snapshot_boot_time == my_boot_time and self . time_of_boot == neighbor_boot_time and self . my_snapshot_sequencer == my_snapshot_sn and self . neighbor_snapshot_sn == neighbor_snapshot
Decide if a received Ack should be processed... this decision is based on the SNs obtained during the Sync
process with this neighbor
Decide if a received Ack should be processed ... this decision is based on the SNs obtained during the Sync process with this neighbor
"""
        Decide if a received Ack should be processed... this decision is based on the SNs obtained during the Sync
        process with this neighbor
        """
self
my_boot_time
neighbor_boot_time
my_snapshot_sn
neighbor_snapshot