Current Path : /usr/lib/python2.7/dist-packages/twisted/application/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/application/strports.pyc |
ó [³XMc @ s· d Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d „ Z e e d d d d ƒ d e d ƒ e ƒ Z e d d „ Z d d „ Z d d d g Z d S( 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( t deprecatedModuleAttribute( t Version( t StreamServerEndpointServicet tcpc C s t j | | | ƒ S( si This function is deprecated as of Twisted 10.2. @see: L{twisted.internet.endpoints.server} ( R t _parseServer( t descriptiont factoryt default( ( s@ /usr/lib/python2.7/dist-packages/twisted/application/strports.pyt parse s t Twistedi i i s7 in favor of twisted.internet.endpoints.serverFromStringR c C s¡ | d k r d d l m } n | t k r4 d } nB d } | d k rZ | d | f 7} n t j d | d t d d ƒ t t j | | | ƒ | ƒ } 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ÿÿÿÿ( t reactors9 The 'default' parameter was deprecated in Twisted 10.2.0.s= Use qualified endpoint descriptions; for example, 'tcp:%s'.t messaget categoryt stackleveli N( t Nonet twisted.internetR t _DEFAULTt warningst warnt DeprecationWarningR R t _serverFromStringLegacyt Truet _raiseSynchronously( R R R R R t svc( ( s@ /usr/lib/python2.7/dist-packages/twisted/application/strports.pyt service&