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)
| 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] |