Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
UDSServer
Inherits: SocketServer < RefCounted < Object
A Unix Domain Socket (UDS) server.
Description
A Unix Domain Socket (UDS) server. Listens to connections on a socket path and returns a 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.
Methods
Method Descriptions
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.
StreamPeerUDS take_connection() 🔗
If a connection is available, returns a StreamPeerUDS with the connection.