lnls-dig / halcs

Hardware Abstraction Layer for Control Systems
GNU General Public License v3.0
1 stars 4 forks source link

[CLOSED] [msg] read_block function cannot return 0 bytes #64

Closed lerwys closed 8 years ago

lerwys commented 8 years ago

Issue by lerwys Saturday Dec 20, 2014 at 19:08 GMT Originally opened as https://github.com/lnls-dig/bpm-sw/issues/64


Problem: read_block () cannot return 0 bytes as a valid read block, as it is interpreted as to send a return code only (message: reply code). In general, read_block would send more than 0 bytes and send the correct frame (message: reply code, return code and data).

This causes the client side to interpret the incoming message as invalid, which is not correct behavior.