Ë
    oj÷  ã                   óø   — d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ de	dee	e
f   fd„Zedk(  rJ e e	ej                  d	   «      «      \  ZZ e j                   ed
ez   dz   «        e j"                  e«       yy)é    N)Úunpack)ÚTuple)ÚrecvmsgÚsocketfdÚreturnc                 óº   — t        j                  | t         j                  t         j                  «      }t	        |«      \  }}}|\  \  }}}t        d|«      \  }||fS )az  
    Receive a file descriptor from a L{sendmsg} message on the given C{AF_UNIX}
    socket.

    @param socketfd: An C{AF_UNIX} socket, attached to another process waiting
        to send sockets via the ancillary data mechanism in L{send1msg}.

    @param fd: C{int}

    @return: a 2-tuple of (new file descriptor, description).
    @rtype: 2-tuple of (C{int}, C{bytes})
    Úi)ÚsocketÚfromfdÚAF_UNIXÚSOCK_STREAMr   r   )	r   Ú	ourSocketÚdataÚ	ancillaryÚflagsÚ	cmsgLevelÚcmsgTypeÚpackedFDÚ
unpackedFDs	            ú>/usr/lib/python3/dist-packages/twisted/python/test/pullpipe.pyÚrecvfdr      s[   € ô —‘˜h¬¯©¼×8JÑ8JÓK€IÜ$ YÓ/Ñ€Dˆ)�UØ(1Ñ%Ñ$€i�˜8ô ˜#˜xÓ(�L€ZØ˜ÐÐó    Ú__main__é   s   Test fixture data: s   .
)Úosr
   ÚsysÚstructr   Útypingr   Útwisted.python.sendmsgr   ÚintÚbytesr   Ú__name__ÚargvÚfdÚdescriptionÚwriteÚclose© r   r   ú<module>r)      s‡   ðó
 
Û Û 
Ý Ý å *ð�Sð ˜U 3¨ :Ñ.ó ð. ˆzÒÙ™S §¡¨!¡Ó-Ó.�O€BˆØ€B‡H�HˆRÐ'¨+Ñ5¸Ñ>Ô?Ø€B‡H�HˆR…Lð r   