StreamPeerUds
A stream peer that handles UNIX Domain Socket (UDS) connections.
A stream peer that handles UNIX Domain Socket (UDS) connections.
A stream peer that handles UNIX Domain Socket (UDS) connections. This object can be used to connect to UDS servers, or also is returned by a UDS server. 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
StreamPeerUdsConstructor
public StreamPeerUds();Methods3
BindError
public Error Bind(string path);Opens the UDS socket, and binds it to the specified socket path.
This method is generally not needed, and only used to force the subsequent call to StreamPeerUds.ConnectToHost to use the specified path as the source address.
| Name | Type | Default |
|---|---|---|
path | string | — |
ErrorConnectToHostError
public Error ConnectToHost(string path);Connects to the specified UNIX Domain Socket path. Returns OK on success.
| Name | Type | Default |
|---|---|---|
path | string | — |
ErrorGetConnectedPathstring
public string GetConnectedPath();Returns the socket path of this peer.
string