I have an application where I need to send a file to an FTP server. I only have the FTP server name (and not its IP address).
I tried using the dnsclient library however when compiling, I am getting the following errors:
lib/dnsclient/dnsclient.cpp:206:86: 'htons' was not declared in this scope
lib/dnsclient/dnsclient.cpp:299:59: 'htons' was not declared in this scope
lib/dnsclient/dnsclient.cpp:419:32: 'class IPAddress' has no member named 'raw_address'
I would appreciate any help in getting this resolved.