I'm trying to use TCPNameToIP to resolve a hostname, and for some reason whenever I call to this function the CPU jumps to 100% and lags my vm, and the program hangs. Any idea why this is happening? Also is there a different way of resolving a hostname?
↧