BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help IdFTP

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Ivan
Guest





PostPosted: Fri Mar 18, 2005 2:33 pm    Post subject: Help IdFTP Reply with 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
Guillem
Guest





PostPosted: Fri Mar 18, 2005 4:26 pm    Post subject: Re: Help IdFTP Reply with 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...
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





PostPosted: Fri Mar 18, 2005 4:34 pm    Post subject: Re: Help IdFTP Reply with quote



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





PostPosted: Fri Mar 18, 2005 7:14 pm    Post subject: Re: Help IdFTP Reply with quote


"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.