06-25-2014 03:18 PM
Hello Folks,
I am trying to do Telnet Read from my DUT. At this point, I am not sure about the #bytes to read, so I am considering using the "normal" or "line" mode reading chunks of data with a small timeout (~50mS order).
Is there anyway to read the #bytes in the buffer so I know exactly how many bytes I need to be reading, something similar to what we have for Visa?
Please let me know.
Thanks.
Solved! Go to Solution.
06-25-2014 05:11 PM
06-26-2014 05:44 PM
Hey Dennis,
I've used this in the past with luck. I suppose we dont have something similar for Telnet?
06-26-2014 05:47 PM
No, as Denis said. There is no buffer here to read. Telnet is an unbuffered protocol so there isn't a bytes at port.
If you are truly doing a telnet then line mode is correct protocol for determining end of line. If you are doing non terminal type stuff, then the message packaging and end of message terminator is up to you.