Lines Matching refs:self
33 def __init__(self, args, check_function, recvif=None):
34 threading.Thread.__init__(self)
36 self._args = args
38 self._recvif = recvif
40 self._recvif = args.recvif[0]
41 self._check_function = check_function
42 self.foundCorrectPacket = False
44 self.start()
46 def _checkPacket(self, packet):
47 ret = self._check_function(self._args, packet)
49 self.foundCorrectPacket = True
52 def run(self):
53 self.packets = sp.sniff(iface=self._recvif,
54 stop_filter=self._checkPacket, timeout=3)