C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 12-20-2001, 04:45 AM   #1
Registered User
 
Join Date: Nov 2001
Posts: 5
Question ip or hostname

Hi there,

Any idea on if a valid IP address is entered, the corresponding host name is returned and if a hostname is entered, the corresponding IP address is returned. Thanks in advance.

Johnny
jchanwh is offline   Reply With Quote
Old 12-20-2001, 07:39 PM   #2
Just one more wrong move.
 
-KEN-'s Avatar
 
Join Date: Aug 2001
Posts: 3,232
I think the functions are GetHostByName() and GetHostByAddr() (it could be GetHostByAddress(), though)

hope that helps.
__________________
Gays can't love like real people

entropysink.com -- because arses weren't designed for running websites.
-KEN- is offline   Reply With Quote
Old 04-08-2002, 08:41 PM   #3
Registered User
 
Join Date: Apr 2002
Posts: 2
mail me i will give u the code
amit_ary is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting 32 bit binary IP to decimal IP (vice-versa) Mankthetank19 C Programming 15 12-28-2009 07:17 PM
getting ip by hostname NiSA Networking/Device Communication 2 05-26-2007 10:56 PM
obtain hostname or IP afisher Networking/Device Communication 3 12-01-2004 07:46 AM
Outputting your IP and hostname Nakeerb C++ Programming 4 10-21-2002 08:24 PM


All times are GMT -6. The time now is 01:28 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22