summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2018-07-08 12:59:49 +0200
committerGitHub <noreply@github.com>2018-07-08 12:59:49 +0200
commita93241007b970c458a0233c16ae2ef82dc107290 (patch)
tree7cb3f555758f6125c7c52033ca3f7ca687290153 /examples
parent5168479e426ee54b1bf07d859f15a2deae0046cf (diff)
downloadpysnmp-git-a93241007b970c458a0233c16ae2ef82dc107290.tar.gz
Remove `pysnmp.carrier.asynsock` sub-package (#166)
Legacy `pysnmp.carrier.asynsock` backward-compatible wrapper over `pysnmp.carrier.asyncore` is gone
Diffstat (limited to 'examples')
-rw-r--r--examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py b/examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py
index efa8151d..69d9b43b 100644
--- a/examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py
+++ b/examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py
@@ -18,8 +18,8 @@ The following Net-SNMP command will produce similar SNMP notification:
"""#
from time import time
-from pysnmp.carrier.asynsock.dispatch import AsynsockDispatcher
-from pysnmp.carrier.asynsock.dgram import udp, udp6
+from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher
+from pysnmp.carrier.asyncore.dgram import udp, udp6
from pyasn1.codec.ber import encoder, decoder
from pysnmp.proto.api import v2c as pMod
@@ -61,7 +61,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress,
return wholeMsg
-transportDispatcher = AsynsockDispatcher()
+transportDispatcher = AsyncoreDispatcher()
transportDispatcher.registerRecvCbFun(cbRecvFun)
transportDispatcher.registerTimerCbFun(cbTimerFun)