Hi I want to save RefreshMsg to file and later replay it. I saw the forum has getEncodedBuffer and setEncodedBuffer but I can't fine it in Ema. I saw there is an example in unit doing this:
rsslEncodeMsg(&encIter, (RsslMsg*)&refresh);
But what I have is RefreshMsg not rsslRefreshMsg, when I tried to do encoding above it seems fine. but when I decode it.
RsslMsg refreshDecode;
retval = rsslDecodeMsg(&decodeIter, (RsslMsg*)&refreshDecode);
It failed to decode here I think itis because already message is RefreshMsg not rsslRefreshMsg so c casting is not right. So I think I need to convert RefreshMsg to rsslRefreshMsg to encode it. But I don't know how.