Search code examples
iosobjective-chostgethostbynamenslookup

Is there any iOS SDK equivalent of gethostbyname and inet_ntoa functions?


I saw several questions here, but is's still not clear for me. And could Apple reject for using standard gethostbyname function?


Solution

  • It's in the C standard library (at least according to POSIX). You can use all C library functions in your iOS app.