> I'm writing a particular ftp software. Right now, I'm designing my model > classes and try to send a file to a ftp. It works pretty well, I love > Synapse ;). I managed to have updated byte transfers for my TFileFtp class > using the OnStatus event but I would like to have faster updated than 64 > Kb. Now, HearhBeat could be good but I can pick up wrote bytes always from > OnStatus and, then, each 64 Kb of data (I would prefer not to reduce > chunck size). My final aim, of course, is to have a GUI reflecting byte > transfers and transfer percentage.
For updating gauges are OnStatus. It is driven by communication - by socket layer calls. Onheartbeat is usually called when Synapse waiting for communication event. It is good for made GUI responsible to user, like checking the 'cancel' button, processing pending windows messages, etc. But it not know anything about transferred bytes. It can be known by OnStatus only. -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
