PDA

View Full Version : C/C++ Windows Sockets Question



KaraK
01-28-2002, 09:14 PM
I need to determine a remote systems host name from its address which is an in_addr form (I'm getting it from the recvfrom function which I'm going to use to recieve a UDP packet on) I've looked through the MSDN library and there appear to be 2 functions which do the job "gethostbyaddr" and "getnameinfo" which should I use ? And does anyone have any examples of how should use the damn things - the MSDN is about as helpful as a hippo carrying large amounts of cheesecake (yeah it looks interesting enough to make you keep it around but what can it actually DO for you ???)

prod
01-28-2002, 11:30 PM
try doing a search on "RCP functions"