diff options
author | elie <elie> | 2013-06-01 12:15:58 +0000 |
---|---|---|
committer | elie <elie> | 2013-06-01 12:15:58 +0000 |
commit | 374652248999709006e9deb62fe2d8f3cdb6323d (patch) | |
tree | e9933e8a618a0b3d0e5b0cb2000a8184fabbef9e /examples/v3arch/agent/ntforg/inform-v2c.py | |
parent | a8bd7e3f06c5c84363764de284ef4e7024534969 (diff) | |
download | pysnmp-374652248999709006e9deb62fe2d8f3cdb6323d.tar.gz |
config.addSocketTransport() helper renamed into config.addTransport()
and improved by automatically instantiating compatible TransportDispatcher
making it dispatcher-agnostic. As an additional bonus, application may not
call registerTransportDispatcher() as it would be called by addTransport().
Diffstat (limited to 'examples/v3arch/agent/ntforg/inform-v2c.py')
-rw-r--r-- | examples/v3arch/agent/ntforg/inform-v2c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/v3arch/agent/ntforg/inform-v2c.py b/examples/v3arch/agent/ntforg/inform-v2c.py index 7a27e3d..0d46c12 100644 --- a/examples/v3arch/agent/ntforg/inform-v2c.py +++ b/examples/v3arch/agent/ntforg/inform-v2c.py @@ -30,7 +30,7 @@ config.addTargetParams(snmpEngine, 'my-creds', 'my-area', 'noAuthNoPriv', 1) # Setup transport endpoint and bind it with security settings yielding # a target name -config.addSocketTransport( +config.addTransport( snmpEngine, udp.domainName, udp.UdpSocketTransport().openClientMode() |