diff options
Diffstat (limited to 'pysnmp/hlapi/asyncio/ntforg.py')
-rw-r--r-- | pysnmp/hlapi/asyncio/ntforg.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pysnmp/hlapi/asyncio/ntforg.py b/pysnmp/hlapi/asyncio/ntforg.py index cd0394a2..13ec63bd 100644 --- a/pysnmp/hlapi/asyncio/ntforg.py +++ b/pysnmp/hlapi/asyncio/ntforg.py @@ -15,6 +15,7 @@ from pysnmp.hlapi.lcd import * from pysnmp.hlapi.varbinds import * from pysnmp.hlapi.asyncio.transport import * from pysnmp.entity.rfc3413 import ntforg + try: import asyncio except ImportError: @@ -25,6 +26,7 @@ __all__ = ['sendNotification'] vbProcessor = NotificationOriginatorVarBinds() lcd = NotificationOriginatorLcdConfigurator() + @asyncio.coroutine def sendNotification(snmpEngine, authData, transportTarget, contextData, notifyType, varBinds, **options): @@ -115,6 +117,7 @@ def sendNotification(snmpEngine, authData, transportTarget, contextData, >>> """ + def __cbFun(snmpEngine, sendRequestHandle, errorIndication, errorStatus, errorIndex, varBinds, cbCtx): |