home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / protocol / autoupload.txt < prev    next >
Text File  |  2020-01-01  |  7KB  |  151 lines

  1.  6-Jun-96 20:48:51-GMT,1144;000000000001
  2. Received: (from fdc@localhost) by watsun.cc.columbia.edu (8.7.5/8.7.3) id QAA22229; Thu, 6 Jun 1996 16:48:51 -0400 (EDT)
  3. Date: Thu, 6 Jun 96 16:48:51 EDT
  4. From: Frank da Cruz <fdc@watsun.cc.columbia.edu>
  5. To: Jeffrey Altman <jaltman@watsun.cc.columbia.edu>
  6. Subject: Autoserver
  7. Message-ID: <CMM.0.90.4.834094131.fdc@watsun.cc.columbia.edu>
  8.  
  9. This is pretty gross, but...  I realized that kstart() could just as easily
  10. recognize an I packet as an S packet, so I hacked the code into chkspkt()
  11. in ckcfn2.c and kstart() in ckucon.c.  So now, you can tell the remote Kermit
  12. to "get blah", and the local Kermit goes into server mode and sends "blah".
  13. Neat, eh?  The only problem is, it stays in server mode after it finishes
  14. sending.  This can be easily remedied by making a built-in macro that does
  15. the GET and then a FINISH, but I'll have to think about what it should be
  16. called...  In case you want to put the code in K95 (I'm still not sure it's
  17. a good idea), just adapt its version of kstart, and the code in ckoco?.c
  18. that calls kstart, like I did in ckucon.c -- just a couple lines.
  19.  
  20. Hmmm... Wait a minute, I'm getting an idea...  Back in a sec.
  21.  
  22.  6-Jun-96 22:23:17-GMT,1648;000000000001
  23. Received: (from fdc@localhost) by watsun.cc.columbia.edu (8.7.5/8.7.3) id SAA03258; Thu, 6 Jun 1996 18:23:14 -0400 (EDT)
  24. Date: Thu, 6 Jun 96 18:23:14 EDT
  25. From: Frank da Cruz <fdc@watsun.cc.columbia.edu>
  26. To: John Chandler <JCHBN@CUVMB.CC.COLUMBIA.EDU>
  27. Cc: Joe Doupnik <JRD@cc.usu.edu>,
  28.         Jeffrey Altman <jaltman@watsun.cc.columbia.edu>
  29. Subject: Another tasteless innovation
  30. Message-ID: <CMM.0.90.4.834099794.fdc@watsun.cc.columbia.edu>
  31.  
  32. If the terminal emulator can be made to recognize S packets (as we have done
  33. in K95), and if it sees one, to go into RECEIVE mode automatically, then why
  34. not also have it recognize I packets and go into SERVER mode automatically?
  35. (Wait, don't answer yet :-)
  36.  
  37. The benefit is that the user, while CONNECTed, could initiate file transfers
  38. not only by saying "send blah", but also with "get blah", or even
  39. "remote directory > blah".
  40.  
  41. The obvious fly in this ointment is that once the terminal emulator enters
  42. Kermit server mode, how does it exit?  Easy: in the terminal emulator, we
  43. set Yet Another Global Flag that says that server mode was activated by the
  44. terminal emulator recognizing an I packet.  When the protocol module finishes
  45. whatever it asked to do and goes back to server command wait, it checks this
  46. flag and, if set, unsets it and returns, otherwise waits for more packets.
  47.  
  48. Works great, *almost* makes APC obsolete.
  49.  
  50. But another fly waits in the wings -- as I recall, Kermit-370 is somewhat
  51. abstemious with I packets, figuring it need not resend them on each
  52. transaction, if already done once on the same connection.  So John, maybe
  53. you could consider sending an I packet every time?
  54.  
  55. - Frank
  56.  
  57.  7-Jun-96  3:01:04-GMT,2176;000000000011
  58. Received: from CUVMB.CC.COLUMBIA.EDU (cuvmb.cc.columbia.edu [128.59.40.129]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with SMTP id XAA22011; Thu, 6 Jun 1996 23:01:03 -0400 (EDT)
  59. Received: from CUVMB.CC.COLUMBIA.EDU by CUVMB.CC.COLUMBIA.EDU (IBM VM SMTP V2R1)
  60.    with BSMTP id 7604; Thu, 06 Jun 96 23:00:32 EDT
  61. Date: Thu, 1996 Jun 6   22:20 EDT
  62. From:  (John F. Chandler)JCHBN@CUVMB.CC.COLUMBIA.EDU
  63. To:  (Frank da Cruz)fdc@watsun.CC.COLUMBIA.EDU,  (Joe Doupnik)JRD@cc.usu.edu,
  64.          (Jeffrey Altman)jaltman@watsun.CC.COLUMBIA.EDU
  65. Subject: Re: Another tasteless innovation
  66. In-reply-to: fdc@watsun.cc.columbia.edu message
  67.    <CMM.0.90.4.834099794.fdc@watsun.cc.columbia.edu> of Thu, 6 Jun 96 18:23:14
  68.    EDT
  69. Message-id: <JCHBN.960606.222010.RC0@CUVMB.CC.COLUMBIA.EDU>
  70.  
  71. > If the terminal emulator can be made to recognize S packets
  72.  
  73. Just one or two quick thoughts about this.  In Doomsday mode, the packet
  74. does not start with a control character, so the possibility of accidental
  75. spurious packets is a bit less remote.  How carefully does the program
  76. check to make sure the apparent S packet is real?  Does it, for example,
  77. insist on a "sane" length and a valid checksum?  Is the S-packet finder
  78. actually known to work in Doomsday mode?  Just curious...
  79.  
  80. > But another fly waits in the wings -- as I recall, Kermit-370 is somewhat
  81. > abstemious with I packets, figuring it need not resend them on each
  82. > transaction, if already done once on the same connection.
  83.  
  84. It's not quite that abstemious.  It recognizes that any issuance of the
  85. SET subcommand may result in a change in the INIT parameters, and so it
  86. makes a note to itself to send another I-packet before the next server
  87. interaction.  This mechanism is triggered even by issuing "SET ?" or
  88. "SET D OF", so it is easy to force an I-packet.
  89.  
  90. > So John, maybe
  91. > you could consider sending an I packet every time?
  92.  
  93. It occurs to me that a "remote" Kermit, when given a subcommand geared
  94. toward a "local" (client) Kermit, could assume that someone is going
  95. to magically detect the coming packet.  K-370 could check to see if
  96. it is "remote" and, if so, override the I-packet suppressor.
  97.                                       John
  98.  
  99.  7-Jun-96 13:33:01-GMT,2326;000000000001
  100. Received: (from fdc@localhost) by watsun.cc.columbia.edu (8.7.5/8.7.3) id JAA06563; Fri, 7 Jun 1996 09:32:56 -0400 (EDT)
  101. Date: Fri, 7 Jun 96 9:32:56 EDT
  102. From: Frank da Cruz <fdc@watsun.CC.COLUMBIA.EDU>
  103. To: JCHBN@CUVMB.CC.COLUMBIA.EDU
  104. Cc: JRD@cc.usu.edu, jaltman@watsun.CC.COLUMBIA.EDU
  105. Subject: Re: Another tasteless innovation
  106. In-Reply-To: Your message of Thu, 1996 Jun 6 22:20 EDT
  107. Message-ID: <CMM.0.90.4.834154376.fdc@watsun.cc.columbia.edu>
  108.  
  109. > Just one or two quick thoughts about this.  In Doomsday mode, the packet
  110. > does not start with a control character, so the possibility of accidental
  111. > spurious packets is a bit less remote.  How carefully does the program
  112. > check to make sure the apparent S packet is real?  Does it, for example,
  113. > insist on a "sane" length and a valid checksum?
  114. >
  115. Yes to both.  It looks for the current start character, it checks the
  116. perceived length as well as the length field, the sequence number, the type,
  117. and the checksum.
  118.  
  119. > Is the S-packet finder
  120. > actually known to work in Doomsday mode?  Just curious...
  121. Currently no, but it could.  It presently depends on finding the packet-end
  122. character, but that could be changed at a slight cost in efficiency.
  123.  
  124. > > But another fly waits in the wings -- as I recall, Kermit-370 is somewhat
  125. > > abstemious with I packets, figuring it need not resend them on each
  126. > > transaction, if already done once on the same connection.
  127. > It's not quite that abstemious.  It recognizes that any issuance of the
  128. > SET subcommand may result in a change in the INIT parameters, and so it
  129. > makes a note to itself to send another I-packet before the next server
  130. > interaction.  This mechanism is triggered even by issuing "SET ?" or
  131. > "SET D OF", so it is easy to force an I-packet.
  132. > > So John, maybe
  133. > > you could consider sending an I packet every time?
  134. > It occurs to me that a "remote" Kermit, when given a subcommand geared
  135. > toward a "local" (client) Kermit, could assume that someone is going
  136. > to magically detect the coming packet.  K-370 could check to see if
  137. > it is "remote" and, if so, override the I-packet suppressor.
  138. That sounds good.  If you make this change, maybe you could bump up K-370's
  139. minor edit number, so have something firm to refer to when describing
  140. combinations that can do these new automations?
  141.  
  142. Thanks!
  143.  
  144. - Frank
  145.  
  146.