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

Method recv

scapy/supersocket.py:644–650  ·  view source on GitHub ↗
(self, x=None, **kwargs)

Source from the content-addressed store, hash-verified

642 return sockets
643
644 def recv(self, x=None, **kwargs):
645 # type: (Optional[int], Any) -> Optional[Packet]
646 try:
647 pkt = next(self.iter)
648 return pkt.__class__(bytes(pkt), **kwargs)
649 except StopIteration:
650 raise EOFError
651
652 def close(self):
653 # type: () -> None

Callers 5

recv_rawMethod · 0.45
recv_rawMethod · 0.45
recvMethod · 0.45
recvMethod · 0.45
recvMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected