code: def next (self):
          
          header, packet = self.read()
  
          if packet is None:
              raise StopIteration
  
          return header, packet
docs: Returns the next header and packet from this
          PCapStream. See read().