MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/self/root/proc/3/cwd/usr/lib/python2.4/Demo/pdist/client.pyo
mò
‚=5Dc@s‰dZdkZdkZdkZdkZdkZdZdfd„ƒYZdkl	Z	dee	fd„ƒYZ
dfd	„ƒYZdS(
sRPC Client module.NitClientcBs§tZdZed„Zed„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
d„Zd„Zd„Zd„ZRS(sCRPC Client class.  No need to derive a class -- it's fully generic.cCs|i||ƒ|iƒdS(N(tselft	_pre_inittaddresstverboset
_post_init(RRR((t'/usr/lib/python2.4/Demo/pdist/client.pyt__init__scCsßt|ƒtdƒjod|f}n||_||_|iodt|ƒGHntititi	ƒ|_
|i
i|ƒ|io	dGHnd|_d|_
h|_|i
idƒ|_|i
idƒ|_dS(NitsConnecting to %s ...s
Connected.itrtw(ttypeRRt_addressRt_verbosetreprtsockettAF_INETtSOCK_STREAMt_sockettconnectt_lastidt_nextidt_repliestmakefilet_rft_wf(RRR((RRs		

				cCs|idƒ|_dS(Ns.methods(Rt_callt_methods(R((RR%scCs|iƒdS(N(Rt_close(R((Rt__del__(scCsp|io|iiƒnd|_|io|iiƒnd|_|io|iiƒnd|_dS(N(RRtclosetNoneRR(R((RR+s
	
	
cCsD||ijo't||ƒ}t|||ƒ|Snt|‚dS(N(tnameRRt_stubtmethodtsetattrtAttributeError(RR R"((Rt__getattr__3s
cCs
||_dS(N(RRR
(RR((Rt_setverbose:scGs|i||ƒS(N(Rt_vcallR targs(RR R(((RR=scCs|i|i||ƒƒS(N(Rt_recvt_vsendR R((RR R(((RR'@scGs|i||ƒS(N(RR*R R((RR R(((Rt_sendCscGs|i||dƒS(Ni(RR*R R((RR R(((Rt
_send_noreplyFscCs|i||dƒS(Ni(RR*R R((RR R(((Rt_vsend_noreplyIsicCs}|i}|d|_|p|}n|||f}|idjodt|ƒGHnt	i
|iƒ}|i
|ƒ|S(Nissending request: %s(RRtidt	wantreplyR R(trequestR
RtpickletPicklerRtwptdump(RR R(R/R0R.R3((RR*Ls	

cCs¸|i|ƒ\}}}||jotd||f‚n|djo|Sn|}t	t
|ƒott
|ƒ}n|djo
ti
}n||jo
|}n||‚dS(Ns request/reply id mismatch: %d/%dsposix.errors	mac.error(sposix.errors	mac.error(Rt_vrecvR.t	exceptiontvaluetridtRuntimeErrorRtxthasattrt__builtin__tgetattrtosterror(RR.R6R7R:R8((RR)Vs





cCsZ|iƒ|ii|ƒo<|idjo
d|GHn|i|}|i|=|Snt|ƒ}xî|idjo
d|GHnt	i
|iƒ}|i
ƒ}~|idjodt|ƒGHn|d}t|ƒ}||jo!|idjo	dGHn|Sn||i|<||jo*|idjo	dGHndd|fSqhqhWdS(Nis"retrieving previous reply, id = %dswaiting for reply, id = %ds
got reply: %sisgot itsgot higher id, assume all ok(Rt_flushRthas_keyR.R
treplytabstaidR1t	UnpicklerRtrptloadRR8taridR(RR.RFRHRDRBR8((RR5es8






	

	cCs|iiƒdS(N(RRtflush(R((RR@}s(t__name__t
__module__t__doc__tVERBOSERRRRRR%R&RR'R+R,R-R*R)R5R@(((RRs"										
		(sSecuritytSecureClientcBstZd„ZRS(NcGsÉdk}t|i|ƒti|ƒ|iiƒ|i	i
ƒ}|i|i
|ƒƒ}|i|ƒ}tt|ƒƒ}|ddjo|d }n|ii|dƒ|iiƒ|iƒdS(NiÿÿÿÿtLls
(tstringtapplyRRR(tSecurityRRRIRtreadlinetlinetatoitstript	challenget_encode_challengetresponseRtlongtwriteR(RR(RPRYRWRT((RR†s	


(RJRKR(((RRN„sR!cBs tZdZd„Zd„ZRS(sJHelper class for Client -- each instance serves as a method of the client.cCs||_||_dS(N(tclientRt_clientR t_name(RR\R ((RR˜s	cGs|ii|i|ƒS(N(RR]R'R^R((RR(((Rt__call__œs(RJRKRLRR_(((RR!”s	(RLtsysRR1R<R>RMRtsecurityRRRNR!(
RR1RNR<R`RRRR>R!RM((Rt?s					s