MOON
Server: Apache
System: Linux vps.thepromohut.com 2.6.18-398.el5 #1 SMP Tue Sep 16 20:51:48 EDT 2014 i686
User: caretrak (507)
PHP: 5.2.10
Disabled: NONE
Upload Files
File: //usr/lib/python2.4/Demo/sockets/throughput.pyo
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