stub for creating finished PDU

This commit is contained in:
Robin Müller 2022-09-05 10:30:55 +02:00
parent 134d5a1411
commit b984128de5
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 8 additions and 0 deletions

View File

@ -80,6 +80,11 @@ ReturnValue_t cfdp::DestHandler::performStateMachine() {
} }
} }
if (step == TransactionStep::SENDING_FINISHED_PDU) { if (step == TransactionStep::SENDING_FINISHED_PDU) {
result = sendFinishedPdu();
if (result != OK) {
status = result;
}
finish();
} }
return status; return status;
} }
@ -382,3 +387,5 @@ ReturnValue_t cfdp::DestHandler::noticeOfCompletion() {
} }
return OK; return OK;
} }
ReturnValue_t cfdp::DestHandler::sendFinishedPdu() { return 0; }

View File

@ -143,6 +143,7 @@ class DestHandler {
ReturnValue_t handleEofPdu(const PacketInfo& info); ReturnValue_t handleEofPdu(const PacketInfo& info);
ReturnValue_t handleMetadataParseError(const uint8_t* rawData, size_t maxSize); ReturnValue_t handleMetadataParseError(const uint8_t* rawData, size_t maxSize);
ReturnValue_t handleTransferCompletion(); ReturnValue_t handleTransferCompletion();
ReturnValue_t sendFinishedPdu();
ReturnValue_t noticeOfCompletion(); ReturnValue_t noticeOfCompletion();
ReturnValue_t checksumVerification(); ReturnValue_t checksumVerification();
void finish(); void finish();