Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Re: Indy 10, POP3 and SSL/TLS

www.cryer.info
Managed Newsgroup Archive

Re: Indy 10, POP3 and SSL/TLS

Subject:Re: Indy 10, POP3 and SSL/TLS
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 25 Apr 2006 11:00:21

"Sasa Zeman" <public@szutils.net> wrote in message
news:xn0ele74a1bepq000@newsgroups.borland.com...

> procedure TIdPOP3.InitComponent;
> begin
>   inherited;
>   ...
>
> End breakpoint is calling of gethostname, which actually trigger
> firewall:

There are only 4 places throughout Indy where gethostname() is ever called:

    - IndyComputerName() in IdGlobalProtocols.pas under Linux only

    - ReadHostName() in IdStackDotNet.pas, IdStackLinux.pas, and
IdStackWindows.pas

None of those are called by TIdPOP3 directly.  Looking into it further, I
believe the real cause of the issue is in IdStack.pas:

    function IdStackFactory: TIdStack;
    begin
        Result := GStackClass.Create;
        ...
        Result.FHostName := Result.ReadHostName; // <-- here
    end;

That means that the HostName is being read when Indy initializes its socket
API stack at startup.  Why that is being done, I do not know.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive