ó V Qc@sWddlZddlTddlZddlZdZdZd„Zd„ZeƒdS(i˙˙˙˙N(t*iicCsçttjƒdkr1tttjdƒƒ}nt}tttƒ}|j d|fƒ|j dƒxz|j ƒ\}\}}dG|G|GHd}x&|j t ƒ}|s°Pn||}q—t|ƒ}|j|ƒ|jƒqidS(Nits connected by(tlentsystargvtinttevaltPORTtsockettAF_INETt SOCK_STREAMtbindtlistentaccepttrecvtBUFSIZEtexecutetsendtclose(tporttstconnt remotehostt remoteporttrequesttdatatreply((s-/usr/lib64/python2.7/Demo/sockets/rpythond.pytmains$     cBsvej}ej}ejƒe_e_}z*y|iiUWnHejdƒnXWd|e_|e_X|jƒS(Nid(RtstdouttstderrtStringIOt tracebackt print_exctgetvalue(RRRtfakefile((s-/usr/lib64/python2.7/Demo/sockets/rpythond.pyR%s    (RRRRRRRR(((s-/usr/lib64/python2.7/Demo/sockets/rpythond.pyts