Will be called by sniff() to ask for a packet
(self, sock: 'SuperSocket')
| 52 | return pkt |
| 53 | |
| 54 | def recv(self, sock: 'SuperSocket') -> Iterator[Packet]: |
| 55 | """ |
| 56 | Will be called by sniff() to ask for a packet |
| 57 | """ |
| 58 | pkt = sock.recv() |
| 59 | if not pkt: |
| 60 | return |
| 61 | pkt = self.process(pkt) |
| 62 | if pkt: |
| 63 | yield pkt |
| 64 | |
| 65 | |
| 66 | class IPSession(DefaultSession): |