aasdk/src/Messenger
Simon.Dean f80e72c480 Rework Message Handling.
Slight tweaks
- Add isInterleaved boolean
- If message is NULL and Frame Type is MIDDLE or LAST, then look for an existing message in buffer (if the message_ is null, then we need a FIRST or BULK frame)
- If message is still NULL, then we will create a new message, but recognise it as a valid frame ONLY if this is a FIRST or BULK frame because we cannot start on a MIDDLE or LAST.
- Rename recentFrameType to thisFrameType for more accuracy
- Only Resolve the Frame if the frame is BULK or LAST and the frame is valid.
- If the frame is interleaved, then we will use our interleavedPromise handler. Only resolve the main promise if the frame is not interleaved.
- Also reset message once resolved.
- Carry on reading if the original promise is not resolved (ie FIRST, MIDDLE, or Interleaved frame)
- Add some counters for debugging purposes.
2022-02-11 12:35:07 +00:00
..
ChannelId.cpp Rearrange directory structure 2020-07-04 09:37:43 -05:00
ChannelReceiveMessageQueue.cpp Rearrange directory structure 2020-07-04 09:37:43 -05:00
ChannelReceivePromiseQueue.cpp Rearrange directory structure 2020-07-04 09:37:43 -05:00
Cryptor.cpp Switch decrypt() to read the number of bytes from the frame size. 2022-02-11 10:29:02 +00:00
FrameHeader.cpp Rearrange directory structure 2020-07-04 09:37:43 -05:00
FrameSize.cpp Swap getSize() to getFrameSize() and add totalSize() for completeness. 2022-02-11 10:19:12 +00:00
FrameType.cpp Support FrameType descriptor 2022-02-11 10:33:36 +00:00
Message.cpp Rearrange directory structure 2020-07-04 09:37:43 -05:00
MessageId.cpp Rearrange directory structure 2020-07-04 09:37:43 -05:00
MessageInStream.cpp Rework Message Handling. 2022-02-11 12:35:07 +00:00
MessageInStream.ut.cpp Rearrange directory structure 2020-07-04 09:37:43 -05:00
MessageOutStream.cpp Rearrange directory structure 2020-07-04 09:37:43 -05:00
MessageOutStream.ut.cpp Rearrange directory structure 2020-07-04 09:37:43 -05:00
Messenger.cpp Rework Message Handling. 2022-02-11 12:35:07 +00:00
Messenger.ut.cpp Rearrange directory structure 2020-07-04 09:37:43 -05:00
Timestamp.cpp Rearrange directory structure 2020-07-04 09:37:43 -05:00