Gemstone PhasorProtocols Library
Show/Hide TOC

# FrameParser Constructor

Creates a new FrameParser from specified parameters.

## Definition

Namespace: Gemstone.PhasorProtocols.SelFastMessage
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.180 -- Release Build+e02ba9cd4ec5d00f9d75c2a02ce31d1bc7ed731c
C#
View Source Request Example

    public FrameParser(
    	CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames,
    	bool trustHeaderLength = true,
    	MessagePeriod messagePeriod = MessagePeriod.DefaultRate
    )

VB
View Source Request Example

    Public Sub New (
    	Optional checkSumValidationFrameTypes As CheckSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames,
    	Optional trustHeaderLength As Boolean = true,
    	Optional messagePeriod As MessagePeriod = MessagePeriod.DefaultRate
    )

C++
View Source Request Example

    public:
    FrameParser(
    	CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes::AllFrames,
    	bool trustHeaderLength = true,
    	MessagePeriod messagePeriod = MessagePeriod::DefaultRate
    )

JavaScript
View Source Request Example

    Gemstone.PhasorProtocols.SelFastMessage.FrameParser = function(checkSumValidationFrameTypes, trustHeaderLength, messagePeriod);

#### Parameters

checkSumValidationFrameTypes CheckSumValidationFrameTypes (Optional)
  Frame types that should perform check-sum validation; default to AllFrames
trustHeaderLength Boolean (Optional)
  Determines if header lengths should be trusted over parsed byte count.
messagePeriod MessagePeriod (Optional)
  The desired MessagePeriod for SEL device connection.

## See Also

#### Reference

FrameParser Class
Gemstone.PhasorProtocols.SelFastMessage Namespace