Your IP : 172.28.240.42


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

ó
[³XMc@s·dZddlZddlmZddlmZddlmZddlm	Z	dd„Z
eed	d
ddƒd
edƒeƒZ
e
dd„Zdd„ZdddgZdS(s°
Construct listening port services from a simple string description.

@see: L{twisted.internet.endpoints.serverFromString}
@see: L{twisted.internet.endpoints.clientFromString}
iÿÿÿÿN(t	endpoints(tdeprecatedModuleAttribute(tVersion(tStreamServerEndpointServicettcpcCstj|||ƒS(si
    This function is deprecated as of Twisted 10.2.

    @see: L{twisted.internet.endpoints.server}
    (Rt_parseServer(tdescriptiontfactorytdefault((s@/usr/lib/python2.7/dist-packages/twisted/application/strports.pytparsestTwistedi
iis7in favor of twisted.internet.endpoints.serverFromStringR	cCs¡|d	krddlm}n|tkr4d	}nBd}|d	k	rZ|d|f7}ntjd|dtddƒttj	|||ƒ|ƒ}t
|_|S(
sé
    Return the service corresponding to a description.

    @param description: The description of the listening port, in the syntax
        described by L{twisted.internet.endpoints.server}.

    @type description: C{str}

    @param factory: The protocol factory which will build protocols for
        connections to this service.

    @type factory: L{twisted.internet.interfaces.IProtocolFactory}

    @type default: C{str} or C{None}

    @param default: Do not use this parameter.  It is deprecated since Twisted
        10.2.0.

    @rtype: C{twisted.application.service.IService}

    @return: the service corresponding to a description of a reliable
        stream server.

    @see: L{twisted.internet.endpoints.serverFromString}
    iÿÿÿÿ(treactors9The 'default' parameter was deprecated in Twisted 10.2.0.s=  Use qualified endpoint descriptions; for example, 'tcp:%s'.tmessagetcategoryt
stackleveliN(tNonettwisted.internetRt_DEFAULTtwarningstwarntDeprecationWarningRRt_serverFromStringLegacytTruet_raiseSynchronously(RRRRRtsvc((s@/usr/lib/python2.7/dist-packages/twisted/application/strports.pytservice&s 				cCsEddlm}t|||ƒ\}}}t|d|ƒ||ŽS(s¿Listen on a port corresponding to a description

    @type description: C{str}
    @type factory: L{twisted.internet.interfaces.IProtocolFactory}
    @type default: C{str} or C{None}
    @rtype: C{twisted.internet.interfaces.IListeningPort}
    @return: the port corresponding to a description of a reliable
    virtual circuit server.

    See the documentation of the C{parse} function for description
    of the semantics of the arguments.
    iÿÿÿÿ(Rtlisten(RRR	tgetattr(RRRRtnametargstkw((s@/usr/lib/python2.7/dist-packages/twisted/application/strports.pyRTs
RR(t__doc__RRRttwisted.python.deprecateRttwisted.python.versionsRttwisted.application.internetRR	t__name__tobjectRRRRt__all__(((s@/usr/lib/python2.7/dist-packages/twisted/application/strports.pyt<module>
s
	.