When doing binary data transfer from the network analyzer. The header already has how many bytes the message has. Why is there a newline character to terminate the message?
Thank you in advance for your help.
When doing binary data transfer from the network analyzer. The header already has how many bytes the message has. Why is there a newline character to terminate the message?
Thank you in advance for your help.
Hello,
This has been like this as far back as I can remember. After the bin-block read I read one more byte (ascii 010, i.e. new line) and call it a 'hanging line feed' just to flush the buffer. If you do not do this buffer flushing and then assert another command a -410 "Query INTERUPPTED" or a -420, "Query UNTERMINATED" error will result (not sure which, as I do not remember).
Sincerely,
tsilchia.
Hello,
This has been like this as far back as I can remember. After the bin-block read I read one more byte (ascii 010, i.e. new line) and call it a 'hanging line feed' just to flush the buffer. If you do not do this buffer flushing and then assert another command a -410 "Query INTERUPPTED" or a -420, "Query UNTERMINATED" error will result (not sure which, as I do not remember).
Sincerely,
tsilchia.