%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/
Upload File :
Create Path :
Current File : //opt/plesk/python/2.7/lib/python2.7/site-packages/dns/inet.pyc

�
�ac@s�dZddlZddlZddlZddlmZejZy
ejZWne	k
ridZnXd�Z
d�Zd�Zd	�Z
dS(
s*Generic Internet address helper functions.i����Ni(t	maybe_ordi'cCsB|tkrtjj|�S|tkr8tjj|�St�dS(s Convert the textual form of a network address into its binary form.

    *family* is an ``int``, the address family.

    *text* is a ``text``, the textual address.

    Raises ``NotImplementedError`` if the address family specified is not
    implemented.

    Returns a ``binary``.
    N(tAF_INETtdnstipv4t	inet_atontAF_INET6tipv6tNotImplementedError(tfamilyttext((s=/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/inet.pyt	inet_pton)s

cCsB|tkrtjj|�S|tkr8tjj|�St�dS(s2Convert the binary form of a network address into its textual form.

    *family* is an ``int``, the address family.

    *address* is a ``binary``, the network address in binary form.

    Raises ``NotImplementedError`` if the address family specified is not
    implemented.

    Returns a ``text``.
    N(RRRt	inet_ntoaRRR(Rtaddress((s=/opt/plesk/python/2.7/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.

    *text*, a ``text``, the textual address.

    Raises ``ValueError`` if the address family cannot be determined
    from the input.

    Returns an ``int``.
    N(RRRRt	ExceptionRRt
ValueError(R	((s=/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/inet.pytaf_for_addressSs
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?

    *text*, a ``text``, the textual address.

    Raises ``ValueError`` if the address family cannot be determined
    from the input.

    Returns a ``bool``.
    ii�i�i�N(RRRRRRR(R	tfirst((s=/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/inet.pytis_multicastis

(t__doc__tsockettdns.ipv4Rtdns.ipv6t_compatRRRtAttributeErrorR
R
RR(((s=/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/inet.pyt<module>s	


			

Zerion Mini Shell 1.0