Xdeon / ecoap

0 stars 1 forks source link

Make transparent block-wise transfer optional #8

Open Xdeon opened 4 years ago

Xdeon commented 4 years ago

Currently block-wise transfer is handled by ecoap_handler automatically, which means it stores segments of the payload in the process state until it is complete or expired, and will only invoke user-defined handler function when the transfer finished.

This method is easy for users, but requires potential large memory to operate. Does it make sense to have it optional? That is to say, user can choose whether to deal with the blocks themselves or not.