Ic@sRdZddkZddkZddklZddkTdefdYZdS(s"Manage HTTP servers with CherryPy.iN(t attributes(t*tServercBseZdZdZdZdZdZeeeddZdZ dZ d Z dZ d Z eZd Zd ZdZdZdZdZdZeZdZddZddZdZde_dZRS(sAn adapter for an HTTP server. You can set attributes (like socket_host and socket_port) on *this* object (which is probably cherrypy.server), and call quickstart. For example: cherrypy.server.socket_port = 80 cherrypy.quickstart() is 127.0.0.1cCs|iS(N(t _socket_host(tself((s8/usr/lib/python2.6/vendor-packages/cherrypy/_cpserver.pyt_get_socket_hostscCs$|ptdn||_dS(NsqHost values of '' or None are not allowed. Use '0.0.0.0' instead to listen on all active interfaces (INADDR_ANY).(t ValueErrorR(Rtvalue((s8/usr/lib/python2.6/vendor-packages/cherrypy/_cpserver.pyt_set_socket_hoststdocsThe hostname or IP address on which to listen for connections. Host values may be any IPv4 or IPv6 address, or any valid hostname. The string 'localhost' is a synonym for '127.0.0.1' (or '::1', if your hosts file prefers IPv6). The string '0.0.0.0' is a special IPv4 entry meaning "any active interface" (INADDR_ANY), and '::' is the similar IN6ADDR_ANY for IPv6. The empty string or None are not allowed.tii sHTTP/1.1iiiidcCsti|tidS(N(t ServerAdaptert__init__tcherrypytengine(R((s8/usr/lib/python2.6/vendor-packages/cherrypy/_cpserver.pyR <scCstidtdS(s1This does nothing now and will be removed in 3.2.s]quickstart does nothing now and will be removed in 3.2. Call cherrypy.engine.start() instead.N(twarningstwarntDeprecationWarning(Rtserver((s8/usr/lib/python2.6/vendor-packages/cherrypy/_cpserver.pyt quickstart?s cCs|djo |i}n|djo ddkl}|i}nt|tot|}n|io||ifS|i }|i }|||ffS(s?Return a (httpserver, bind_addr) pair based on self attributes.i(t_cpwsgi_serverN( tNonetinstanceR Rt CPWSGIServert isinstancet basestringRt socket_filet socket_hostt socket_port(Rt httpserverRthosttport((s8/usr/lib/python2.6/vendor-packages/cherrypy/_cpserver.pythttpserver_from_selfEs      cCs7|ip|i\|_|_nti|dS(sStart the HTTP server.N(RR t bind_addrR tstart(R((s8/usr/lib/python2.6/vendor-packages/cherrypy/_cpserver.pyR"Vs iKcCs|io|iS|i}|d joddk}|i}n|i}|io)d}|djo|d|7}qn&d}|d jo|d|7}nd ||fS( s0Return the base (scheme://host) for this server.s0.0.0.0s::iNthttpsis:%sthttpiPs%s://%s(s0.0.0.0s::(RRtsockett gethostnameRtssl_certificate(RRR%Rtscheme((s8/usr/lib/python2.6/vendor-packages/cherrypy/_cpserver.pytbase]s        iii@N( t__name__t __module__t__doc__RRRRtpropertyRRtsocket_queue_sizetsocket_timeouttshutdown_timeouttprotocol_versiontFalset reverse_dnst thread_pooltthread_pool_maxtmax_request_header_sizetmax_request_body_sizeRRR'tssl_private_keytTruetnodelayR RR R"tpriorityR)(((s8/usr/lib/python2.6/vendor-packages/cherrypy/_cpserver.pyR s6          (R,RR t cherrypy.libRtcherrypy.process.serversR R(((s8/usr/lib/python2.6/vendor-packages/cherrypy/_cpserver.pyts