From 5e3db0c4c2a6c1230b7fde5816da7fb52b22498a Mon Sep 17 00:00:00 2001 From: elie Date: Fri, 4 Apr 2014 15:08:03 +0000 Subject: receive callback function adjusted to match latest AsyncNotificationOriginator --- examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py | 2 +- .../asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/hlapi') 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: -- cgit v1.2.1