Is it possible to still use inet_ntoa() and not worry about Windows User Permissions? Do I need to put a try/catch block around inet_ntoa() to catch any possible problems if User Permissions prevent me from getting the IP address of an interface?
Is it possible to still use inet_ntoa() and not worry about Windows User Permissions?
Share
inet_ntoadoesn’t raise exceptions. It returnsNULLin case of an error.It’s hard to see how user permissions could come into this function since it is just an integer to string conversion.