summaryrefslogtreecommitdiff
path: root/examples/hlapi
diff options
context:
space:
mode:
authorelie <elie>2014-04-04 15:08:03 +0000
committerelie <elie>2014-04-04 15:08:03 +0000
commit5e3db0c4c2a6c1230b7fde5816da7fb52b22498a (patch)
tree473579fc93c2f762847b6c53692b979cd9eb0335 /examples/hlapi
parentb272b371ed22f1c7d52c45b10aaff38ced2a96ef (diff)
downloadpysnmp-git-5e3db0c4c2a6c1230b7fde5816da7fb52b22498a.tar.gz
receive callback function adjusted to match latest AsyncNotificationOriginator
Diffstat (limited to 'examples/hlapi')
-rw-r--r--examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py2
-rw-r--r--examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py b/examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py
index 095149ad..bc679d64 100644
--- a/examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py
+++ b/examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py
@@ -27,7 +27,7 @@ targets = (
ntforg.UdpTransportTarget(('localhost', 162)) )
)
-def cbFun(sendRequestHandle, errorIndication,
+def cbFun(snmpEngine, sendRequestHandle, errorIndication,
errorStatus, errorIndex, varBinds, cbctx):
if errorIndication:
print('Notification %s not sent: %s' % (sendRequestHandle, errorIndication))
diff --git a/examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py b/examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py
index 53ddeddb..6acaf281 100644
--- a/examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py
+++ b/examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py
@@ -41,7 +41,7 @@ targets = (
ntforg.UdpTransportTarget(('localhost', 162)) )
)
-def cbFun(sendRequestHandle, errorIndication,
+def cbFun(snmpEngine, sendRequestHandle, errorIndication,
errorStatus, errorIndex, varBinds, cbCtx):
snmpEngine = cbCtx
if errorIndication: