Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/internet/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/internet/address.pyc

ó
[³XMc@s dZddlZddlZddlmZddlmZddlmZde	ej
fd„ƒYZde	ej
fd	„ƒYZd
efd„ƒYZ
dS(s*
Address objects for network connections.
iÿÿÿÿN(t
implements(tIAddress(tutiltIPv4AddresscBs<eZdZeeƒdZdd„Zd„Zd„Z	RS(	s

    Object representing an IPv4 socket endpoint.

    @ivar type: A string describing the type of transport, either 'TCP' or
        'UDP'.
    @ivar host: A string containing the dotted-quad IP address.
    @ivar port: An integer representing the port number.
    ttypethosttportcCsV|dkst‚||_||_||_|dk	rRtjdtddƒndS(NtTCPtUDPsMtwisted.internet.address.IPv4Address._bwHack is deprecated since Twisted 11.0t
stackleveli(RR(tAssertionErrorRRRtNonetwarningstwarntDeprecationWarning(tselfRRRt_bwHack((s</usr/lib/python2.7/dist-packages/twisted/internet/address.pyt__init__s				cCsd|j|j|jfS(NsIPv4Address(%s, %r, %d)(RRR(R((s</usr/lib/python2.7/dist-packages/twisted/internet/address.pyt__repr__'scCst|j|j|jfƒS(N(thashRRR(R((s</usr/lib/python2.7/dist-packages/twisted/internet/address.pyt__hash__+s(stypeshostsportN(
t__name__t
__module__t__doc__RRtcompareAttributesRRRR(((s</usr/lib/python2.7/dist-packages/twisted/internet/address.pyRs
		tUNIXAddresscBsceZdZeeƒdZdd„Zee	j
ddƒdk	rOd„Znd„Zd„Z
RS(	s‡
    Object representing a UNIX socket endpoint.

    @ivar name: The filename associated with this socket.
    @type name: C{str}
    tnamecCs2||_|dk	r.tjdtddƒndS(NsMtwisted.internet.address.UNIXAddress._bwHack is deprecated since Twisted 11.0R	i(RRRR
R(RRR((s</usr/lib/python2.7/dist-packages/twisted/internet/address.pyR<s		tsamefilecCs\tt|ƒj|ƒ}|tkrXytjj|j|jƒSWqXtk
rTqXXn|S(s˜
            overriding L{util.FancyEqMixin} to ensure the os level samefile check
            is done if the name attributes do not match.
            (	tsuperRt__eq__tFalsetostpathRRtOSError(Rtothertres((s</usr/lib/python2.7/dist-packages/twisted/internet/address.pyRDs
cCsd|jfS(NsUNIXAddress(%r)(R(R((s</usr/lib/python2.7/dist-packages/twisted/internet/address.pyRRscCsNy,tj|jƒ}t|j|jfƒSWntk
rIt|jƒSXdS(N(RtstatRRtst_inotst_devR!(Rts1((s</usr/lib/python2.7/dist-packages/twisted/internet/address.pyRVs

(snameN(RRRRRRRRtgetattrRR RRR(((s</usr/lib/python2.7/dist-packages/twisted/internet/address.pyR0s
	t_ServerFactoryIPv4AddresscBseZdZd„ZRS(s@Backwards compatability hack. Just like IPv4Address in practice.cCs‹t|tƒr>tjddtddƒ|j|jf|kSt|tƒr‡|j|j|jf}|j|j|jf}||kSt	S(Ns?IPv4Address.__getitem__ is deprecated.  Use attributes instead.tcategoryR	i(
t
isinstancettupleRR
RRRRRR(RR"tatb((s</usr/lib/python2.7/dist-packages/twisted/internet/address.pyRes

(RRRR(((s</usr/lib/python2.7/dist-packages/twisted/internet/address.pyR)bs(RRRtzope.interfaceRttwisted.internet.interfacesRttwisted.pythonRtobjecttFancyEqMixinRRR)(((s</usr/lib/python2.7/dist-packages/twisted/internet/address.pyt<module>s 2