MCPcopy Index your code
hub / github.com/secdev/scapy / recv

Method recv

scapy/layers/can.py:695–701  ·  view source on GitHub ↗

Emulation of SuperSocket

(self, size=CAN_MTU)

Source from the content-addressed store, hash-verified

693 return PacketList(res, name=os.path.basename(self.filename))
694
695 def recv(self, size=CAN_MTU):
696 # type: (int) -> Optional[Packet]
697 """Emulation of SuperSocket"""
698 try:
699 return self.read_packet(size=size)
700 except EOFError:
701 return None
702
703 def fileno(self):
704 # type: () -> int

Callers

nothing calls this directly

Calls 1

read_packetMethod · 0.95

Tested by

no test coverage detected