 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ivan Guest
|
Posted: Fri Mar 18, 2005 2:33 pm Post subject: Help IdFTP |
|
|
Hello
Because the event onWorkBegin is always bringing variable AWorkCountMax = 0,
do I have to implement some thing in the idFTPServer?
Thank you,
Ivan
|
|
| Back to top |
|
 |
Guillem Guest
|
Posted: Fri Mar 18, 2005 4:26 pm Post subject: Re: Help IdFTP |
|
|
Hi,
you only need to implement the OnStoreFile and OnRetrieveFile event
handlers. It's better that you don't try to implement storing/retrieving
outside these handlers.Of course, that gives you a very simple plain FTP
server.
--
Best regards :)
Guillem Vicens
Dep. informática Green Service SA
[email]guillemvicens (AT) clubgreenoasis (DOT) com[/email]
www.clubgreenoasis.com
"Ivan" <ibmoreno (AT) bol (DOT) com.br> escribió en el mensaje
news:423af45e$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hello
Because the event onWorkBegin is always bringing variable AWorkCountMax =
0,
do I have to implement some thing in the idFTPServer?
Thank you,
Ivan
|
|
|
| Back to top |
|
 |
Ivan Guest
|
Posted: Fri Mar 18, 2005 4:34 pm Post subject: Re: Help IdFTP |
|
|
Hi,
Yes, it is already implemented, more I wanted to create a Progress when the
file is lowering in the customer, I am not getting because in the event
onWorkBegin variable AWorkCountMax is always with the value the same to
zero.
Ivan
"Guillem" <guillemvicens (AT) clubgreenoasis (DOT) com> escreveu na mensagem
news:423b014e$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi,
you only need to implement the OnStoreFile and OnRetrieveFile event
handlers. It's better that you don't try to implement storing/retrieving
outside these handlers.Of course, that gives you a very simple plain FTP
server.
--
Best regards :)
Guillem Vicens
Dep. informática Green Service SA
[email]guillemvicens (AT) clubgreenoasis (DOT) com[/email]
www.clubgreenoasis.com
"Ivan" <ibmoreno (AT) bol (DOT) com.br> escribió en el mensaje
news:423af45e$1 (AT) newsgroups (DOT) borland.com...
Hello
Because the event onWorkBegin is always bringing variable AWorkCountMax
=
0,
do I have to implement some thing in the idFTPServer?
Thank you,
Ivan
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Mar 18, 2005 7:14 pm Post subject: Re: Help IdFTP |
|
|
"Ivan" <ibmoreno (AT) bol (DOT) com.br> wrote
| Quote: | the event onWorkBegin is always bringing variable AWorkCountMax = 0
|
During a download, the FTP protocol has no way of knowing ahead of time how
large a data transfer will be before sending the data. That is why the
AWorkCountMAx is always 0. You will have to retreive the file size before
you start the transfer. Either by sending a SIZE command, or alternatively
by retreiving a directory listing for servers that don't support the SIZE
command.
Gambit
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|