nasa / bplib

Apache License 2.0
27 stars 13 forks source link

Implement PCF application acknowledgment request #7

Closed jpswinski closed 4 years ago

jpswinski commented 5 years ago

Need to understand what the Processing Control Flag (PCF) "Acknowledgment by application is requested" means, and then implement it.

It is possible that this could be used to request that an application acknowledge the receipt of the payload before the bundle node deletes the payload from its own storage.

jpswinski commented 4 years ago

The library should be updated to add an additional return code - BP_PENDINGAPPLICATION.

The payload storage structure needs to have a flag for whether or not the application needs to acknowledge the payload. On bplib_accept, the flag is checked and if set and the payload would otherwise be accepted, the return code should be BP_PENDINGAPPLICATION.

This return code should be negative to force an application to specifically handle it.

jpswinski commented 4 years ago

BP_PENDINGAPPLICATION return code implemented