Solved

gethostbyAddr

Posted on 2006-06-27
5
575 Views
Last Modified: 2013-11-13
I am using gethostbyaddr API in C++ to resolve DNS name for IP address.

This call takes about 3- 4 secs. Is there any better API that does the job quicker and/ better?
I need to API that would work on Win ME, 98 , XP and 2K

Thanks
0
Comment
Question by:pb_india
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 25 total points
ID: 16995552
>This call takes about 3- 4 secs
if the call takes 3-4 seconds, you have a slow DNS resolution, ie a slow DNS Server or Network.
there is no API faster/better than that.
0
 
LVL 37

Assisted Solution

by:Harisha M G
Harisha M G earned 25 total points
ID: 16995565
Hi, That depends on your connection speed. And it is always better to stick on to the default API that comes with the OS

---
Harish
0
 
LVL 2

Expert Comment

by:gran88
ID: 16996408
Depends on your library and OS.  Winsock and windows could be slow, but it doesn't sound like the problem is the client, but the server.  And no, there isn't anything better.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 262
Problems moving Excel files from local drive to server 4 70
Survey branching tutorial 11 73
Adjust the codes 3 60
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question