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

   tp_kparam([nRecvTime], [nSendTime], [nBlockLen], [nCkType])

   nRecvTime   Receiver's timeout, in seconds.
   nSendTime   Sender's timeout, in seconds.
   nBlockLen   Maximum block length.
   nCheckType  Block checksum type.

   Sets parameters for Kermit file transfers.

   nRecvTime and nSendTime both must be whole numbers (no decimal point)
   from 1 to 94.  To prevent confusion and speed loss caused by "ping-
   ponging" of packets, there should be at least five seconds difference
   between the two.

   nBlockLen is the maximum packet length, ranging from 80 to 9024
   bytes.  Lengths over 94 require that both ends be capable of handling
   the large block option.  The actual block length used will be the
   minimum of the sender's and receiver's maximum block lengths.  For
   reasonable error recovery, do not use extremely large blocks: a good
   rule of thumb is that a block should not take more than five seconds
   to transmit (thus, 600 bytes at 1200 baud, 1200 bytes at 2400 baud,
   etc.).

   nCheckType is the desired block check type.  The actual check type
   used will be the minimum of the sender's and receiver's nCheckType
   values.  The possible block check types are:

       Type        Description
       ----------------------------------------------------------------
        1          Standard 6-bit arithmetic checksum, one byte per
                   packet.
        2          Extended 12-bit arithmetic checksum, two bytes per
                   packet.
        3          16-bit CRC (cyclic redundancy checksum), three bytes
                   per packet.

   The default values are:

       nRecvTime       5
       nSendTime      10
       nBlockLen      94
       nCheckType      1

   Example:

       tp_kparam(NIL, NIL, 1024, 3)
           // Enable 1024-byte blocks, check type 3, leave timeouts
           //   unchanged.

See Also: File Transfers

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