GhostManSec
Server: Apache
System: Linux s323.xrea.com 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: moonarc (17751)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/dns/inet.pyc
�
�b�Wc@s�dZddlZddlZddlZejZy
ejZWnek
rYdZnXd�Zd�Z	d�Z
d�ZdS(s*Generic Internet address helper functions.i����Ni'cCsB|tkrtjj|�S|tkr8tjj|�St�dS(s*Convert the textual form of a network address into its binary form.

    @param family: the address family
    @type family: int
    @param text: the textual address
    @type text: string
    @raises NotImplementedError: the address family specified is not
    implemented.
    @rtype: string
    N(tAF_INETtdnstipv4t	inet_atontAF_INET6tipv6tNotImplementedError(tfamilyttext((s,/usr/lib/python2.7/site-packages/dns/inet.pyt	inet_pton&s
cCsB|tkrtjj|�S|tkr8tjj|�St�dS(s/Convert the binary form of a network address into its textual form.

    @param family: the address family
    @type family: int
    @param address: the binary address
    @type address: string
    @raises NotImplementedError: the address family specified is not
    implemented.
    @rtype: string
    N(RRRt	inet_ntoaRRR(Rtaddress((s,/usr/lib/python2.7/site-packages/dns/inet.pyt	inet_ntop:s
cCsXytjj|�tSWn9tk
rSytjj|�tSWqTt�qTXnXdS(s�Determine the address family of a textual-form network address.

    @param text: the textual address
    @type text: string
    @raises ValueError: the address family cannot be determined from the input.
    @rtype: int
    N(RRRRt	ExceptionRRt
ValueError(R((s,/usr/lib/python2.7/site-packages/dns/inet.pytaf_for_addressMs
cCs�y6ttjj|�d�}|dko4|dkSWnUtk
r�y*ttjj|�d�}|dkSWq�tk
r�t�q�XnXdS(s�Is the textual-form network address a multicast address?

    @param text: the textual address
    @raises ValueError: the address family cannot be determined from the input.
    @rtype: bool
    ii�i�i�N(tordRRRR
RR(Rtfirst((s,/usr/lib/python2.7/site-packages/dns/inet.pytis_multicast`s

(t__doc__tsockettdns.ipv4Rtdns.ipv6RRtAttributeErrorR	RRR(((s,/usr/lib/python2.7/site-packages/dns/inet.pyt<module>s