LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

telnet in cvi

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.

0 Kudos
Message 1 of 3
(3,124 Views)

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.

National Instruments
0 Kudos
Message 2 of 3
(3,089 Views)

Thank you

I will check

0 Kudos
Message 3 of 3
(3,079 Views)