(self)
return pkt
impliment the iterator protocol on a set of packets in a pcap file
impliment the iterator protocol on a set of packets in a pcap file
impliment the iterator protocol on a set of packets in a pcap file
def next(self):
        """impliment the iterator protocol on a set of packets in a pcap file"""
        pkt = self.read_packet()
        if pkt == None:
            raise StopIteration
        return pkt
def next ( self ) : pkt = self . read_packet ( ) if pkt == None : raise StopIteration return pkt