ó
VQc           @   sB   d  d l  Z  d  d l Z d  d l Td Z d Z d   Z e   d S(   i˙˙˙˙N(   t   *i  i   c          C   s  t  t j  d k  r* d GHt j d  n  t j d }  t } t j |  d  } | d k r t j | | d  } |  |  }  n  t j t j d  } t	 t
 t  } | j |  | f  | j |  | j d  d } x& | j t  } | só Pn  | | } qÚ | Gd  S(   Ni   s   usage: rpython host commandi   i   t   :i    t    (   t   lent   syst   argvt   exitt   PORTt   stringt   findt   atoit   joint   sockett   AF_INETt   SOCK_STREAMt   connectt   sendt   shutdownt   recvt   BUFSIZE(   t   hostt   portt   it   commandt   st   replyt   data(    (    s,   /usr/lib64/python2.7/Demo/sockets/rpython.pyt   main   s*     (   R   R   R   R   R   R   (    (    (    s,   /usr/lib64/python2.7/Demo/sockets/rpython.pyt   <module>   s   
	