| Server IP : 138.197.176.125 / Your IP : 216.73.216.38 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/lib/python3/dist-packages/twisted/python/test/__pycache__/ |
Upload File : |
U
W[� � @ sx d dl Z d dlZd dlZd dlmZ d dlmZ dd� Zedkrtee e j
d ��\ZZe�
ede d � e�e� dS )
� N)�unpack)�recvmsgc C s@ t �| t jt j�}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_STREAMr r ) ZsocketfdZ ourSocket�dataZ ancillary�flagsZ cmsgLevelZcmsgTypeZpackedFDZ
unpackedFD� r �>/usr/lib/python3/dist-packages/twisted/python/test/pullpipe.py�recvfd
s
r
�__main__� s Test fixture data: s .
)�sys�osr Zstructr Ztwisted.python.sendmsgr r
�__name__�int�argv�fdZdescription�write�closer r r r �<module> s