Class UdsCellTransport
- Namespace
- KernLab.Cell
- Assembly
- KernLab.Cell.dll
UDS 载体(§4 阶梯 1'——Linux;去 IP 栈。Windows 命名管道挂死实证未复验前不启用,§4/R1)。
public sealed class UdsCellTransport : ICellTransport, IAsyncDisposable
- Inheritance
-
UdsCellTransport
- Implements
- Inherited Members
Constructors
UdsCellTransport(string?)
构造。
public UdsCellTransport(string? socketDirectory = null)
Parameters
socketDirectorystringsocket 文件落点目录(缺省临时目录;Bind 端点地址为绝对路径时忽略)。
Methods
BindAsync(CellEndpointDescriptor, CancellationToken)
Bind——绑定端点为服务端听点(宿主侧 spawn 前调用;载体限定描述符)。
public ValueTask<ICellTransportListener> BindAsync(CellEndpointDescriptor endpoint, CancellationToken cancellationToken = default)
Parameters
endpointCellEndpointDescriptorcancellationTokenCancellationToken
Returns
ConnectAsync(CellEndpointDescriptor, CancellationToken)
Connect——向端点发起连接(容器侧;端点未绑定即失败,绝不静默重试)。
public ValueTask<ICellTransportConnection> ConnectAsync(CellEndpointDescriptor endpoint, CancellationToken cancellationToken = default)
Parameters
endpointCellEndpointDescriptorcancellationTokenCancellationToken
Returns
DisposeAsync()
public ValueTask DisposeAsync()