summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Beharry <justin.beharry@livio.io>2022-08-30 10:33:22 -0400
committerJustin Beharry <justin.beharry@livio.io>2022-08-30 10:33:22 -0400
commit142f57e4124c4c9ba2b6a2a06cf57e5813a4620a (patch)
treec2c8288946e4e9b00f3c206aa2e482b885e64536
parent375c4130d5eca3dd8a7ec1f3dd17b19c732a989b (diff)
downloadsdl_ios-142f57e4124c4c9ba2b6a2a06cf57e5813a4620a.tar.gz
Potentially fix streaming issue
-rw-r--r--SmartDeviceLink/private/SDLProtocolReceivedMessageProcessor.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/SmartDeviceLink/private/SDLProtocolReceivedMessageProcessor.m b/SmartDeviceLink/private/SDLProtocolReceivedMessageProcessor.m
index 554528618..c65ffc5f9 100644
--- a/SmartDeviceLink/private/SDLProtocolReceivedMessageProcessor.m
+++ b/SmartDeviceLink/private/SDLProtocolReceivedMessageProcessor.m
@@ -206,7 +206,7 @@ typedef NS_ENUM(NSUInteger, ProcessorState) {
self.header = [SDLProtocolHeader headerForVersion:self.version];
[self.header parse:self.headerBuffer];
//todo - Payload!
- messageHasEnded = YES; //TODO - test this
+ messageHasEnded = YES;
} else {
self.state = DATA_PUMP_STATE;
}
@@ -253,18 +253,16 @@ typedef NS_ENUM(NSUInteger, ProcessorState) {
break;
case MESSAGE_4_STATE:
+ [self.headerBuffer appendBytes:&currentByte length:sizeof(currentByte)];
// If there is no payload, we are done.
if (self.dataLength == 0) {
- //TODO - what does the header and payload look like at this point. What should they look like?
self.header = [SDLProtocolHeader headerForVersion:self.version];
[self.header parse:self.headerBuffer];
- //todo - still missing the payload
messageHasEnded = YES;
break;
}
self.state = DATA_PUMP_STATE;
- [self.headerBuffer appendBytes:&currentByte length:sizeof(currentByte)];
break;
case DATA_PUMP_STATE: