summaryrefslogtreecommitdiff
path: root/pysnmp/carrier/twisted/dgram/unix.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/carrier/twisted/dgram/unix.py')
-rw-r--r--pysnmp/carrier/twisted/dgram/unix.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pysnmp/carrier/twisted/dgram/unix.py b/pysnmp/carrier/twisted/dgram/unix.py
index fe9c459b..24fdc5c7 100644
--- a/pysnmp/carrier/twisted/dgram/unix.py
+++ b/pysnmp/carrier/twisted/dgram/unix.py
@@ -10,13 +10,15 @@ from pysnmp.carrier.base import AbstractTransportAddress
from pysnmp.carrier.twisted.dgram.base import DgramTwistedTransport
from pysnmp.carrier import error
-domainName = snmpLocalDomain = (1, 3, 6, 1, 2, 1, 100, 1, 13)
+DOMAIN_NAME = SNMP_LOCAL_DOMAIN = (1, 3, 6, 1, 2, 1, 100, 1, 13)
+
class UnixTransportAddress(str, AbstractTransportAddress):
pass
+
class UnixTwistedTransport(DgramTwistedTransport):
- addressType = UnixTransportAddress
+ ADDRESS_TYPE = UnixTransportAddress
_lport = None
# AbstractTwistedTransport API
@@ -43,4 +45,5 @@ class UnixTwistedTransport(DgramTwistedTransport):
d.addCallback(lambda x: None)
DgramTwistedTransport.closeTransport(self)
+
UnixTransport = UnixTwistedTransport