Andrew Kennard
16-Feb-2005, 07:03 AM
Hi all
I've had a quick go at using the winsock gethostbyname from vdf and am
trying to get the ip address for a given host name
The call seems to return a 16 byte structure at the end of which is a
pointer to and array of pointers that contain the ip address !
I understand the memory address pointer 'thing' but no matter what i've
tried I can seem to get the correct ip address out
ultimately I want to 'connect' to this ip address/socket
I've written winsock 'listening' code to get vdf to process incoming
requests but have always used 'all ports' so it's never mattered
anyone done anything in this area or is there a pkg i've missed that uses
this function somewhere ?
TIA
Andrew Kennard
I've had a quick go at using the winsock gethostbyname from vdf and am
trying to get the ip address for a given host name
The call seems to return a 16 byte structure at the end of which is a
pointer to and array of pointers that contain the ip address !
I understand the memory address pointer 'thing' but no matter what i've
tried I can seem to get the correct ip address out
ultimately I want to 'connect' to this ip address/socket
I've written winsock 'listening' code to get vdf to process incoming
requests but have always used 'all ports' so it's never mattered
anyone done anything in this area or is there a pkg i've missed that uses
this function somewhere ?
TIA
Andrew Kennard