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

Method packet_handler

dshell/core.py:457–470  ·  view source on GitHub ↗

A placeholder. Plugins will be able to overwrite this to perform custom activites on Packet data. It should return a Packet object for functions further down the chain (i.e. connection_handler and/or blob_handler) Arguments: pkt: a P

(self, pkt: "Packet")

Source from the content-addressed store, hash-verified

455 logger.warning(failed_msg)
456
457 def packet_handler(self, pkt: "Packet"):
458 """
459 A placeholder.
460
461 Plugins will be able to overwrite this to perform custom activites on
462 Packet data.
463
464 It should return a Packet object for functions further down the chain
465 (i.e. connection_handler and/or blob_handler)
466
467 Arguments:
468 pkt: a Packet object
469 """
470 return pkt
471
472
473class ConnectionPlugin(PacketPlugin):

Callers 1

consume_packetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected