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/3/root/proc/2/cwd/usr/lib/python2.4/Demo/sockets/throughput.pyc
mò
‚=5Dc@sXdkZdkZdkTddZdZd„Zd„Zd„Zd„ZeƒdS(	N(t*iPÃi*icCsjttiƒdjotƒntiddjotƒn'tiddjotƒntƒdS(Niis-ss-c(tlentsystargvtusagetservertclient(((t-/usr/lib/python2.4/Demo/sockets/throughput.pytmainscCs'tit_dGHdGHtidƒdS(Ns*Usage:    (on host_A) throughput -s [port]s7and then: (on host_B) throughput -c count host_A [port]i(Rtstderrtstdouttexit(((RR"scCsÙttiƒdjottidƒ}nt}tttƒ}|i
d|fƒ|idƒdGHxk|iƒ\}\}}x#|itƒ}|pPn~q…W|idƒ|iƒdG|GdG|GHqjWdS(NitisServer ready...sOK
s	Done withtport(RRRtevalR
tMY_PORTtsockettAF_INETtSOCK_STREAMtstbindtlistentaccepttconnthostt
remoteporttrecvtBUFSIZEtdatatsendtclose(RRRRR
R((RR)s&


cCs²ttiƒdjotƒntttidƒƒ}tid}ttiƒdjottidƒ}nt	}dt
dd}tiƒ}
tttƒ}tiƒ}	|i||fƒtiƒ}d}x)||jo|d}|i|ƒqÛW|idƒtiƒ}|it
ƒ}tiƒ}|GHdG|
G|	G|G|G|GHd	G|	|
G||	G||G||GHd
G||
GHdGtt
|d||
dƒGd
GHdS(Niiitxis
isRaw timers:s
Intervals:sTotal:sThroughput:f0.001sK/sec.(RRRRtintRtcountRR
RRttestdatattimett1RRRRtt2tconnecttt3tiRtshutdowntt4RRtt5tround(R'R
R"RRR!R(R*R+R%R$R((RR>s8



%
!(	RR#RRRRRRR(RRRRR#RRR((Rt?s