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

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Reply via email to