As you know, C-Kermit has a MOVE command, which is just like SEND except
it deletes the source file(s) if and only if they are sent successfully.
This turns out to be very useful to a lot of our more serious users --
companies that use Kermit for real transaction processing, etc, because it's
atomic.
MOVE is trivial to implement -- it calls the SEND parsing routine and then
just sets a flag; the routine that closes the input file checks to see if the
flag is set, and if so, and the file was sent successfully, it deletes the
file. Takes about 5 minutes to implement.
Now it seems some of these same users need the same thing in the opposite
direction: they want the client to tell the server to send files and then
delete them iff they were sent ok. This requires addition of a new packet
type -- I chose "H" -- and a new top-level command. There's no good word for
this, so I chose RETRIEVE.
On the client side, RETRIEVE calls the same parsing routine as GET and REGET,
but it invokes the protocol module in such a way as to let it know that it
should send an H packet, rather than an R or J packet (all three of these have
the same format).
On the server side, when the server gets an H packet, it does exactly what it
does when it gets an R packet, except it sets the very same flag that is used
when the MOVE command is given -- "I should delete each file after I send, iff
it was sent successfully". And obviously, it must remember to RESET this flag
after each transaction.
That's about it...
- Frank
20-Aug-96 0:05:34-GMT,2052;000000000011
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 UAA17973; Mon, 19 Aug 1996 20:05:33 -0400 (EDT)
Received: from CUVMB.CC.COLUMBIA.EDU by CUVMB.CC.COLUMBIA.EDU (IBM VM SMTP V2R1)
with BSMTP id 5221; Mon, 19 Aug 96 20:05:09 EDT
Date: Mon, 19 Aug 1996 20:04 EDT
From: "John F. Chandler" <JCHBN@CUVMB.CC.COLUMBIA.EDU>
To: Frank da Cruz <fdc@watsun.CC.COLUMBIA.EDU>
cc: Joe Doupnik <jrd@watsun.CC.COLUMBIA.EDU>
Subject: Re: New Kermit protocol thing
In-reply-to: fdc@watsun.cc.columbia.edu message
<CMM.0.90.4.840328830.fdc@watsun.cc.columbia.edu> of Sat, 17 Aug 96 20:40:30