MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / echoCB

Method echoCB

pager_lib/smb/base.py:1767–1772  ·  view source on GitHub ↗
(echo_message, **kwargs)

Source from the content-addressed store, hash-verified

1765 messages_history = [ ]
1766
1767 def echoCB(echo_message, **kwargs):
1768 self._pushToArray(messages_history, echo_message)
1769 if echo_message.status == 0:
1770 callback(data)
1771 else:
1772 errback(OperationFailure('Echo failed', messages_history))
1773
1774 m = SMB2Message(SMB2EchoRequest())
1775 self._sendSMBMessage(m)

Callers

nothing calls this directly

Calls 3

_pushToArrayMethod · 0.95
OperationFailureClass · 0.85
callbackFunction · 0.50

Tested by

no test coverage detected