ralph@cm.cf.ac.uk (Ralph Martin) (02/05/91)
Does anyone have some good ideas on how to solve the following problem? I have a stack that uses MacTCP to connect to another machine and send it some stuff. The stack gets modified as it decides what to send. Now, the other machine may crash half way through the transfer. If it does, I want to put the stack back to its original state so that I can try again later when the other machine is up again. Now, before I do the dangerous stuff, its easy enough to save a copy of the stack (using hypertalk), but what I really need is a way from hypertalk of saying something like the following pseudocode if the other end crashed then rename this stack to "dud" rename (the safe copy) to (what this one was called before) trash this stack open (the safe copy) end if Does anyone have some suggestions as to (a) how this may be done at all, given that we want to trash the currently executing stack, (b) how this may be done in an elegant way? Ralph