(self)
Sniff traffic with the given filter.
            If sniff_filter is not set, an exception is raised
Sniff traffic with the given filter.
            If sniff_filter is not set, an exception is raised
Sniff traffic with the given filter . If sniff_filter is not set an exception is raised
def traffic_sniffer(self):
        """ Sniff traffic with the given filter.
            If sniff_filter is not set, an exception is raised
        """
        if self.sniff_filter is None:
            raise NotImplementedError, "sniff_filter not initialized!"

        sniff(filter=self.sniff_filter, store=0, prn=self.dump,
                    stopper=self.stop_callback, stopperTimeout=3)
def traffic_sniffer ( self ) : if self . sniff_filter is None : raise NotImplementedError , "sniff_filter not initialized!" sniff ( filter = self . sniff_filter , store = 0 , prn = self . dump , stopper = self . stop_callback , stopperTimeout = 3 )