(self, req, reply)
| 156 | self.send_function(reply, **self.optsend) |
| 157 | |
| 158 | def print_reply(self, req, reply): |
| 159 | # type: (Packet, _T) -> None |
| 160 | if isinstance(reply, PacketList): |
| 161 | print("%s ==> %s" % (req.summary(), |
| 162 | [res.summary() for res in reply])) |
| 163 | else: |
| 164 | print("%s ==> %s" % (req.summary(), reply.summary())) |
| 165 | |
| 166 | def reply(self, pkt, send_function=None, address=None): |
| 167 | # type: (Packet, Optional[Callable[..., None]], Optional[Any]) -> None |