Among most of the Elektron consumer examples, most of the ReqMsg have not set domain. I mean ReqMsg::domainType() functions, Why?
btw. the following code crash, could anyone take a look? Thank!
RicList.addAscii( "TRI.N" ).addAscii( "AAPL.O" ).complete();
FieldList.fixedWidth( 2 ).addInt( 21 ).addInt( 22 ).addInt( 25 ).complete();
MyReqMsg.serviceName( "EED_DELAYED" )
.payload( ElementList().addArray( ":ItemList", RicList )
.addUInt( ":ViewType", 1 ).addArray( ":ViewData", FieldList)
MyReqMsg.getDomainType();// this line crash
The default value of domainType in the ReqMsg is MarketPrice(6), so there is no need to set domain for MarketPrice request message.
With regard to the crash issue, I'm able to replicate the issue in our application. However, this usage of ReqMsg is not supported. The EMA Reference Manual document states in the description of ReqMsg class that decoding of just encoded ReqMsg in the same application is not supported.
Please see the following screenshot for the reference.
Do you have an example on how to use : " rtmesBuffer" ? RMTES Decoder EMA provides a built in RMTES decoder. If desired, application may cache RmtesBuffer objects and apply all the received changes to them