Table of Contents

Class HelloAckFrame

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

握手第二步(宿主 → 容器):选定版本(交集最高)、选定特征位、观察标签、帧长上限。

[WireMessageTag(2)]
public sealed record HelloAckFrame : CellFrame, IEquatable<CellFrame>, IEquatable<HelloAckFrame>
Inheritance
HelloAckFrame
Implements
Inherited Members

Constructors

HelloAckFrame()

public HelloAckFrame()

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

MaxFrameLength

选定帧长上限(≤ MaxFrameLength——此后超限=协议错误)。

public required int MaxFrameLength { get; init; }

Property Value

int

ObservedLabel

观察标签——对 Hello 实例标签的回执(不符即断)。UTF-8。

[WireMember(MaxCount = 128)]
public required ReadOnlyMemory<byte> ObservedLabel { get; init; }

Property Value

ReadOnlyMemory<byte>

SelectedFeatures

选定特征位(双方交集)。

public required uint SelectedFeatures { get; init; }

Property Value

uint

SelectedVersion

选定协议版本(双方交集最高)。

public required int SelectedVersion { get; init; }

Property Value

int

Methods

Equals(CellFrame?)

public override sealed bool Equals(CellFrame? other)

Parameters

other CellFrame

Returns

bool

Equals(HelloAckFrame?)

public bool Equals(HelloAckFrame? other)

Parameters

other HelloAckFrame

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(HelloAckFrame?, HelloAckFrame?)

public static bool operator ==(HelloAckFrame? left, HelloAckFrame? right)

Parameters

left HelloAckFrame
right HelloAckFrame

Returns

bool

operator !=(HelloAckFrame?, HelloAckFrame?)

public static bool operator !=(HelloAckFrame? left, HelloAckFrame? right)

Parameters

left HelloAckFrame
right HelloAckFrame

Returns

bool