summaryrefslogtreecommitdiff
path: root/examples/v1arch/manager/bulkgen.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/v1arch/manager/bulkgen.py')
-rw-r--r--examples/v1arch/manager/bulkgen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/v1arch/manager/bulkgen.py b/examples/v1arch/manager/bulkgen.py
index 5e37d9f..d4c7ca7 100644
--- a/examples/v1arch/manager/bulkgen.py
+++ b/examples/v1arch/manager/bulkgen.py
@@ -1,6 +1,6 @@
# GETBULK Command Generator (SNMPv2c only)
-from pysnmp.carrier.asynsock.dispatch import AsynsockDispatcher
-from pysnmp.carrier.asynsock.dgram import udp
+from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher
+from pysnmp.carrier.asyncore.dgram import udp
from pyasn1.codec.ber import encoder, decoder
from pysnmp.proto.api import v2c
from time import time
@@ -77,7 +77,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress,
startedAt = time()
return wholeMsg
-transportDispatcher = AsynsockDispatcher()
+transportDispatcher = AsyncoreDispatcher()
transportDispatcher.registerRecvCbFun(cbRecvFun)
transportDispatcher.registerTimerCbFun(cbTimerFun)