:github_url: hide .. _class_UDSServer: UDSServer ========= **Успадковує:** :ref:`SocketServer` **<** :ref:`RefCounted` **<** :ref:`Object` A Unix Domain Socket (UDS) server. .. rst-class:: classref-introduction-group Опис -------- A Unix Domain Socket (UDS) server. Listens to connections on a socket path and returns a :ref:`StreamPeerUDS` when it gets an incoming connection. Unix Domain Sockets provide inter-process communication on the same machine using the filesystem namespace. \ **Note:** Unix Domain Sockets are only available on Unix-like systems (Linux, macOS, etc.) and are not supported on Windows. .. rst-class:: classref-reftable-group Методи ------------ .. table:: :widths: auto +-------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`listen`\ (\ path\: :ref:`String`\ ) | +-------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`StreamPeerUDS` | :ref:`take_connection`\ (\ ) | +-------------------------------------------+----------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Описи методів -------------------------- .. _class_UDSServer_method_listen: .. rst-class:: classref-method :ref:`Error` **listen**\ (\ path\: :ref:`String`\ ) :ref:`🔗` Listens on the socket at ``path``. The socket file will be created at the specified path. \ **Note:** The socket file must not already exist at the specified path. You may need to remove any existing socket file before calling this method. .. rst-class:: classref-item-separator ---- .. _class_UDSServer_method_take_connection: .. rst-class:: classref-method :ref:`StreamPeerUDS` **take_connection**\ (\ ) :ref:`🔗` If a connection is available, returns a StreamPeerUDS with the connection. .. |virtual| replace:: :abbr:`virtual (Зазвичай, цей метод перевизначається користувачем, щоб він мав вплив.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (Цей метод не має побічних ефектів. Не змінює ніяку змінну екземпляра об'єкта.)` .. |vararg| replace:: :abbr:`vararg (Цей метод приймає будь-яке число аргументів після описаних тут.)` .. |constructor| replace:: :abbr:`constructor (Цей метод використовується для побудови типів.)` .. |static| replace:: :abbr:`static (Цей метод не потребує екземпляра для виклику, його можна викликати безпосередньо за допомогою назви класу.)` .. |operator| replace:: :abbr:`operator (Цей метод описує дійсний оператор для взаємодії з цим типом як з лівим операндом.)` .. |bitfield| replace:: :abbr:`BitField (Це значення є цілим числом, складеним у вигляді бітової маски з наступних прапорів.)` .. |void| replace:: :abbr:`void (Значення не повертається.)`