MCPcopy Index your code
hub / github.com/USArmyResearchLab/Dshell / consume_packet

Method consume_packet

dshell/core.py:565–571  ·  view source on GitHub ↗
(self, packet: "Packet")

Source from the content-addressed store, hash-verified

563 yield from connection.packets
564
565 def consume_packet(self, packet: "Packet"):
566 # First run super() to handle the individual packets.
567 super().consume_packet(packet)
568
569 # Now process any produced packets to be processed through connection handler.
570 for _packet in super().produce_packets():
571 self._connection_handler(_packet)
572
573 def flush(self):
574 """

Callers

nothing calls this directly

Calls 3

_connection_handlerMethod · 0.95
consume_packetMethod · 0.45
produce_packetsMethod · 0.45

Tested by

no test coverage detected