summaryrefslogtreecommitdiff
path: root/examples/v3arch/asyncio/agent/ntforg
diff options
context:
space:
mode:
authorelie <elie>2015-03-07 22:39:30 +0000
committerelie <elie>2015-03-07 22:39:30 +0000
commit9a3322fe7aff404d0134b242e2fd71b6984b52a6 (patch)
tree703b466776dddadada9a604dab80716ad1cc6de1 /examples/v3arch/asyncio/agent/ntforg
parent36b5f1ec3bf18af407d84ff605347e90dade7411 (diff)
downloadpysnmp-9a3322fe7aff404d0134b242e2fd71b6984b52a6.tar.gz
make config.delTransport() returning detached transport object
Diffstat (limited to 'examples/v3arch/asyncio/agent/ntforg')
-rw-r--r--examples/v3arch/asyncio/agent/ntforg/inform-v3.py2
-rw-r--r--examples/v3arch/asyncio/agent/ntforg/trap-v1.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/v3arch/asyncio/agent/ntforg/inform-v3.py b/examples/v3arch/asyncio/agent/ntforg/inform-v3.py
index f14f5a2..133ff05 100644
--- a/examples/v3arch/asyncio/agent/ntforg/inform-v3.py
+++ b/examples/v3arch/asyncio/agent/ntforg/inform-v3.py
@@ -93,7 +93,7 @@ def snmpOperation(snmpEngine, target, snmpContext, contextName,
config.delTransport(
snmpEngine,
udp.domainName
- )
+ ).closeTransport()
# Initiate sending SNMP message
loop.run_until_complete(
diff --git a/examples/v3arch/asyncio/agent/ntforg/trap-v1.py b/examples/v3arch/asyncio/agent/ntforg/trap-v1.py
index fef010d..5104f90 100644
--- a/examples/v3arch/asyncio/agent/ntforg/trap-v1.py
+++ b/examples/v3arch/asyncio/agent/ntforg/trap-v1.py
@@ -101,7 +101,7 @@ def snmpOperation(snmpEngine, target, snmpContext, contextName,
config.delTransport(
snmpEngine,
udp.domainName
- )
+ ).closeTransport()
# Initiate sending SNMP message
asyncio.async(