MCPcopy Create free account
hub / github.com/fortra/impacket / get_protocol

Method get_protocol

impacket/ImpactDecoder.py:50–56  ·  view source on GitHub ↗
(self, aprotocol)

Source from the content-addressed store, hash-verified

48 self.__decoded_protocol = protocol
49
50 def get_protocol(self, aprotocol):
51 protocol = self.__decoded_protocol
52 while protocol:
53 if protocol.__class__ == aprotocol:
54 break
55 protocol=protocol.child()
56 return protocol
57
58 def __str__(self):
59 protocol = self.__decoded_protocol

Callers

nothing calls this directly

Calls 1

childMethod · 0.45

Tested by

no test coverage detected