$20 GRAYBYTE WORDPRESS FILE MANAGER $45

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/lib/python3.6/site-packages/dns/rdtypes/IN/

HOME
Current File : /usr/lib/python3.6/site-packages/dns/rdtypes/IN//AAAA.py
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

import dns.exception
import dns.inet
import dns.rdata
import dns.tokenizer


class AAAA(dns.rdata.Rdata):

    """AAAA record.

    @ivar address: an IPv6 address
    @type address: string (in the standard IPv6 format)"""

    __slots__ = ['address']

    def __init__(self, rdclass, rdtype, address):
        super(AAAA, self).__init__(rdclass, rdtype)
        # check that it's OK
        dns.inet.inet_pton(dns.inet.AF_INET6, address)
        self.address = address

    def to_text(self, origin=None, relativize=True, **kw):
        return self.address

    @classmethod
    def from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True):
        address = tok.get_identifier()
        tok.get_eol()
        return cls(rdclass, rdtype, address)

    def to_wire(self, file, compress=None, origin=None):
        file.write(dns.inet.inet_pton(dns.inet.AF_INET6, self.address))

    @classmethod
    def from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None):
        address = dns.inet.inet_ntop(dns.inet.AF_INET6,
                                     wire[current: current + rdlen])
        return cls(rdclass, rdtype, address)

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.27 PM
root / root
0755
__pycache__
--
14 Aug 2025 9.27 PM
root / root
0755
A.py
1.81 KB
20 Sep 2016 11.24 PM
root / root
0644
AAAA.py
1.893 KB
20 Sep 2016 11.24 PM
root / root
0644
APL.py
5.113 KB
20 Sep 2016 11.24 PM
root / root
0644
DHCID.py
1.972 KB
20 Sep 2016 11.24 PM
root / root
0644
IPSECKEY.py
5.548 KB
20 Sep 2016 11.24 PM
root / root
0644
KX.py
0.86 KB
20 Sep 2016 11.24 PM
root / root
0644
NAPTR.py
4.365 KB
20 Sep 2016 11.24 PM
root / root
0644
NSAP.py
2.03 KB
20 Sep 2016 11.24 PM
root / root
0644
NSAP_PTR.py
0.872 KB
20 Sep 2016 11.24 PM
root / root
0644
PX.py
3.314 KB
20 Sep 2016 11.24 PM
root / root
0644
SRV.py
2.982 KB
20 Sep 2016 11.24 PM
root / root
0644
WKS.py
3.722 KB
20 Sep 2016 11.24 PM
root / root
0644
__init__.py
0.942 KB
20 Sep 2016 11.24 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF