Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /usr/lib64/python2.7/Demo/sockets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/Demo/sockets/udpecho.pyo
�
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
	
		
	

ZeroDay Forums Mini