Thanks. By the way, how can I convert the hostname from " char FAR * "
to string so that I can reformat it ? 

-----Original Message-----
From: Guy Harris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 11, 2005 2:43 AM
To: winpcap-users@winpcap.polito.it
Subject: Re: [WinPcap-users] How to get hostname (or computer id) if we
knowip address and mac address of that host ????

To translate an IP address to a host name, use "gethostbyaddr()".  It's 
present in all modern UN*X systems and, as far as I know, in Winsock and

Winsock2 in all Win32 systems.


==================================================================
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/winpcap-users@winpcap.polito.it/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==================================================================




================================================================= This is the 
WinPcap users list. It is archived at
 http://www.mail-archive.com/winpcap-users@winpcap.polito.it/

 To unsubscribe use
 mailto: [EMAIL PROTECTED]
=================================================================

Reply via email to