403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/asyncore.pyc
ó
ÿ–|_c@sdZddlZddlZddlZddlZddlZddlZddlmZm	Z	m
Z
mZmZm
Z
mZmZmZmZmZmZmZmZeee
eeeefƒZyeWnek
rëiZnXd„Zdefd„ƒYZeeefZd„Z d„Z!d	„Z"d
„Z#de$d„Z%de$d
„Z&e&Z'de(e$e$d„Z)dfd„ƒYZ*de*fd„ƒYZ+d„Z,e$e(d„Z-ej.dkrÿddl/Z/dfd„ƒYZ0de*fd„ƒYZ1ndS(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
ECONNRESETtEINVALtENOTCONNt	ESHUTDOWNtEINTRtEISCONNtEBADFtECONNABORTEDtEPIPEtEAGAINt	errorcodecCsKytj|ƒSWn3tttfk
rF|tkr>t|Sd|SXdS(NsUnknown error %s(toststrerrort
ValueErrort
OverflowErrort	NameErrorR
(terr((s/usr/lib/python2.7/asyncore.pyt	_strerrorDstExitNowcBseZRS((t__name__t
__module__(((s/usr/lib/python2.7/asyncore.pyRLscCs9y|jƒWn$tk
r$‚n|jƒnXdS(N(thandle_read_eventt_reraised_exceptionsthandle_error(tobj((s/usr/lib/python2.7/asyncore.pytreadQs
cCs9y|jƒWn$tk
r$‚n|jƒnXdS(N(thandle_write_eventRR(R((s/usr/lib/python2.7/asyncore.pytwriteYs
cCs9y|jƒWn$tk
r$‚n|jƒnXdS(N(thandle_expt_eventRR(R((s/usr/lib/python2.7/asyncore.pyt
_exceptionas
cCsäyz|tj@r|jƒn|tj@r7|jƒn|tj@rQ|jƒn|tjtjBtj	B@ry|j
ƒnWnctjk
r¼}|j
dtkr¯|jƒqà|j
ƒn$tk
rÏ‚n|jƒnXdS(Ni(tselecttPOLLINRtPOLLOUTRtPOLLPRIRtPOLLHUPtPOLLERRtPOLLNVALthandle_closetsocketterrortargst
_DISCONNECTEDRR(Rtflagste((s/usr/lib/python2.7/asyncore.pyt	readwriteis"








gc
Cs|dkrt}n|rþg}g}g}x„|jƒD]v\}}|jƒ}|jƒ}|rt|j|ƒn|r”|jr”|j|ƒn|s |r:|j|ƒq:q:Wg|koÖ|koÖ|knrìtj|ƒdSy%t	j	||||ƒ\}}}Wn3t	j
k
rF}	|	jdtkr?‚qGdSnXx9|D]1}|j
|ƒ}|dkruqNnt|ƒqNWx9|D]1}|j
|ƒ}|dkr±qŠnt|ƒqŠWx<|D]1}|j
|ƒ}|dkríqÆnt|ƒqÆWndS(Ni(tNonet
socket_maptitemstreadabletwritabletappendt	acceptingttimetsleepR!R*R+RtgetRRR (
ttimeouttmaptrtwR.tfdRtis_rtis_wR((s/usr/lib/python2.7/asyncore.pytpoll}sN	'
%


cCs}|dkrt}n|dk	r4t|dƒ}ntjƒ}|ryx|jƒD]\}}d}|jƒrˆ|tjtjBO}n|j	ƒr®|j
r®|tjO}n|rS|tjtj
BtjBO}|j||ƒqSqSWy|j|ƒ}Wn5tjk
r0}|jdtkr'‚ng}nXxE|D]:\}}|j|ƒ}|dkreq8nt||ƒq8WndS(Nièi(R0R1tintR!RAR2R3R"R$R4R6R#R&R%R'tregisterR*R+RR9R/(R:R;tpollsterR>RR-R<R((s/usr/lib/python2.7/asyncore.pytpoll2ªs4	
g>@cCs–|dkrt}n|r3ttdƒr3t}nt}|dkrbxJ|r^|||ƒqHWn0x-|r‘|dkr‘|||ƒ|d}qeWdS(NRAii(R0R1thasattrR!RERA(R:tuse_pollR;tcounttpoll_fun((s/usr/lib/python2.7/asyncore.pytloopÍs			
t
dispatchercBs[eZeZeZeZeZd Ze	dgƒZ
d d d„Zd„ZeZ
d d„Zd d„Zd„Zd d„Zd„Zd„Zd	„Zd
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zdd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'd„Z(d„Z)RS(!twarningcCsÁ|dkrt|_n	||_d|_|r´|jdƒ|j||ƒt|_y|jƒ|_	Wq½t
jk
r°}|jdt
krt|_q±|j|ƒ‚q½Xn	d|_
dS(Ni(R0R1t_mapt_filenotsetblockingt
set_sockettTruet	connectedtgetpeernametaddrR)R*R+RtFalsetdel_channel(tselftsockR;R((s/usr/lib/python2.7/asyncore.pyt__init__ès 		
	

cCsÉ|jjd|jjg}|jr?|jr?|jdƒn|jrX|jdƒn|jdk	r¬y|jd|jƒWq¬tk
r¨|jt	|jƒƒq¬Xnddj
|ƒt|ƒfS(Nt.t	listeningRRs%s:%ds<%s at %#x>t (t	__class__RRR6RTR5RRR0t	TypeErrortreprtjointid(RWtstatus((s/usr/lib/python2.7/asyncore.pyt__repr__s	
cCs)|dkr|j}n|||j<dS(N(R0RMRN(RWR;((s/usr/lib/python2.7/asyncore.pytadd_channelscCsD|j}|dkr!|j}n||kr7||=nd|_dS(N(RNR0RM(RWR;R>((s/usr/lib/python2.7/asyncore.pyRVs	
cCs?||f|_tj||ƒ}|jdƒ|j|ƒdS(Ni(tfamily_and_typeR)RORP(RWtfamilyttypeRX((s/usr/lib/python2.7/asyncore.pyt
create_socket&s
cCs)||_|jƒ|_|j|ƒdS(N(R)tfilenoRNRd(RWRXR;((s/usr/lib/python2.7/asyncore.pyRP,s	cCsTy9|jjtjtj|jjtjtjƒdBƒWntjk
rOnXdS(Ni(R)t
setsockoptt
SOL_SOCKETtSO_REUSEADDRt
getsockoptR*(RW((s/usr/lib/python2.7/asyncore.pytset_reuse_addr2s	cCstS(N(RQ(RW((s/usr/lib/python2.7/asyncore.pyR3CscCstS(N(RQ(RW((s/usr/lib/python2.7/asyncore.pyR4FscCs=t|_tjdkr-|dkr-d}n|jj|ƒS(Ntnti(RQR6RtnameR)tlisten(RWtnum((s/usr/lib/python2.7/asyncore.pyRqMs		cCs||_|jj|ƒS(N(RTR)tbind(RWRT((s/usr/lib/python2.7/asyncore.pyRsSs	cCs‘t|_|jj|ƒ}|tttfksK|tkrOtj	dkrOdS|dt
fkrw||_|jƒntj
|t|ƒ‚dS(NRotcei(sntRt(RURRR)t
connect_exRRRRRRpRRTthandle_connect_eventR*R
(RWtaddressR((s/usr/lib/python2.7/asyncore.pytconnectWs		
cCsty|jjƒ\}}WnJtk
r-dStjk
re}|jdtttfkr_dS‚nX||fSdS(Ni(	R)tacceptR^R0R*R+RR
R(RWtconnRTtwhy((s/usr/lib/python2.7/asyncore.pyRycs
cCsry|jj|ƒ}|SWnQtjk
rm}|jdtkrFdS|jdtkrg|jƒdS‚nXdS(Ni(R)tsendR*R+RR,R((RWtdatatresultR{((s/usr/lib/python2.7/asyncore.pyR|qs
cCsoy.|jj|ƒ}|s)|jƒdS|SWn:tjk
rj}|jdtkrd|jƒdS‚nXdS(Nti(R)trecvR(R*R+R,(RWtbuffer_sizeR}R{((s/usr/lib/python2.7/asyncore.pyR€~s

cCsit|_t|_|jƒy|jjƒWn5tjk
rd}|jdtt	fkre‚qenXdS(Ni(
RURRR6RVR)tcloseR*R+RR	(RWR{((s/usr/lib/python2.7/asyncore.pyR‚s		
cCs‚yt|j|ƒ}Wn-tk
rEtd|jj|fƒ‚n9Xdi|jjd6|d6}tj|tddƒ|SdS(Ns!%s instance has no attribute '%s'sB%(me)s.%(attr)s is deprecated. Use %(me)s.socket.%(attr)s instead.tmetattrt
stackleveli(tgetattrR)tAttributeErrorR]RtwarningstwarntDeprecationWarning(RWR„tretattrtmsg((s/usr/lib/python2.7/asyncore.pyt__getattr__œs
cCstjjdt|ƒƒdS(Nslog: %s
(tsyststderrRtstr(RWtmessage((s/usr/lib/python2.7/asyncore.pytlog¬stinfocCs%||jkr!d||fGHndS(Ns%s: %s(tignore_log_types(RWR‘Rg((s/usr/lib/python2.7/asyncore.pytlog_info¯scCsD|jr|jƒn*|js6|jƒ|jƒn
|jƒdS(N(R6t
handle_acceptRRRvthandle_read(RW((s/usr/lib/python2.7/asyncore.pyR³s	
	

cCsY|jjtjtjƒ}|dkrBtj|t|ƒƒ‚n|jƒt|_dS(Ni(	R)RmRktSO_ERRORR*Rthandle_connectRQRR(RWR((s/usr/lib/python2.7/asyncore.pyRv¾s

cCss|jr
dS|jse|jjtjtjƒ}|dkrXtj|t|ƒƒ‚n|jƒn|j	ƒdS(Ni(
R6RRR)RmRkR˜R*RRvthandle_write(RWR((s/usr/lib/python2.7/asyncore.pyRÅs		
cCsB|jjtjtjƒ}|dkr4|jƒn
|jƒdS(Ni(R)RmRkR˜R(thandle_expt(RWR((s/usr/lib/python2.7/asyncore.pyRÔs
cCsmtƒ\}}}}yt|ƒ}Wndt|ƒ}nX|jd||||fdƒ|jƒdS(Ns)<__repr__(self) failed for object at %0x>s:uncaptured python exception, closing channel %s (%s:%s %s)R*(tcompact_tracebackR_RaR•R((RWtniltttvttbinfot	self_repr((s/usr/lib/python2.7/asyncore.pyRãscCs|jddƒdS(Ns!unhandled incoming priority eventRL(R•(RW((s/usr/lib/python2.7/asyncore.pyR›÷scCs|jddƒdS(Nsunhandled read eventRL(R•(RW((s/usr/lib/python2.7/asyncore.pyR—úscCs|jddƒdS(Nsunhandled write eventRL(R•(RW((s/usr/lib/python2.7/asyncore.pyRšýscCs|jddƒdS(Nsunhandled connect eventRL(R•(RW((s/usr/lib/python2.7/asyncore.pyR™scCs|jddƒdS(Nsunhandled accept eventRL(R•(RW((s/usr/lib/python2.7/asyncore.pyR–scCs|jddƒ|jƒdS(Nsunhandled close eventRL(R•R‚(RW((s/usr/lib/python2.7/asyncore.pyR(sN(*RRRUtdebugRRR6tclosingR0RTt	frozensetR”RYRct__str__RdRVRhRPRnR3R4RqRsRxRyR|R€R‚RR’R•RRvRRRR›R—RšR™R–R((((s/usr/lib/python2.7/asyncore.pyRKßsJ 	
										
														tdispatcher_with_sendcBs;eZddd„Zd„Zd„Zd„Zd„ZRS(cCs tj|||ƒd|_dS(NR(RKRYt
out_buffer(RWRXR;((s/usr/lib/python2.7/asyncore.pyRYscCs3d}tj||jd ƒ}|j||_dS(Nii(RKR|R§(RWtnum_sent((s/usr/lib/python2.7/asyncore.pyt
initiate_sendscCs|jƒdS(N(R©(RW((s/usr/lib/python2.7/asyncore.pyRšscCs|jpt|jƒS(N(RRtlenR§(RW((s/usr/lib/python2.7/asyncore.pyR4scCsA|jr#|jdt|ƒƒn|j||_|jƒdS(Ns
sending %s(R¢R•R_R§R©(RWR}((s/usr/lib/python2.7/asyncore.pyR| s	N(RRR0RYR©RšR4R|(((s/usr/lib/python2.7/asyncore.pyR¦s
			c	CsÌtjƒ\}}}g}|s0tdƒ‚nxD|rv|j|jjj|jjjt|j	ƒfƒ|j
}q3W~|d\}}}djg|D]}d|^qšƒ}|||f|||fS(Nstraceback does not existiÿÿÿÿR\s
[%s|%s|%s](RŽtexc_infotAssertionErrorR5ttb_frametf_codetco_filenametco_nameRt	tb_linenottb_nextR`(	RžRŸttbR tfiletfunctiontlinetxR“((s/usr/lib/python2.7/asyncore.pyRœ*s	
&cCs¥|dkrt}nx|jƒD]q}y|jƒWq"tk
rm}|jdtkr^q“|s“‚q“q"tk
r€‚q"|s“‚q“q"Xq"W|jƒdS(Ni(	R0R1tvaluesR‚tOSErrorR+R	Rtclear(R;t
ignore_allR·((s/usr/lib/python2.7/asyncore.pyt	close_all>s 		
tposixtfile_wrappercBsMeZd„Zd„Zd„Zdd„ZeZeZd„Z	d„Z
RS(cCstj|ƒ|_dS(N(RtdupR>(RWR>((s/usr/lib/python2.7/asyncore.pyRYescGstj|j|ŒS(N(RRR>(RWR+((s/usr/lib/python2.7/asyncore.pyR€hscGstj|j|ŒS(N(RRR>(RWR+((s/usr/lib/python2.7/asyncore.pyR|kscCs9|tjkr)|tjkr)|r)dStdƒ‚dS(Nis-Only asyncore specific behaviour implemented.(R)RkR˜tNotImplementedError(RWtleveltoptnametbuflen((s/usr/lib/python2.7/asyncore.pyRmns
cCstj|jƒdS(N(RR‚R>(RW((s/usr/lib/python2.7/asyncore.pyR‚yscCs|jS(N(R>(RW((s/usr/lib/python2.7/asyncore.pyRi|sN(RRRYR€R|R0RmRRR‚Ri(((s/usr/lib/python2.7/asyncore.pyR¾`s				tfile_dispatchercBseZdd„Zd„ZRS(cCsŒtj|d|ƒt|_y|jƒ}Wntk
r?nX|j|ƒtj|tj	dƒ}|t
jB}tj|tj|ƒdS(Ni(
RKRYR0RQRRRiR‡tset_filetfcntltF_GETFLRt
O_NONBLOCKtF_SETFL(RWR>R;R-((s/usr/lib/python2.7/asyncore.pyRYs	


cCs/t|ƒ|_|jjƒ|_|jƒdS(N(R¾R)RiRNRd(RWR>((s/usr/lib/python2.7/asyncore.pyRÅŽsN(RRR0RYRÅ(((s/usr/lib/python2.7/asyncore.pyRÄs
(2t__doc__R!R)RŽR7RˆRterrnoRRRRRRRRRR	R
RRR
R¤R,R1RRt	ExceptionRtKeyboardInterruptt
SystemExitRRRR R/R0RAREtpoll3RURJRKR¦RœR¼RpRÆR¾RÄ(((s/usr/lib/python2.7/asyncore.pyt<module>/sB^

					-!ÿ1	

Youez - 2016 - github.com/yon3zu
LinuXploit