Re: [twsocket] Simple FTP.Put Example

2008-01-01 Thread Johnnie Norsworthy
Thanks for the help. As always it turns out I had a firewall issue.
After resolving that I was able to figure out the appropriate steps.

Happy New Year!

--Johnnie Norsworthy - RE-Minder Software
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Simple FTP.Put Example

2008-01-01 Thread Arno Garrels
Johnnie Norsworthy wrote:
> Is there a simple example of what is necessary to transmit a file
> using the FTP client?

Yes, look at the (OverbyteIcs)FtpTst demo.

> But what is the methods I need to use to connect, send the file, and
> then disconnect? I will be doing this in synchronous mode.

See above, instead of the async-methods use the sync-methods like
Open, User, Pass, Cwd, TypeSet, Put etc.
 
> I see the Count parameter in FTP.OnProgress; does that represent the
> number of bytes sent, 

Either bytes sent or received.

> and do I need to initialize my progress
> par.maximum to the total file bytes of the local file?

Yes, and I suggest not to  update the bar each time the event triggers
but e.g. only every second.

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html





-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Simple FTP.Put Example

2007-12-31 Thread Johnnie Norsworthy
Is there a simple example of what is necessary to transmit a file
using the FTP client?

I am setting up the client with these properties:
Up.UserName := Config.ReadString(Server,'Login','Anonymous');
Up.PassWord := Config.ReadString(Server,'Password','Anonymous');
Up.Port := Config.ReadString(Server,'Port','21');
Up.HostName := Server;
Up.LocalFileName := SaveFolder+FileName;
Up.HostFileName := FileName;
Up.HostDirName := Config.ReadString(Server,'FTPFolder','');
Up.Timeout := 15; //seconds
Up.Passive := True;

But what is the methods I need to use to connect, send the file, and
then disconnect? I will be doing this in synchronous mode.

I see the Count parameter in FTP.OnProgress; does that represent the
number of bytes sent, and do I need to initialize my progress
par.maximum to the total file bytes of the local file?

Thanks!

-- 
Johnnie Norsworthy
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be