hostname to IP address (udp)

Blitz3D Forums/Blitz3D Programming/hostname to IP address (udp)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.