Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telepathy Communications Library - <b>tp_zfconv()</b> - get or set zmodem file conversion option http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_zfconv() - get or set Zmodem file conversion option

   nOldConv := tp_zfconv([nNewConv])

   nNewConv    New conversion option.

   Returns     Original conversion option.

   Gets or sets the Zmodem file conversion option.  This option controls
   whether a file transfer can be resumed, and whether the receiver will
   perform text file conversion when transferring between DOS and UNIX
   systems.

   The sender specifies a conversion option for each file it sends.  You
   may call tp_zfconv() before each call to tp_szmodem() (or specify the
   nConv parameter to tp_szmodem()), or you may call it from within the
   progress function when you get a "start of file" (TXS_SFILE) message
   to set different options for each file.  When receiving files, you
   may call tp_zfconv() on "start of file" to override the option which
   the sender has specified.

   The file conversion option may be:

       0 or 1  Binary file, do not resume.
       2       Text file, convert line endings, do not resume.
       3       Binary file, resume if possible.

   Example:

       function Progress(nCode, cFile, nLength, nError)

           do case
           ...
           case nCode == TXS_SFILE
               tp_zfconv(3)        // Force binary download.
           ...
           endcase

           return 0

See Also: tp_rzmodem() tp_szmodem() File Transfers

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson