ok

Mini Shell

Direktori : /lib64/python2.7/Demo/rpc/
Upload File :
Current File : //lib64/python2.7/Demo/rpc/mountclient.pyo

�
V
�Qc@s�ddlZddlmZmZmZmZdZdZdZdefd��YZdefd	��YZ	d
dd��YZ
de
efd
��YZde
efd��YZd�Z
dS(i����N(tPackertUnpackert	TCPClientt	UDPClienti��ii tMountPackercBseZd�ZRS(cCs|jt|�dS(N(tpack_fopaquetFHSIZE(tselftfhandle((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pytpack_fhandles(t__name__t
__module__R	(((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyRst
MountUnpackercBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs
|jt�S(N(tunpack_fopaqueR(R((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pytunpack_fhandle*scCs7|j�}|dkr'|j�}nd}||fS(Ni(tunpack_uintRtNone(Rtstatustfh((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pytunpack_fhstatus-s
cCs|j|j�S(N(tunpack_listtunpack_mountstruct(R((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pytunpack_mountlist5scCs"|j�}|j�}||fS(N(t
unpack_string(Rthostnamet	directory((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyR8scCs|j|j�S(N(Rtunpack_exportstruct(R((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pytunpack_exportlist=scCs"|j�}|j�}||fS(N(Rt
unpack_groups(Rtfilesystgroups((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyR@scCs|j|j�S(N(RR(R((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyREs(	R
RRRRRRRR(((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyR(s						tPartialMountClientcBsPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cCst�|_td�|_dS(Nt(RtpackerRtunpacker(R((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyt
addpackersPscCsnddl}y|j�}Wntk
r5d}nX|dkrZtj|jd�}n|jjd�dS(Ni����iiR (R i(tostgetuidtAttributeErrortrpctbindresvporttsocktbind(RR$tuidtport((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyt
bindsocketXs

cCs1|jdkr*tjtj�f|_n|jS(N(tcredRR't	AUTH_UNIXtmake_auth_unix_default(R((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pytmkcredfscCs"|jd||jj|jj�S(Ni(t	make_callR!tpack_stringR"R(RR((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pytMnt�s	cCs|jddd|jj�S(Ni(R2RR"R(R((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pytDump�scCs|jd||jjd�S(Ni(R2R!R3R(RR((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pytUmnt�scCs|jdddd�S(Ni(R2R(R((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pytUmntall�scCs|jddd|jj�S(Ni(R2RR"R(R((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pytExport�s(
R
RR#R-R1R4R5R6R7R8(((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyRLs			#				tTCPMountClientcBseZd�ZRS(cCstj||tt�dS(N(Rt__init__t	MOUNTPROGt	MOUNTVERS(Rthost((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyR:�s(R
RR:(((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyR9�stUDPMountClientcBseZd�ZRS(cCstj||tt�dS(N(RR:R;R<(RR=((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyR:�s(R
RR:(((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyR>�scCsddl}|jdr?|jddkr?t}|jd=n9|jdrr|jddkrrt}|jd=nt}|jdr�|jd}nd}||�}|j�}xK|D]C}|GHy|j|d�WndGHq�nX|j|d�q�WdS(Ni����is-ts-uR itSorry(tsystargvR9R>R8R4R6(R@tCR=tmcltlisttitem((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyttest�s* 
 


((R'RRRRR;R<RRRRR9R>RF(((s,/usr/lib64/python2.7/Demo/rpc/mountclient.pyt<module>s"
$W

Zerion Mini Shell 1.0