Your IP : 18.220.94.189


Current Path : /lib64/python3.6/site-packages/systemd/__pycache__/
Upload File :
Current File : //lib64/python3.6/site-packages/systemd/__pycache__/daemon.cpython-36.opt-1.pyc

3

��X��@s�ddlmZddlmZmZmZmZmZm	Z	m
Z
mZmZm
Z
mZdd�Zddd�Zeddfd	d
�Zedddfdd�Zdd
d�Zddd�Zddd�Zddd�ZdS)�)�	AF_UNSPEC�)�__version__�booted�notify�_listen_fds�_is_fifo�
_is_socket�_is_socket_inet�_is_socket_sockaddr�_is_socket_unix�_is_mq�LISTEN_FDS_STARTcCs"y|j�Stk
r|SXdS)N)�fileno�AttributeError)�fileobj�r�/usr/lib64/python3.6/daemon.py�_convert_fileobjsrNcCst|�}t||�S)N)rr)r�path�fdrrr�is_fifosrcCst|�}t||||�S)N)rr	)r�family�type�	listeningrrrr�	is_socketsrcCst|�}t|||||�S)N)rr
)rrrrZportrrrr�is_socket_inetsrcCst|�}t|||||�S)aaCheck socket type, address and/or port, flowinfo, listening state.

    Wraps sd_is_socket_inet_sockaddr(3).

    `address` is a systemd-style numerical IPv4 or IPv6 address as used in
    ListenStream=. A port may be included after a colon (":").
    See systemd.socket(5) for details.

    Constants for `family` are defined in the socket module.
    )rr)rZaddressrZflowinforrrrr�is_socket_sockaddr!srcCst|�}t||||�S)N)rr)rrrrrrrr�is_socket_unix/srcCst|�}t||�S)N)rr
)rrrrrr�is_mq3srTcCst|�}tttt|��S)aSReturn a list of socket activated descriptors

    Example::

      (in primary window)
      $ systemd-activate -l 2000 python3 -c \
          'from systemd.daemon import listen_fds; print(listen_fds())'
      (in another window)
      $ telnet localhost 2000
      (in primary window)
      ...
      Execing python3 (...)
      [3]
    )r�list�ranger)Zunset_environmentZnumrrr�
listen_fds7sr")N���r#r#)rrr#r#)rr#N)N)T)ZsocketrZ
_AF_UNSPECZ_daemonrrrrrr	r
rrr
rrrrrrrrr"rrrr�<module>s4





?>