Hacked By AnonymousFox

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

�
Afc@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�dGHx8|j	t
�\}}d||fGH|j||�q[WdS(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�dGHxQtj
j�}|s�Pn|j||�|j
t�\}}d||fGHq�WdS(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
	
		
	

Hacked By AnonymousFox1.0, Coded By AnonymousFox