File: //proc/3/root/proc/self/root/usr/lib/python2.4/site-packages/dns/edns.pyc
mς
n|ΊOc @ sT d Z d Z d e f d YZ d e f d YZ h Z d Z d Z d S( s EDNS Optionsi t Optionc B st t Z d Z d Z d Z d Z e e Z d Z d Z d Z d Z
d Z d Z d
Z
RS( s* Base class for all EDNS option types.
c C s
| | _ d S( s\ Initialize an option.
@param otype: The rdata type
@type otype: int
N( t otypet self( R R ( ( t, /usr/lib/python2.4/site-packages/dns/edns.pyt __init__ s c C s
t d S( s* Convert an option to wire format.
N( t NotImplementedError( R t file( ( R t to_wire s c C s
t d S( 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 ( t clsR t wiret currentt olen( ( R t from_wire$ s c C s
t d S( 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 ( R t other( ( R t _cmp4 s c C sF t | t p t Sn | i | i j o t Sn | i | d j S( Ni ( t
isinstanceR
R t FalseR R R ( R R
( ( R t __eq__: s
c C sF t | t p t Sn | i | i j o t Sn | i | d j S( Ni ( R R
R R R R R ( R R
( ( R t __ne__A s
c C s? t | t p | i | i j o t Sn | i | d j S( Ni ( R R
R R R t NotImplementedR ( R R
( ( R t __lt__H s $c C s? t | t p | i | i j o t Sn | i | d j S( Ni ( R R
R R R R R ( R R
( ( R t __le__N s $c C s? t | t p | i | i j o t Sn | i | d j S( Ni ( R R
R R R R R ( R R
( ( R t __ge__T s $c C s? t | t p | i | i j o t Sn | i | d j S( Ni ( R R
R R R R R ( R R
( ( R t __gt__Z s $( t __name__t
__module__t __doc__R R R t classmethodR R R R R R R ( ( ( R R s t
GenericOptionc B s>