Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/twisted/python/test/__pycache__/ |
Upload File : |
o �b� � @ s� d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ de dee e f fdd�Zed krKee ej d ��\ZZe �ede d � e �e� dS dS ) � N)�unpack)�Tuple)�recvmsg�socketfd�returnc 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)�socket�fromfd�AF_UNIX�SOCK_STREAMr r ) r � ourSocket�data� ancillary�flags� cmsgLevel�cmsgType�packedFD� unpackedFD� r �>/usr/lib/python3/dist-packages/twisted/python/test/pullpipe.py�recvfd s r �__main__� s Test fixture data: s . )�osr �sys�structr �typingr �twisted.python.sendmsgr �int�bytesr �__name__�argv�fd�description�write�closer r r r �<module> s �