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_zparam()</b> - set zmodem parameters http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_zparam() - set Zmodem parameters

   tp_zparam([nHdrTime], [nCharTime], [nSendTime], [lUseCRC32],
       [nWindowLen])

   nHdrTime    Frame header timeout.
   nCharTime   Intercharacter timeout.
   nSendTime   Sender's timeout.
   lUseCRC32   TRUE to enable 32-bit CRCs.
   nWindowLen  Maximum window length.

   Sets parameters for Zmodem file transfers.

   nHdrTime is the time that the receiver will wait for the start of a
   frame header.

   nCharTime is the time that it will wait for a single character within
   a frame.

   nSendTime is the time that the sender will wait for a response from
   the receiver.

   lUseCRC32 is true if 32-bit CRCs may be used, false for 16-bit CRCs.

   nWindowLen is the sender's transmission window length, and may be 0
   (for continuous streaming) or may range from 256 to 63488 bytes.

   The default values are:

       nHdrTime         5.0
       nCharTime        1.0
       nSendTime       60.0
       lUseCRC32       TRUE
       nWindowLen         0

   Increasing nHdrTime and nCharTime may make Zmodem receives work
   better on packet-switching networks which are running very slowly.
   Setting nWindowLength non-zero for the sender may make error recovery
   quicker in the same situation, but at the expense of slightly lower
   throughput.  Disabling 32-bit CRCs gives slightly better speed with
   very small blocks (about 5% for 32-byte blocks, but less than 0.2%
   for 1024-byte blocks).

   Example:

       tp_zparam(NIL, NIL, NIL, NIL, 8192)
           // Set 8K window for better error recovery on packet nets.

See Also: tp_rzmodem() tp_szmodem() File Transfers

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