01-05-2011 02:32 AM
Hi All
I want to open telnet socket
So i did it like in example.
Actually I have 2 questions
1. in InetTelnetOpen I always get Handle == 0. Is it ok? (I can verify that I connected. If I disconnect the device
get the negative handle)
2. in InetTelnetWrite I get 0 too. But i don't see any activity in my device.
01-05-2011 05:46 PM
Yes, a Telnet handle of 0 is expected. As well as a result return value of 0 from the write. What was returned to the Bytes Written parameter of the write? This should show the number of successfully transferred bytes of data. If this is 0, then something could be wrong with your device, or more likely the write buffer and or the line terminating characters. Is the value in write buffer NUL-terminating? If not, then you need to specify the number of Bytes To Write.
01-06-2011 01:46 AM
Thank you
I will check