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

Method recv_raw

test/testsocket.py:124–127  ·  view source on GitHub ↗

Returns a tuple containing (cls, pkt_data, time)

(self, x=MTU)

Source from the content-addressed store, hash-verified

122 return len(sx)
123
124 def recv_raw(self, x=MTU):
125 # type: (int) -> Tuple[Optional[Type[Packet]], Optional[bytes], Optional[float]] # noqa: E501
126 """Returns a tuple containing (cls, pkt_data, time)"""
127 return self.basecls, self.ins.recv(0), time.time()
128
129 @staticmethod
130 def select(sockets, remain=conf.recv_poll_rate):

Callers

nothing calls this directly

Calls 1

recvMethod · 0.45

Tested by

no test coverage detected