(1 . 4)(1 . 4)
64 VERSION = "9984"
65 VERSION = "9983"
66
67 import os
68 import select
(14 . 8)(14 . 6)
70 from client import Client
71 from channel import Channel
72 from station import Station
73 from station import EMBARGO_INTERVAL
74 from station import RUBBISH_INTERVAL
75 from message import Message
76 from infosec import PACKET_SIZE
77 import imp
(201 . 12)(199 . 12)
79 last_aliveness_check = now
80
81 # clear embargo queue if enough time has elapsed
82 if last_embargo_queue_check + EMBARGO_INTERVAL < now:
83 if last_embargo_queue_check + int(self.station.state.get_knob('embargo_interval')) < now:
84 self.station.check_embargo_queue()
85 last_embargo_queue_check = now
86
87 # spray rubbish
88 if last_rubbish_dispatch + RUBBISH_INTERVAL < now:
89 if last_rubbish_dispatch + int(self.station.state.get_knob('rubbish_interval')) < now:
90 self.station.send_rubbish()
91 last_rubbish_dispatch = now
92