PSI sics-cvs-psi_pre-ansto

This commit is contained in:
2003-06-13 00:00:00 +00:00
committed by Douglas Clowes
parent 2e3ddfb6c6
commit 3ffd0d8af4
1099 changed files with 318432 additions and 0 deletions

20
transact.tcl Normal file
View File

@@ -0,0 +1,20 @@
#----------------------------------------------------------------------------
# This implements a little command which just sets marks in the output
# stream. This is for experimenting with client communications schemes.
#
# Mark Koennecke, May 1999
#-----------------------------------------------------------------------------
proc transact { key } {
set keyy [string tolower $key]
if {[string compare $keyy "start"] == 0 } {
ClientPut "TRANSACTSTART"
return
}
if {[string compare $keyy "end"] == 0 } {
ClientPut "TRANSACTEND"
return
}
ClientPut "ERROR: Transact understands only start and end"
return;
}