diff options
author | elie <elie> | 2015-07-05 14:22:26 +0000 |
---|---|---|
committer | elie <elie> | 2015-07-05 14:22:26 +0000 |
commit | 7e2076a1e0f8f6dc24cee52b067d2cd18fdde1c4 (patch) | |
tree | 6a02fb6f6a7c5a247e44eb14f1b981afd4a9aac5 /examples/hlapi | |
parent | fad315e4f82fa7958d949f1cc4c6ef5043d95b39 (diff) | |
download | pysnmp-git-7e2076a1e0f8f6dc24cee52b067d2cd18fdde1c4.tar.gz |
- original asynsock transport and AsyncsockDispatcher renamed into
asyncore and AsyncoreDispatcher respectively to provide better hint
to fellow devs on the underlying transport being used
- backward compatibility preserved through dummy asynsock symbols
Diffstat (limited to 'examples/hlapi')
-rw-r--r-- | examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py | 4 | ||||
-rw-r--r-- | examples/hlapi/asyncore/manager/cmdgen/query-multiple-snmp-engines.py | 4 |
2 files changed, 4 insertions, 4 deletions
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 2dfbc55a..fcceaf0d 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 @@ -26,7 +26,7 @@ # from pysnmp.entity.rfc3413.oneliner import ntforg from pysnmp.entity import engine -from pysnmp.carrier.asynsock.dispatch import AsynsockDispatcher +from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher # List of targets in the following format: # ( ( authData, transportTarget ), ... ) @@ -54,7 +54,7 @@ def cbFun(snmpEngine, sendRequestHandle, errorIndication, print('%s = %s' % (name.prettyPrint(), val.prettyPrint())) # Instantiate the single transport dispatcher object -transportDispatcher = AsynsockDispatcher() +transportDispatcher = AsyncoreDispatcher() # Setup a custom data routing function to select snmpEngine by transportDomain transportDispatcher.registerRoutingCbFun( diff --git a/examples/hlapi/asyncore/manager/cmdgen/query-multiple-snmp-engines.py b/examples/hlapi/asyncore/manager/cmdgen/query-multiple-snmp-engines.py index 94c1f541..45ae42b0 100644 --- a/examples/hlapi/asyncore/manager/cmdgen/query-multiple-snmp-engines.py +++ b/examples/hlapi/asyncore/manager/cmdgen/query-multiple-snmp-engines.py @@ -27,7 +27,7 @@ # from pysnmp.entity.rfc3413.oneliner import cmdgen from pysnmp.entity import engine -from pysnmp.carrier.asynsock.dispatch import AsynsockDispatcher +from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher # List of targets in the followin format: # ( ( authData, transportTarget, varNames ), ... ) @@ -77,7 +77,7 @@ def cbFun(snmpEngine, sendRequestHandle, errorIndication, # Instantiate the single transport dispatcher object -transportDispatcher = AsynsockDispatcher() +transportDispatcher = AsyncoreDispatcher() # Setup a custom data routing function to select snmpEngine by transportDomain transportDispatcher.registerRoutingCbFun( |