ó Afc@sWddlZddlTddlZddlZdZdZd„Zd„ZeƒdS(iÿÿÿÿN(t*iicCséttjƒdkr1tttjdƒƒ}nt}tttƒ}|j d|fƒ|j dƒx||j ƒ\}\}}dG|G|GHd}x'|j t ƒ}|s°Pn||}q—Wt|ƒ}|j|ƒ|jƒqiWdS(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