MCPcopy
hub / github.com/USArmyResearchLab/Dshell / packet_handler

Method packet_handler

dshell/plugins/protocol/ip.py:20–24  ·  view source on GitHub ↗
(self, packet)

Source from the content-addressed store, hash-verified

18 )
19
20 def packet_handler(self, packet):
21 self.write(**packet.info(), dir_arrow='->')
22 # If verbose flag set, outputs packet contents in hex and ascii alongside packet info
23 self.logger.info("\n" + dshell.util.hex_plus_ascii(packet.rawpkt))
24 return packet

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected