mò
{…æCc           @   sà  d  Z  d Z d Z y e Wn d \ Z Z n Xy| d k Z d k Z d k Z d k Z d k	 Z	 e i
 i e i i e	 i e i ƒ  ƒ d d d g ƒ ƒ d	 k l Z l Z Wn1 y e i i d
 e ƒ Wn e GHn X‚  n Xe i d i e i ƒ d Z e i d ƒ d Z e i ƒ  d Z d „  Z d k Td „  Z e d j o– e Z e i d Z e e j oR yD e  e ƒ o3 e! d e d ƒ o e i d Z e i d Z n Wq¸q¸Xn e! d e e" e# e ƒ ƒ f ƒ n d S(   sB   socketpair example

   gotta get the hang of IPC one of these dayss1  
    socketpair -- simple test of how socketpair works
    Copyright (C) 2005  John Comeau <jc.jcomeau.com>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    s5   Not all needed libraries found, upgrade or check pathi   i    Ni   t   libt   python(   s   gpls	   jclicenses   %s
iÿÿÿÿt   .c          G   s   t  S(   N(   t   False(   t   whatever(    (    t   ./socketpair.pyt
   DebugPrint1   s    (   t   *c          G   sˆ   t  t t ƒ \ } } t i ƒ  } | o0 | i ƒ  | i	 d ƒ | i
 ƒ  } d | GHn- | i ƒ  | i
 ƒ  } d | GH| i	 d ƒ d S(   s4   set up a socketpair and send messages back and forths   hear me talkin' to yas   child sent '%s's   parent sent '%s's   yep i hear yaN(   t
   socketpairt   AF_UNIXt
   SOCK_DGRAMt   parentt   childt   ost   forkt   pidt   closet   sendt   recvt   message(   t   argsR   R   R   R   (    (    R   R   7   s     

	t   __main__s   type(%s) == types.FunctionTypei   s   %s%s(   i   i    ($   t   __doc__t	   Copyrightt   errormessaget   TrueR   t   sysR   t   typest   ret   pwdt   patht   appendt   sept   joint   getpwuidt   geteuidt   com.jcomeaut   gplt	   jclicenset   stderrt   writet   argvt   splitt   selft   commandt   originalselfR   t   socketR   t   __name__t   functionR   t   lent   evalt   reprt   tuple(   R   R   R%   R+   R   R   R   R0   R-   R   R   R   R   R   R   R&   R,   R   (    (    R   t   ?   s>   -8			"" 