a àMÒeÑ ã@sPddlZddlZddlZddlZddlZddlZejjGdd„dejj ƒƒZ dS)éNcsteZdZdZgd¢Z‡fdd„Zddd„Zedd d „ƒZdd d „Z eddd„ƒZ dd„Z dd„Z edd„ƒZ ‡ZS)ÚSRVz SRV record)ÚpriorityÚweightÚportÚtargetcsBtƒ ||¡| |¡|_| |¡|_| |¡|_| |¡|_dS©N)ÚsuperÚ__init__Z _as_uint16rrrZ_as_namer)ÚselfÚrdclassÚrdtyperrrr©Ú __class__©ú6/usr/lib/python3.9/site-packages/dns/rdtypes/IN/SRV.pyr #s    z SRV.__init__NTcKs$|j ||¡}d|j|j|j|fS)Nz %d %d %d %s)rZchoose_relativityrrr)r ÚoriginÚ relativizeÚkwrrrrÚto_text*sz SRV.to_textc Cs8| ¡}| ¡}| ¡} | |||¡} |||||| | ƒSr)Z get_uint16Úget_name) Úclsr r ÚtokrrZ relativize_torrrrrrrÚ from_text.s z SRV.from_textFcCs6t d|j|j|j¡}| |¡|j ||||¡dS©Nz!HHH)ÚstructÚpackrrrÚwriterZto_wire)r ÚfileÚcompressrZ canonicalizeZ three_intsrrrÚ_to_wire8s z SRV._to_wirec Cs,| d¡\}}}| |¡}|||||||ƒSr)Z get_structr) rr r ÚparserrrrrrrrrÚfrom_wire_parser=s zSRV.from_wire_parsercCs|jSr)r©r rrrÚ_processing_priorityCszSRV._processing_prioritycCs|jSr)rr"rrrÚ_processing_weightFszSRV._processing_weightcCstjj |¡Sr)ÚdnsZrdtypesÚutilZweighted_processing_order)rÚiterablerrrÚ_processing_orderIszSRV._processing_order)NT)NTN)NNF)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú __slots__r rÚ classmethodrrr!r#r$r(Ú __classcell__rrr rrs  ÿ  r) rZ dns.exceptionr%Z dns.immutableZdns.nameZ dns.rdataZdns.rdtypes.utilZ immutableZrdataZRdatarrrrrÚs