nasa / bplib

Apache License 2.0
27 stars 13 forks source link

Implement optional acceptance-acknowledgment #12

Closed jpswinski closed 4 years ago

jpswinski commented 5 years ago

The bplib_accept function automatically releases the payload resources from storage. There should be an option to accept a payload without automatically deleting it, and then subsequent calls to accept will return the same payload until the payload is acknowledged by a different function call (or the same function call with different parameters passed in).

This completes the full reliable delivery of the data all the way to the application.

jpswinski commented 4 years ago

This is not the default (and only supported) behavior of the system. The bplib_ackbundle and bplib_ackpayload functions were added as a result. This was needed because the library now only maintains one copy of the bundle/payload in memory when loading/accepting - something that needed to be done for memory constrained systems.