Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Sep : Re: DataPortProtection - how use it by code??
| Subject: | Re: DataPortProtection - how use it by code?? |
| Posted by: | "Alessandro Pugno" (pug..@consulinformatica.it) |
| Date: | Tue, 25 Sep 2007 09:13:25 |
The error is a connection error, because the DataPortProtection <>
ftpdpsPrivate
I try to explain the problem.
The IDftp object I dropped in a form (code below) works if
DataPortProtection = ftpdpsPrivate.
If I put the other value (ftpdpsclear) an error occurs from the server
(unwilling to accept security parameter).
DataPortProtection is published, and there is no problem to change his
value.
The problem is that I don't want to use any form, I would create a unit to
define a new object, but the command
DataPortProtection := ftpdpsPrivate is wrong (undeclared identifier), the
constant ftpdpsPrivate is not valide.
object IdFTP1: TIdFTP
IOHandler = IdSSLIOHandlerSocketOpenSSL1
AutoLogin = True
Host = 'xxftp1.xxxxx.com'
Passive = True
DataPortProtection = ftpdpsPrivate
AUTHCmd = tAuthTLSP
DataPort = 2110
DataPortMin = 20000
DataPortMax = 20100
TransferType = ftASCII
Port = 2110
UseExtensionDataPort = True
ProxySettings.ProxyType = fpcmNone
ProxySettings.Port = 0
UseTLS = utUseExplicitTLS
Left = 304
Top = 16
end
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ha scritto nel messaggio
news:46f80718$3@newsgroups.borland.com...
>
> "Alessandro Pugno" <pugno@consulinformatica.it> wrote in message
> news:46f778de$1@newsgroups.borland.com...
>
>> When I try to use it in an unit with the code below, i get an error
>> when I configure this parameters:
>
> What is the actual error you are getting? Is it a run-time error or a
> compile-time error?
>
>
> Gambit