home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / protocol / binary-switching-rules.txt < prev    next >
Text File  |  2020-01-01  |  2KB  |  48 lines

  1. 12-Nov-97 16:05:51-GMT,2036;000000000001
  2. Return-Path: <fdc>
  3. Received: (from fdc@localhost)
  4.     by watsun.cc.columbia.edu (8.8.5/8.8.5) id LAA10751;
  5.     Wed, 12 Nov 1997 11:05:46 -0500 (EST)
  6. Date: Wed, 12 Nov 97 11:05:46 EST
  7. From: Frank da Cruz <fdc@watsun.cc.columbia.edu>
  8. To: Joe Doupnik <JRD@cc.usu.edu>
  9. Subject: Re: MSK 3.15-1, /recursive
  10. In-Reply-To: Your message of Tue, 11 Nov 1997 11:48:00 -0600 (MDT)
  11. Message-ID: <CMM.0.90.4.879350746.fdc@watsun.cc.columbia.edu>
  12.  
  13. >     I do have  get /recur  tacked in and will do some quick checks
  14. > this morning on it. It turns out to be simple to implement in MSK.
  15. > What is not so simple is the eventual pushing down of operating
  16. > characteristics (binary/text etc) on a per transfer basis, making a total
  17. > of three sets: default/fixed modes, per xfer modes, negotiated modes, not 
  18. > to mention per-packet modes to get the protocol started. Oh well.
  19. Right, it's getting pretty complicated.  The current rules in C-K are (using
  20. fictitious variable names):
  21.  
  22. BINARY is the global transfer mode.
  23.  
  24. When protocol mode is entered, BINARY is saved in G_BINARY ("global binary").
  25.  
  26. If the transfer mode is overridden automatically at Send/Init time by the
  27. WHOAMI mechanism, BINARY is replaced by the indicated mode as the prevailing
  28. mode for the rest of the transfer.
  29.  
  30. When receiving files, for each file, the BINARY value is saved in P_BINARY,
  31. then switched to the value indicated in the A packet, and then BINARY is
  32. restored from P_BINARY at the end of the file.
  33.  
  34. When sending files, for each file, the BINARY value is saved in P_BINARY, then
  35. switched according to whatever mechanism we use for recognizing local files to
  36. be text or binary (e.g. in VMS, the directory info, or in other C-Kermits, the
  37. patterns), and then BINARY is restored from P_BINARY at the end of the file.
  38.  
  39. When leaving protocol mode (including on Ctrl-C interruption, E-packet, etc),
  40. we restore the BINARY value from G_BINARY.
  41.  
  42. Wrinkles:  If the server gets a REMOTE SET FILE TYPE command, it affects
  43. BINARY and G_BINARY.  There are probably also a few more...
  44.  
  45. - Frank
  46.  
  47.