🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #309

Re: IdFTPServer server and firewall

#309
From: Remy Lebeau (TeamB)
Date: Thu, 10 Apr 2008 05:44
46 lines
2390 bytes
"roladdon" <roladdon@PutMyServerHere.ca> wrote in message 
news:47fd80d1$1@newsgroups.borland.com...

> I just wanted to make sure that what I am doing is right (I
> havn't used TIdSync before):

That will work fine.  I tend to add a static method to my TIdSync classes as 
well to hide the 'new' and 'delete' calls and streamline the code that uses 
TIdSync, ie:

    class TUpdateMemo : public TIdSync
    {
    private:
        AnsiString txt;

        __fastcall TUpdateMemo(const AnsiString &s) : TIdSync() { txt = s; }

    protected:
        void __fastcall DoSynchronize(void)
        {
            Form1->Memo1->Lines->Add(txt);
        }

    public:
        static void __fastcall Add(const AnsiString &s)
        {
            TUpdateMemo *um = new TUpdateMemo(s);
            try {
                um->Synchronize();
            } __finally {
                delete um;
            }
        }
    };


    {
        //...
        TUpdateMemo::Add("PASV command");

        //...
    }


Gambit 
Technical Details
Message-ID: <47fda93d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <47fbd697@newsgroups.borland.com> <47fbdfde$1@newsgroups.borland.com> <47fc0c8a@newsgroups.borland.com> <47fc0dc4$1@newsgroups.borland.com> <47fc1653@newsgroups.borland.com> <47fc471d$1@newsgroups.borland.com> <47fc6112$1@newsgroups.borland.com> <47fcd43b$1@newsgroups.borland.com> <47fcefc5@newsgroups.borland.com> <47fcf224$1@newsgroups.borland.com> <47fd067c$1@newsgroups.borland.com> <47fd80d1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3bf5299e11a8ee87
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <47fbd697@newsgroups.borland.com> <47fbdfde$1@newsgroups.borland.com> <47fc0c8a@newsgroups.borland.com> <47fc0dc4$1@newsgroups.borland.com> <47fc1653@newsgroups.borland.com> <47fc471d$1@newsgroups.borland.com> <47fc6112$1@newsgroups.borland.com> <47fcd43b$1@newsgroups.borland.com> <47fcefc5@newsgroups.borland.com> <47fcf224$1@newsgroups.borland.com> <47fd067c$1@newsgroups.borland.com> <47fd80d1$1@newsgroups.borland.com>
Subject: Re: IdFTPServer server and firewall
Date: Wed, 9 Apr 2008 22:44:35 -0700
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 76.89.173.41
Message-ID: <47fda93d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1207806269 76.89.173.41 (9 Apr 2008 22:44:29 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.isoc.lu!newsgroups.borland.com!not-for-mail