I'm looking for a way to convert a hostname (say, www.google.com) to it's IP address (integer or dotted) for a game which uses the UDP protocol.
I've looked at "Get integer IP from any hostname EG" by skn3[ac] in the code archives, but I don't have the libs and includes mentioned at the top of the code. (or even understand why they are commented out - I mean, the code doesn't compile without them... does it?)
I seem to remember someone saying I could accept a TCP connection soley for resolving the hostname, then use UDP for everything else... If someone could provide details on how to do this I'd appreciate it, but I would prefer to be able to do the whole thing using only UDP.
Thanks.
I've looked at "Get integer IP from any hostname EG" by skn3[ac] in the code archives, but I don't have the libs and includes mentioned at the top of the code. (or even understand why they are commented out - I mean, the code doesn't compile without them... does it?)
I seem to remember someone saying I could accept a TCP connection soley for resolving the hostname, then use UDP for everything else... If someone could provide details on how to do this I'd appreciate it, but I would prefer to be able to do the whole thing using only UDP.
Thanks.