HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/python/test/__pycache__/pullpipe.cpython-38.pyc
U


W[��@sxddlZddlZddlZddlmZddlmZdd�Zedkrtee	ej
d��\ZZe�
eded	�e�e�dS)
�N)�unpack)�recvmsgc	Cs@t�|tjtj�}t|�\}}}|\\}}}td|�\}||fS)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)�socketZfromfdZAF_UNIXZSOCK_STREAMrr)	ZsocketfdZ	ourSocket�dataZ	ancillary�flagsZ	cmsgLevelZcmsgTypeZpackedFDZ
unpackedFD�r�>/usr/lib/python3/dist-packages/twisted/python/test/pullpipe.py�recvfd
s

r
�__main__�sTest fixture data: s.
)�sys�osrZstructrZtwisted.python.sendmsgrr
�__name__�int�argv�fdZdescription�write�closerrrr	�<module>s