April 4th, 2004, 12:50 AM
using gethostbyname , getaddrinfo & WSAAsyncGetHostByName
basically these 3 functions retrieve address info of the remote computer so that the info can be passed to other functions like connect or sendto
what i want to do is a client that broadcasts UDP packets to all my computers on my network installed with a custom server .
now i feel that gethostbyname is the worst one to use because it blocks and freezes the client.
WSAAsyncGetHostByName doesnt block but is not designed to provide parallel resolution of several names. especially it's callback message doesnt even have the host info in it's lParam or WParam.
i dont really know much about getaddrinfo but i am guessing it is the ideal function for my program
but all my computers are on win98 only as http://msdn.microsoft.com/library/de...addrinfo_2.asp says winxp must be used.
any suggestions on what i should do??
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!