MCPcopy Create free account
hub / github.com/secdev/scapy / next

Method next

scapy/layers/can.py:590–603  ·  view source on GitHub ↗

Implements the iterator protocol on a set of packets :return: Next readable CAN Packet from the specified file

(self)

Source from the content-addressed store, hash-verified

588 return name, filename
589
590 def next(self):
591 # type: () -> Packet
592 """Implements the iterator protocol on a set of packets
593
594 :return: Next readable CAN Packet from the specified file
595 """
596 try:
597 pkt = None
598 while pkt is None:
599 pkt = self.read_packet()
600 except EOFError:
601 raise StopIteration
602
603 return pkt
604 __next__ = next
605
606 def read_packet(self, size=CAN_MTU):

Callers

nothing calls this directly

Calls 1

read_packetMethod · 0.95

Tested by

no test coverage detected