PDComm.HsmsFrameError
Enum
The frame-level error reported in HsmsEventInfo.Detail when the protocol error is HsmsProtocolError.InvalidFrame.
public enum HsmsFrameError : uintHsmsEventInfo.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 = 5ControlBody
Enumerator
A control message carried a body.
ControlBody = 11ControlSession
Enumerator
A control message other than Reject.req did not carry session ID 0xFFFF.
ControlSession = 9HeaderField
Enumerator
A header byte has a value that the message type does not allow.
HeaderField = 10InvalidLength
Enumerator
The length field declares fewer bytes than the 10-byte HSMS header.
InvalidLength = 2LengthOverflow
Enumerator
The declared length overflows the platform's size range.
LengthOverflow = 3LimitExceeded
Enumerator
The frame exceeds the configured frame limit.
LimitExceeded = 4NeedMore
Enumerator
More bytes are needed to complete the frame.
NeedMore = 1NotData
Enumerator
A data message was expected but a control message arrived.
NotData = 12ReaderFailed
Enumerator
The frame reader already failed on this connection and accepts no more input.
ReaderFailed = 14SecsBody
Enumerator
The body of a data message is not one valid SECS-II item.
SecsBody = 13TrailingData
Enumerator
Bytes follow the frame where none were expected.
TrailingData = 6UnsupportedPType
Enumerator
The header's PType is not 0 (SECS-II).
UnsupportedPType = 7UnsupportedSType
Enumerator
The header's SType is not a supported HSMS message type.
UnsupportedSType = 8