ó Afc@sBddlZddlZddlTdZdZd„ZeƒdS(iÿÿÿÿN(t*iicCs ttjƒdkr*dGHtjdƒntjd}t}tj|dƒ}|dkrtj||dƒ}|| }ntjtjdƒ}t t t ƒ}|j ||fƒ|j |ƒ|jdƒd}x'|jtƒ}|sóPn||}qÚW|GdS(Nisusage: rpython host commandiit:it(tlentsystargvtexittPORTtstringtfindtatoitjointsockettAF_INETt SOCK_STREAMtconnecttsendtshutdowntrecvtBUFSIZE(thosttporttitcommandtstreplytdata((s,/usr/lib64/python2.7/Demo/sockets/rpython.pytmain s*     (RRR RRR(((s,/usr/lib64/python2.7/Demo/sockets/rpython.pyts