Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: Indy9 DNS property?

www.cryer.info
Managed Newsgroup Archive

Re: Indy9 DNS property?

Subject:Re: Indy9 DNS property?
Posted by:"Jamie Dale" (jamie.da..@yahoo.com)
Date:Tue, 27 Nov 2007 19:26:23

Thanks


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:474b5a17@newsgroups.borland.com...
>
> "Jamie Dale" <jamie.dale@yahoo.com> wrote in message
> news:474b3f90$1@newsgroups.borland.com...
>
>> I can find localname and peerip, but nothing dns related.
>
> If you are looking for the client's remote name, you have to perform a
> reverse DNS lookup on its IP, ie:
>
>    procedure TForm1.IdTCPServer1Connect(AThread: TIdPeerThread);
>    var
>        PeerName: String;
>    begin
>        PeerName :=
> GStack.WSGetHostByAddr(AThread.Connection.Socket.Binding.PeerIP);
>        //...
>    end;
>
>
> Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive