UdsServer
A Unix Domain Socket (UDS) server.
A Unix Domain Socket (UDS) server.
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.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
UdsServerConstructor
public UdsServer();Methods2
ListenError
public Error Listen(string path);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.
| Name | Type | Default |
|---|---|---|
path | string | — |
ErrorTakeConnectionStreamPeerUds
public StreamPeerUds TakeConnection();If a connection is available, returns a StreamPeerUDS with the connection.
StreamPeerUds