403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/orca/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/orca/httpserver.pyo
Ñò
z#ÝJc	@sÆdZdZdZdZdZdZddkZddkZddkZddk	Z	ddk
Z
ddkZda
hZhZdeifd	„ƒYZd
eifd„ƒYZd„Zd
„ZdS(sŒProvides an HTTP server for Orca.  This currently serves mainly as
something that self-voicing applications can use as their speech
service.s$Id$s
$Revision$s$Date$s-Copyright (c) 2006-2008 Sun Microsystems Inc.tLGPLiÿÿÿÿNt_HTTPRequestHandlercBs/eZdZddd„Zd„Zd„ZRS(sRProvides support for communicating with Orca via HTTP.  This is
    mainly to support self-voicing applications that want to use Orca
    as a speech service.

    The protocol is simple: POST content is 'stop', 'speak:<text>',
    or 'isSpeaking'.

    To test this, run:

      wget --post-data='speak:hello world' localhost:20433

    cCsdS(sZOverride to avoid getting a log message on stdout for
        each GET, POST, etc. requestN((tselftcodetsize((s3/usr/lib/python2.6/site-packages/orca/httpserver.pytlog_request<scCsB|idƒ|iddƒ|iƒ|iidtiƒdS(NiÈsContent-types	text/htmls(<html><body><p>Orca %s</p></body></html>(t
send_responsetsend_headertend_headerstwfiletwritetplatformtversion(R((s3/usr/lib/python2.6/site-packages/orca/httpserver.pytdo_GETAs


cCs|iidƒ}|oît|ƒ}|ii|ƒ}titid|ƒ|idƒo%t	i
|dƒ|iddƒq|djot	iƒ|iddƒq|djoH|iddƒ|i
d	d
ƒ|iƒ|iidt	iƒƒqntitidƒdS(
Nscontent-lengths*httpserver._HTTPRequestHandler received %ssspeak:iiÈtOKtstopt
isSpeakingsContent-types	text/htmls%ss/httpserver._HTTPRequestHandler received no data(theaderst	getheadertinttrfiletreadtdebugtprintlntLEVEL_FINESTt
startswithtspeechtspeakRRRRR	R
R(Rt
contentLengtht	inputBody((s3/usr/lib/python2.6/site-packages/orca/httpserver.pytdo_POSTHs(



"N(t__name__t
__module__t__doc__tNoneRR
R(((s3/usr/lib/python2.6/site-packages/orca/httpserver.pyR.s	t_HTTPRequestThreadcBseZdZd„ZRS(s0Runs a _HTTPRequestHandler in a separate thread.cCsÓti}t}x•|oŒ|titijouy"tid|ftƒ}t}Wq|tijoti	ti
ƒntiti
d|ƒ|d7}qXqW|ptiti
dƒn|iƒdS(sTry to start an HTTP server on settings.httpServerPort.
        If this fails, retry settings.maxHttpServerRetries times,
        each time incrementing the server port number by 1. If we
        are still unable to start a server, just fail gracefully.
        ts?httpserver._HTTPRequestThread unable to start server on port %dis4httpserver._HTTPRequestThread server startup failed.N(
tsettingsthttpServerPorttFalsetmaxHttpServerRetriestBaseHTTPServert
HTTPServerRtTrueRtprintExceptiont
LEVEL_WARNINGRt
serve_forever(RtportNot	connectedthttpd((s3/usr/lib/python2.6/site-packages/orca/httpserver.pytrunbs(		
(RR R!R2(((s3/usr/lib/python2.6/site-packages/orca/httpserver.pyR#_scCsXtioJtoBy$tƒatitƒtiƒWqTtiti	ƒqTXndS(s½Creates an HTTP server that listens for speak commands from a
    separate port defined by settings.httpServerPort.  We run this
    as a daemon so it will die automatically when orca dies.N(
R%R&t_httpRequestThreadR#t	setDaemonR+tstartRR,R-(((s3/usr/lib/python2.6/site-packages/orca/httpserver.pytinits	
cCsdS(s8Stops the HTTP server.  [[[WDW - not implemented yet.]]]N((((s3/usr/lib/python2.6/site-packages/orca/httpserver.pytshutdownŽs(R!t__id__t__version__t__date__t
__copyright__t__license__t	threadingR)RRR%RR"R3tloggingFileHandlerstloggingStreamHandlerstBaseHTTPRequestHandlerRtThreadR#R6R7(((s3/usr/lib/python2.6/site-packages/orca/httpserver.pyt<module>s$1 	

Youez - 2016 - github.com/yon3zu
LinuXploit