summaryrefslogtreecommitdiff
path: root/pysnmp/hlapi/v1arch/asyncio/dispatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/hlapi/v1arch/asyncio/dispatch.py')
-rw-r--r--pysnmp/hlapi/v1arch/asyncio/dispatch.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/pysnmp/hlapi/v1arch/asyncio/dispatch.py b/pysnmp/hlapi/v1arch/asyncio/dispatch.py
new file mode 100644
index 00000000..d908beb9
--- /dev/null
+++ b/pysnmp/hlapi/v1arch/asyncio/dispatch.py
@@ -0,0 +1,29 @@
+#
+# This file is part of pysnmp software.
+#
+# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
+# License: http://snmplabs.com/pysnmp/license.html
+#
+from pysnmp.carrier.asyncio.dispatch import AsyncioDispatcher
+from pysnmp.hlapi.v1arch.dispatch import AbstractSnmpDispatcher
+
+__all__ = ['SnmpDispatcher']
+
+
+class SnmpDispatcher(AbstractSnmpDispatcher):
+ """Creates SNMP message dispatcher object.
+
+ `SnmpDispatcher` object manages send and receives SNMP PDU
+ messages through underlying transport dispatcher and dispatches
+ them to the callers.
+
+ `SnmpDispatcher` is the only stateful object, all `hlapi.v1arch` SNMP
+ operations require an instance of `SnmpDispatcher`. Users do not normally
+ request services directly from `SnmpDispather`, but pass it around to
+ other `hlapi.v1arch` interfaces.
+
+ It is possible to run multiple instances of `SnmpDispatcher` in the
+ application. In a multithreaded environment, each thread that
+ works with SNMP must have its own `SnmpDispatcher` instance.
+ """
+ PROTO_DISPATCHER = AsyncioDispatcher