NSHost.current()


(Sai Kanduri) #1

Hi All,

I am trying to implement the NSHost.current() .The c function getifaddrs() is invisible to NSHost and hence we cannot use that . The same implementation on OSx gives the following the output :

Basically it gives all the details pertaining to the current host.

So I tried to get the details using getaddrinfo(“127.0.0.1”,…) / gethostbyname(“localhost”) and am only able to get localhost /127.0.0.1 from the address list .

Please let me know if there are any options to getifaddrs()

Thanks & Regards,

Sai Hema