Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Oct : [Q] TClientSocket - Reverse DNS when Address is not in the DNS

www.cryer.info
Managed Newsgroup Archive

[Q] TClientSocket - Reverse DNS when Address is not in the DNS

Subject:[Q] TClientSocket - Reverse DNS when Address is not in the DNS
Posted by:"Donovan J. Edye" (donovan%nospam%@namsys.com.au)
Date:10 Oct 2005 17:51:06

G'Day,

- Env: WIndows XP Professional SP2
- Delphi 6.03 Enterprise

I am using a TClientSocket to connect to a remote server. I am using
the Address property of the component as I don't want the component to
do a reverse DNS lookup on connect. The socket is being used in
blocking mode. Now all works well if I have a valid DNS server
configured. However should I *not* have a valid DNS server configured
then the socket is slow and unresponsive. The CPU is not at 100% but
the GUI does not repaint. So what is going on here? At this point the
only thing I can think of doing is adding an entry to the hosts file,
but there must be a better way. And no I do not want to change to
another component.

TIA

Replies:

www.cryer.info
Managed Newsgroup Archive