
    iz                         d dl Z d dlZddiZdZddiZdZddiZdZe j                  j                  d      Z
e
d    Z[
d Zd Zd Zd	 Zy)
    NOpenVMSvms_connectunix_connect-c                 <    t        j                  d| z   t              S )Nz..)	importlibimport_module__name__)modnames    ^/home/obispo/Crisostomo_bridge/mision_env/lib/python3.12/site-packages/Xlib/support/connect.py_relative_importr   6   s    ""4'>8<<    c                 v    t         j                  t        t              }t	        |      }|j                  |       S )a  dname, protocol, host, dno, screen = get_display(display)

    Parse DISPLAY into its components.  If DISPLAY is None, use
    the default display.  The return values are:

      DNAME    -- the full display name (string)
      PROTOCOL -- the protocol to use (None if automatic)
      HOST     -- the host name (string, possibly empty)
      DNO      -- display number (integer)
      SCREEN   -- default screen number (integer)
    )_display_modsgetplatform_default_display_modr   get_display)displayr   mods      r   r   r   :   s0     *>?G
7
#C??7##r   c                 |    t         j                  t        t              }t	        |      }|j                  | |||      S )a  socket = get_socket(dname, protocol, host, dno)

    Connect to the display specified by DNAME, PROTOCOL, HOST and DNO, which
    are the corresponding values from a previous call to get_display().

    Return SOCKET, a new socket object connected to the X server.
    )_socket_modsr   r   _default_socket_modr   
get_socket)dnameprotocolhostdnor   r   s         r   r   r   L   s6     x)<=G
7
#C>>%455r   c                 ~    t         j                  t        t              }t	        |      }|j                  | ||||      S )a1  auth_name, auth_data = get_auth(sock, dname, protocol, host, dno)

    Return authentication data for the display on the other side of
    SOCK, which was opened with DNAME, HOST and DNO, using PROTOCOL.

    Return AUTH_NAME and AUTH_DATA, two strings to be used in the
    connection setup request.
    )
_auth_modsr   r   _default_auth_modr   get_auth)sockr   r   r   r   r   r   s          r   r"   r"   Z   s6     nnX'89G
7
#C<<eXtS99r   )sysr   r   r   r   r   r    r!   r   split_partsr   r   r   r"    r   r   <module>r(      s   ,  
 } &  } %  }
 #  
		C	 !9
=$$6:r   