Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Dec : Re: Looking for a good FTP component
| Subject: | Re: Looking for a good FTP component |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 12 Dec 2006 17:26:42 |
"Boian Mitov" <mitov@mitov.com> wrote in message
news:457f4943$1@newsgroups.borland.com...
> I downloaded it yesterday and when I call Put the OnWork is not fired.
Which version specifically did you download?
> But not in the one I specified.
Yes, it does. Follow the logic for yourself.
- Put() calls InternalPut().
- when Passive is True:
- InternalPut() calls SendCmd()
- SendCmd() calls CheckConnected()
- CheckConnected() raises EIdNotConnected if the connection
is not opened yet
- SendCmd() then calls IOHandler.WriteLn()
- WriteLn() eventually calls WriteDirect()
- WriteDirect() calls CheckForDisconnect()
- CheckForDisconnect raises EIdConnClosedGracefully
if the server closed the socket.
- when Passive is False:
- a TIdSimpleServer is opened
- SendCmd() is called
- refer to above
- the upload proceeds, and similar checking occurs for the rest of
the operations...
Gambit
none