hpimdm/InterfaceHPIM.py
def send_hello(self):
        """
        Send a new Hello message
        Include in it the HelloHoldTime and CheckpointSN
        """
        self.hello_timer.cancel()

        pim_payload = PacketHPIMHello()
        pim_payload.add_option(PacketHPIMHelloHoldtime(holdtime=4 * HELLO_PERIOD))

        with self.neighbors_lock:
            with self.sequencer_lock:
                with self.reliable_transmission_lock:
                    (bt, checkpoint_sn) = self.get_checkpoint_sn()
                    if bt == self.time_of_boot:
                        pim_payload.add_option(PacketHPIMHelloCheckpointSN(checkpoint_sn))

                ph = PacketHPIMHeader(pim_payload, boot_time=self.time_of_boot)
        packet = Packet(payload=ph)
        self.send(packet)

        # reschedule hello_timer
        self.hello_timer = Timer(HELLO_PERIOD, self.send_hello)
        self.hello_timer.start()

        Send a new Hello message
        Include in it the HelloHoldTime and CheckpointSN
        
Send a new Hello message
Include in it the HelloHoldTime and CheckpointSN
Send a new Hello message Include in it the HelloHoldTime and CheckpointSN
def send_hello(self):
        self.hello_timer.cancel()
        pim_payload = PacketHPIMHello()
        pim_payload.add_option(PacketHPIMHelloHoldtime(holdtime=4 * HELLO_PERIOD))
        with self.neighbors_lock:
            with self.sequencer_lock:
                with self.reliable_transmission_lock:
                    (bt, checkpoint_sn) = self.get_checkpoint_sn()
                    if bt == self.time_of_boot:
                        pim_payload.add_option(PacketHPIMHelloCheckpointSN(checkpoint_sn))
                ph = PacketHPIMHeader(pim_payload, boot_time=self.time_of_boot)
        packet = Packet(payload=ph)
        self.send(packet)
        self.hello_timer = Timer(HELLO_PERIOD, self.send_hello)
        self.hello_timer.start()
def send_hello ( self ) : self . hello_timer . cancel ( ) pim_payload = PacketHPIMHello ( ) pim_payload . add_option ( PacketHPIMHelloHoldtime ( holdtime = 4 * HELLO_PERIOD ) ) with self . neighbors_lock : with self . sequencer_lock : with self . reliable_transmission_lock : ( bt , checkpoint_sn ) = self . get_checkpoint_sn ( ) if bt == self . time_of_boot : pim_payload . add_option ( PacketHPIMHelloCheckpointSN ( checkpoint_sn ) ) ph = PacketHPIMHeader ( pim_payload , boot_time = self . time_of_boot ) packet = Packet ( payload = ph ) self . send ( packet ) self . hello_timer = Timer ( HELLO_PERIOD , self . send_hello ) self . hello_timer . start ( )
Send a new Hello message
Include in it the HelloHoldTime and CheckpointSN
Send a new Hello message Include in it the HelloHoldTime and CheckpointSN
"""
        Send a new Hello message
        Include in it the HelloHoldTime and CheckpointSN
        """ # reschedule hello_timer
self