ok

Mini Shell

Direktori : /proc/self/root/proc/thread-self/root/proc/self/root/usr/lib64/python2.7/Demo/sockets/
Upload File :
Current File : //proc/self/root/proc/thread-self/root/proc/self/root/usr/lib64/python2.7/Demo/sockets/udpecho.pyc

�
V
�Qc@sQddlZddlTd
ZdZd�Zd�Zd�Zd	�Ze�dS(i����N(t*iP�iicCsdttj�dkrt�ntjddkr<t�n$tjddkrYt�nt�dS(Niis-ss-c(tlentsystargvtusagetservertclient(((s,/usr/lib64/python2.7/Demo/sockets/udpecho.pytmains


cCs'tjt_dGHdGHtjd�dS(Ns,Usage: udpecho -s [port]            (server)s,or:    udpecho -c host [port] <file (client)i(Rtstderrtstdouttexit(((s,/usr/lib64/python2.7/Demo/sockets/udpecho.pyRscCs�ttj�dkr+ttjd�}nt}ttt�}|jd|f�dGHx7|j	t
�\}}d||fGH|j||�q[dS(Nitsudp echo server readysserver received %r from %r(RRRtevalt	ECHO_PORTtsockettAF_INETt
SOCK_DGRAMtbindtrecvfromtBUFSIZEtsendto(tporttstdatataddr((s,/usr/lib64/python2.7/Demo/sockets/udpecho.pyRscCs�ttj�dkrt�ntjd}ttj�dkrWttjd�}nt}||f}ttt�}|j	d�dGHxPtj
j�}|s�Pn|j||�|j
t�\}}d||fGHq�dS(NiiRis$udp echo client ready, reading stdinsclient received %r from %r(Ri(RRRRRR
RRRRtstdintreadlineRRR(thostRRRtlineRtfromaddr((s,/usr/lib64/python2.7/Demo/sockets/udpecho.pyR+s"


iW�(RRR
RRRRR(((s,/usr/lib64/python2.7/Demo/sockets/udpecho.pyt<module>s
	
		
	

Zerion Mini Shell 1.0