Class HelloAckFrame
握手第二步(宿主 → 容器):选定版本(交集最高)、选定特征位、观察标签、帧长上限。
[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
MaxFrameLength
选定帧长上限(≤ MaxFrameLength——此后超限=协议错误)。
public required int MaxFrameLength { get; init; }
Property Value
ObservedLabel
观察标签——对 Hello 实例标签的回执(不符即断)。UTF-8。
[WireMember(MaxCount = 128)]
public required ReadOnlyMemory<byte> ObservedLabel { get; init; }
Property Value
SelectedFeatures
选定特征位(双方交集)。
public required uint SelectedFeatures { get; init; }
Property Value
SelectedVersion
选定协议版本(双方交集最高)。
public required int SelectedVersion { get; init; }
Property Value
Methods
Equals(CellFrame?)
public override sealed bool Equals(CellFrame? other)
Parameters
otherCellFrame
Returns
Equals(HelloAckFrame?)
public bool Equals(HelloAckFrame? other)
Parameters
otherHelloAckFrame
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(HelloAckFrame?, HelloAckFrame?)
public static bool operator ==(HelloAckFrame? left, HelloAckFrame? right)
Parameters
leftHelloAckFramerightHelloAckFrame
Returns
operator !=(HelloAckFrame?, HelloAckFrame?)
public static bool operator !=(HelloAckFrame? left, HelloAckFrame? right)
Parameters
leftHelloAckFramerightHelloAckFrame