Encoding fragmented genericMsg

When I start encoding a RefreshMsg I dont know whether the message will be fragmented
so I cannot call refreshMsg.applyRefreshComplete() when encoding the header.

If on completing the message encoding I know that this is the last message fragment so I can call
encodeIterator.setRefreshComplete().

But I have a similar issue with genericMsg.
I cant call GenericMsg.applyMessageComplete() because I dont know whether this will be the last fragment.
But EncodeIterator does not have a setMessageComplete() method.

So How can I set messageComplete on a generic msg?

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    @kim.valentine

    Beside the GenericMsg.applyMessageComplete(), the application can also set message complete on the generic message via the following statement

    GenericMsg.flags(GenericMsgFlags.MESSAGE_COMPLETE);

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.