Hacked By AnonymousFox

Current Path : /proc/thread-self/root/lib64/python2.7/site-packages/dns/
Upload File :
Current File : //proc/thread-self/root/lib64/python2.7/site-packages/dns/edns.pyc

�
n|�Oc@sTdZdZdefd��YZdefd��YZiZd�Zd�ZdS(	sEDNS OptionsitOptioncBsteZdZd�Zd�Zd�Zee�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
RS(s*Base class for all EDNS option types.
    cCs
||_dS(s\Initialize an option.
        @param otype: The rdata type
        @type otype: int
        N(totype(tselfR((s./usr/lib64/python2.7/site-packages/dns/edns.pyt__init__scCs
t�dS(s*Convert an option to wire format.
        N(tNotImplementedError(Rtfile((s./usr/lib64/python2.7/site-packages/dns/edns.pytto_wirescCs
t�dS(s�Build an EDNS option object from wire format

        @param otype: The option type
        @type otype: int
        @param wire: The wire-format message
        @type wire: string
        @param current: The offet in wire of the beginning of the rdata.
        @type current: int
        @param olen: The length of the wire-format option data
        @type olen: int
        @rtype: dns.edns.Option instanceN(R(tclsRtwiretcurrenttolen((s./usr/lib64/python2.7/site-packages/dns/edns.pyt	from_wire$scCs
t�dS(s�Compare an EDNS option with another option of the same type.
        Return < 0 if self < other, 0 if self == other, and > 0 if self > other.
        N(R(Rtother((s./usr/lib64/python2.7/site-packages/dns/edns.pyt_cmp4scCs<t|t�stS|j|jkr)tS|j|�dkS(Ni(t
isinstanceRtFalseRR
(RR((s./usr/lib64/python2.7/site-packages/dns/edns.pyt__eq__:s
cCs<t|t�stS|j|jkr)tS|j|�dkS(Ni(RRRRR
(RR((s./usr/lib64/python2.7/site-packages/dns/edns.pyt__ne__As
cCs9t|t�s"|j|jkr&tS|j|�dkS(Ni(RRRtNotImplementedR
(RR((s./usr/lib64/python2.7/site-packages/dns/edns.pyt__lt__HscCs9t|t�s"|j|jkr&tS|j|�dkS(Ni(RRRRR
(RR((s./usr/lib64/python2.7/site-packages/dns/edns.pyt__le__NscCs9t|t�s"|j|jkr&tS|j|�dkS(Ni(RRRRR
(RR((s./usr/lib64/python2.7/site-packages/dns/edns.pyt__ge__TscCs9t|t�s"|j|jkr&tS|j|�dkS(Ni(RRRRR
(RR((s./usr/lib64/python2.7/site-packages/dns/edns.pyt__gt__Zs(t__name__t
__module__t__doc__RRRtclassmethodR
RRRRRR(((s./usr/lib64/python2.7/site-packages/dns/edns.pyRs									t
GenericOptioncBs>eZdZd�Zd�Zd�Zee�Zd�ZRS(swGenerate Rdata Class

    This class is used for EDNS option types for which we have no better
    implementation.
    cCs#tt|�j|�||_dS(N(tsuperRRtdata(RRR((s./usr/lib64/python2.7/site-packages/dns/edns.pyRhscCs|j|j�dS(N(twriteR(RR((s./usr/lib64/python2.7/site-packages/dns/edns.pyRlscCs||||||!�S(N((RRRR	R
((s./usr/lib64/python2.7/site-packages/dns/edns.pyRoscCst|j|j�S(N(tcmpR(RR((s./usr/lib64/python2.7/site-packages/dns/edns.pyR
ts(RRRRRRRR
(((s./usr/lib64/python2.7/site-packages/dns/edns.pyRas			cCs(tj|�}|dkr$t}n|S(N(t_type_to_classtgettNoneR(RR((s./usr/lib64/python2.7/site-packages/dns/edns.pytget_option_classzs	cCs"t|�}|j||||�S(stBuild an EDNS option object from wire format

    @param otype: The option type
    @type otype: int
    @param wire: The wire-format message
    @type wire: string
    @param current: The offet in wire of the beginning of the rdata.
    @type current: int
    @param olen: The length of the wire-format option data
    @type olen: int
    @rtype: dns.edns.Option instance(R#R(RRR	R
R((s./usr/lib64/python2.7/site-packages/dns/edns.pytoption_from_wire�s
N(RtNSIDtobjectRRR R#R$(((s./usr/lib64/python2.7/site-packages/dns/edns.pyt<module>sM	

Hacked By AnonymousFox1.0, Coded By AnonymousFox