Table of Contents

Interface ICellTransport

Namespace
KernLab.Cell.Contracts
Assembly
KernLab.Cell.Contracts.dll

IPC 载体端口(总体设计 §4——唯一换向点:Bind/Connect/Accept/Send/Receive/Close+端点描述符)。

★ 上层(协议通道/池/装载)对载体零感知——载体阶梯(InProcess/环回 TCP/UDS/shm)可换, 协议语义零网络(无 URL/DNS/端口形 API、无 TLS 面——D9;同机信任=OS 进程边界)。

★ 阶梯终点=shm:Input 以 PipeReader 序列暴露=帧体原位可解(TryDecode 零拷贝), 通道 API 不暴露 stream/copy 语义(shm-ready 验收项,§4)。

public interface ICellTransport : IAsyncDisposable
Inherited Members

Methods

BindAsync(CellEndpointDescriptor, CancellationToken)

Bind——绑定端点为服务端听点(宿主侧 spawn 前调用;载体限定描述符)。

ValueTask<ICellTransportListener> BindAsync(CellEndpointDescriptor endpoint, CancellationToken cancellationToken = default)

Parameters

endpoint CellEndpointDescriptor
cancellationToken CancellationToken

Returns

ValueTask<ICellTransportListener>

ConnectAsync(CellEndpointDescriptor, CancellationToken)

Connect——向端点发起连接(容器侧;端点未绑定即失败,绝不静默重试)。

ValueTask<ICellTransportConnection> ConnectAsync(CellEndpointDescriptor endpoint, CancellationToken cancellationToken = default)

Parameters

endpoint CellEndpointDescriptor
cancellationToken CancellationToken

Returns

ValueTask<ICellTransportConnection>