> > non-standard POP3 commands, what about to create two new methods: > > function CustomCommad(const value: string): boolean; > > function CustomCommadLong(const value: string): boolean; > > Cover this your needings? > > In general yes. > > In fact, in my own opinion, no need to separate commands which receiving > one or more lines. I seen from Synapse code, that creating SendCommand > method is a problem because synapse parse received lines at once while > receive it from buffer. I'm aware this way you save some time parsing > first and last line at once instead in each command method. I suppose that > is the reason you separated one and multi line receiving. > > I perconally receive it without parsing first. After receiving raw lines > performing parse in each command methods. That require at least one > additional call of a parse function. There will be no significant > performance dropping and second it will be also no need for separating one > and multiline response. Parse function will basically filter '+OK', '-ERR' > at first and '.' on end of FFullResult.
It is in separate functions... how you know if you want to read just one line or more lines? Waiting for timeout is very bad idea. > > What about handle this situation like it is handled by IE or Firefox? > > These webbrowsers not doing download directly to final file, but into > > temporary files instead. When download is successfull, then made final > > file from correctly downloaded pieces in temporaty files. > > Problem with this is that is not possible to resume broken downloading and > as well it is not visible temporarely downloaded file which is useful if > received part need to be resumed later. We need to cover getting small and This allows resume downloading... Firefox using it too! > Direct appending in the real file is useful for streaming TV/Radio signal > through broadband. It not breaking idea of temporary files for downloading. I not see any problem. -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
