Viewing File: /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/SRV.pyc

ó
!`Nc@sPddlZddlZddlZddlZdejjfd„ƒYZdS(iÿÿÿÿNtSRVcBs’eZdZddddgZd„Zded„Zded„Ze	eƒZddd„Z
dd	„Ze	eƒZded
„Zd„Z
RS(
sSRV record

    @ivar priority: the priority
    @type priority: int
    @ivar weight: the weight
    @type weight: int
    @ivar port: the port of the service
    @type port: int
    @ivar target: the target host
    @type target: dns.name.Name object
    @see: RFC 2782tprioritytweighttportttargetcCsAtt|ƒj||ƒ||_||_||_||_dS(N(tsuperRt__init__RRRR(tselftrdclasstrdtypeRRRR((s8/usr/lib64/python2.7/site-packages/dns/rdtypes/IN/SRV.pyR%s
			cKs2|jj||ƒ}d|j|j|j|fS(Ns%d %d %d %s(Rtchoose_relativityRRR(Rtorigint
relativizetkwR((s8/usr/lib64/python2.7/site-packages/dns/rdtypes/IN/SRV.pytto_text,sc
Csh|jƒ}|jƒ}|jƒ}|jdƒ}	|	j||ƒ}	|jƒ|||||||	ƒS(N(t
get_uint16tget_nametNoneR
tget_eol(
tclsRR	ttokRRRRRR((s8/usr/lib64/python2.7/site-packages/dns/rdtypes/IN/SRV.pyt	from_text1s
cCsHtjd|j|j|jƒ}|j|ƒ|jj|||ƒdS(Ns!HHH(tstructtpackRRRtwriteRtto_wire(RtfiletcompressRt
three_ints((s8/usr/lib64/python2.7/site-packages/dns/rdtypes/IN/SRV.pyR<s!
cCs¯tjd|||d!ƒ\}}}	|d7}|d8}tjj||| |ƒ\}
}||krxtjj‚n|dk	r–|
j|ƒ}
n||||||	|
ƒS(Ns!HHHi(	Rtunpacktdnstnamet	from_wiret	exceptiont	FormErrorRR(RRR	twiretcurrenttrdlenRRRRRtcused((s8/usr/lib64/python2.7/site-packages/dns/rdtypes/IN/SRV.pyR As	

cCs|jj||ƒ|_dS(N(RR
(RRR((s8/usr/lib64/python2.7/site-packages/dns/rdtypes/IN/SRV.pyR
PscCsytjd|j|j|jƒ}tjd|j|j|jƒ}t||ƒ}|dkrut|j|jƒ}n|S(Ns!HHHi(RRRRRtcmpR(Rtothertsptoptv((s8/usr/lib64/python2.7/site-packages/dns/rdtypes/IN/SRV.pyt_cmpSs!!N(t__name__t
__module__t__doc__t	__slots__RRtTrueRRtclassmethodRR R
R,(((s8/usr/lib64/python2.7/site-packages/dns/rdtypes/IN/SRV.pyRs		
(Rt
dns.exceptionRt	dns.rdatatdns.nametrdatatRdataR(((s8/usr/lib64/python2.7/site-packages/dns/rdtypes/IN/SRV.pyt<module>s
Back to Directory File Manager