LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DNS resolver API in Labwindows

How can I resolve a URL name to an IP address in Labwindows?
My remote device is base on UDP so I can use TCP connection.
Thanks for any help.

0 Kudos
Message 1 of 2
(3,140 Views)
Starting with CVI 8.5, there's a function in the Internet Library called InetResolveHostname that does exactly what you want. Otherwise, you can use the Windows SDK functions to do this. Take a look at gethostbyname and inet_ntoa.

Mert A.
National Instruments
0 Kudos
Message 2 of 2
(3,138 Views)