Пример #1
0
 def __init__(self, master, servant,
         resend_timeout=100):
     super(StopAndWait, self).__init__(master, servant)
     self.timer = mint.timer(resend_timeout, self.resend)
     self.acked = True
     self.sending_seq = 0
     self.expecting_seq = 0
Пример #2
0
 def __init__(self, master, servant, resend_timeout=100):
     super(StopAndWait, self).__init__(master, servant)
     self.timer = mint.timer(resend_timeout, self.resend)
     self.acked = True
     self.sending_seq = 0
     self.expecting_seq = 0
Пример #3
0
 def timer(self, n_laps, event):
     timer = mint.timer(n_laps, self.events, event)
     event.timer = timer
     timer.start()
     return timer
Пример #4
0
 def timer(self, n_laps, event):
     timer = mint.timer(n_laps, self.events, event)
     event.timer = timer
     timer.start()
     return timer