Skip to content
Start free evaluation

PDComm.HsmsFrameError

Enum

The frame-level error reported in HsmsEventInfo.Detail when the protocol error is HsmsProtocolError.InvalidFrame.

public enum HsmsFrameError : uint

HsmsEventInfo.Value1 and HsmsEventInfo.Value2 carry the error's two sizes, its one invalid value, a header offset and byte, or (for HsmsFrameError.SecsBody) the SECS-II error offset in HsmsEventInfo.Value1 only. The stream framing values (HsmsFrameError.NeedMore through HsmsFrameError.TrailingData, and HsmsFrameError.ReaderFailed) are not reported in events by the current native library, which closes the connection instead.

Members

BufferTooSmall

Enumerator

An output buffer was too small for the frame.

BufferTooSmall = 5

ControlBody

Enumerator

A control message carried a body.

ControlBody = 11

ControlSession

Enumerator

A control message other than Reject.req did not carry session ID 0xFFFF.

ControlSession = 9

HeaderField

Enumerator

A header byte has a value that the message type does not allow.

HeaderField = 10

InvalidLength

Enumerator

The length field declares fewer bytes than the 10-byte HSMS header.

InvalidLength = 2

LengthOverflow

Enumerator

The declared length overflows the platform's size range.

LengthOverflow = 3

LimitExceeded

Enumerator

The frame exceeds the configured frame limit.

LimitExceeded = 4

NeedMore

Enumerator

More bytes are needed to complete the frame.

NeedMore = 1

NotData

Enumerator

A data message was expected but a control message arrived.

NotData = 12

ReaderFailed

Enumerator

The frame reader already failed on this connection and accepts no more input.

ReaderFailed = 14

SecsBody

Enumerator

The body of a data message is not one valid SECS-II item.

SecsBody = 13

TrailingData

Enumerator

Bytes follow the frame where none were expected.

TrailingData = 6

UnsupportedPType

Enumerator

The header's PType is not 0 (SECS-II).

UnsupportedPType = 7

UnsupportedSType

Enumerator

The header's SType is not a supported HSMS message type.

UnsupportedSType = 8