OwlCyberSecurity - MANAGER
Edit File: sendfd.pyc
� 7��ac @ s^ d d l m Z m Z m Z d d l m Z d d l m Z m Z m Z d � Z d � Z d S( i����( t packt unpackt calcsize( t SOL_SOCKET( t send1msgt recv1msgt SCM_RIGHTSc C s, t | | d t t t d | � f g � d S( s� Send the given FD to another process via L{send1msg} on the given C{AF_UNIX} socket. @param socketfd: An C{AF_UNIX} socket, attached to another process waiting to receive sockets via the ancillary data mechanism in L{send1msg}. @type socketfd: C{int} @param fd: A file descriptor to be sent to the other process. @type fd: C{int} @param description: a string describing the socket that was passed. @type description: C{str} i t iN( R R R R ( t socketfdt fdt description( ( sF /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/sendfd.pyt sendfd s c C s� t | � \ } } } | \ \ } } } d } t d � } t | � | k rg t d | d | !� \ } n t d | � \ } | | f S( sz Receive a file descriptor from a L{send1msg} 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{str}) i R ( R R t lenR ( R t datat _ignore_flagst ancillaryt _ignore_cmsg_levelt _ignore_cmsg_typet packedFDt unpackedFDt int_size( ( sF /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/sendfd.pyt recvfd/ s N( t structR R R t socketR t twisted.python.sendmsgR R R R R ( ( ( sF /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/sendfd.pyt <module> s