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

Method recv_raw

scapy/supersocket.py:187–196  ·  view source on GitHub ↗

Returns a tuple containing (cls, pkt_data, time) :param x: Maximum number of bytes to be received, defaults to MTU :return: A tuple, consisting of a Packet type, the received data, and a timestamp

(self, x=MTU)

Source from the content-addressed store, hash-verified

185 return pkt, sa_ll, timestamp
186
187 def recv_raw(self, x=MTU):
188 # type: (int) -> Tuple[Optional[Type[Packet]], Optional[bytes], Optional[float]] # noqa: E501
189 """Returns a tuple containing (cls, pkt_data, time)
190
191
192 :param x: Maximum number of bytes to be received, defaults to MTU
193 :return: A tuple, consisting of a Packet type, the received data,
194 and a timestamp
195 """
196 return conf.raw_layer, self.ins.recv(x), None
197
198 def recv(self, x=MTU, **kwargs):
199 # type: (int, **Any) -> Optional[Packet]

Callers 1

recvMethod · 0.95

Calls 1

recvMethod · 0.45

Tested by

no test coverage detected