home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / b / krtdef.mac < prev    next >
Text File  |  2020-01-01  |  3KB  |  81 lines

  1.     .sbttl    KRTDEF    Packet types (edited from VMS Kermit)
  2. ;    .ident    "V03.63"    ; this is an .include file
  3.  
  4. ; /63/    27-Sep-97  Billy Youdelman  V03.63
  5. ; /62/    27-Jul-93  Billy Youdelman  V03.62
  6. ; /BBS/     1-Dec-91  Billy Youdelman  V03.61
  7.  
  8. ;    Note the use of the "=:" direct assignment ensures these
  9. ;    rather long names are unique in the first 6 characters.
  10.  
  11.     .sbttl    Protocol V1.0 message types
  12.  
  13. MSG$ACK        =: 'Y&137    ; acknowledgment (ACK)
  14. MSG$BREAK    =: 'B&137    ; break transmission (EOT)
  15. MSG$DATA    =: 'D&137    ; data packet
  16. MSG$EOF        =: 'Z&137    ; end of file (EOF)
  17. MSG$ERROR    =: 'E&137    ; error
  18. MSG$FILE    =: 'F&137    ; file header
  19. MSG$NAK        =: 'N&137    ; negative acknowledgment (NAK)
  20. MSG$SND        =: 'S&137    ; send initiate
  21.  
  22.     .sbttl    Protocol V2.0 message types
  23.  
  24. MSG$COMMAND    =: 'C&137    ; host command
  25. MSG$GENERIC    =: 'G&137    ; generic Kermit command
  26. MSG$KERMIT    =: 'K&137    ; perform Kermit command (text)
  27. MSG$RCV        =: 'R&137    ; receive initiate
  28.  
  29.     .sbttl    Protocol V4.0 message types
  30.  
  31. MSG$ATR        =: 'A&137    ; attribute packet
  32. MSG$SER        =: 'I&137    ; server initialization
  33. MSG$TEXT    =: 'X&137    ; text header message
  34.  
  35.     .sbttl    Generic Kermit commands
  36.  
  37. GN$BYE        =: 'L&137    ; logout
  38. GN$CONNECT    =: 'C&137    ; connect to a directory
  39. GN$COPY        =: 'K&137    ; copy file
  40. GN$DELETE    =: 'E&137    ; delete a file
  41. GN$DIRECTORY    =: 'D&137    ; directory
  42. GN$DISK        =: 'U&137    ; disk usage
  43. GN$EXIT        =: 'F&137    ; finish (stop the server)
  44. GN$HELP        =: 'H&137    ; help
  45. GN$JOURNAL    =: 'J&137    ; perform journal functions
  46. GN$LOGIN    =: 'I&137    ; login
  47. GN$PRINT    =: 'P&137    ; print
  48. GN$PROGRAM    =: 'P&137    ; run program and pass data
  49. GN$QUERY    =: 'Q&137    ; query status
  50. GN$RENAME    =: 'R&137    ; rename file
  51. GN$SEND        =: 'M&137    ; send a message to a user
  52. GN$SUBMIT    =: 'S&137    ; submit
  53. GN$TYPE        =: 'T&137    ; type a file specification
  54. GN$VARIABLE    =: 'V&137    ; return/set variable state
  55. GN$WHO        =: 'W&137    ; who's logged in?
  56.  
  57.     .sbttl    Acknowledgment modifiers (V4.0)
  58.  
  59. ABT$ALL        =: 'Z&137    ; abort entire stream of files
  60. ABT$CUR        =: 'X&137    ; abort current file
  61. ABT$ERROR    =: 'E&137    ; abort because an error occured
  62.  
  63.     .sbttl    End of file packet modifier
  64.  
  65. EOF$DISCARD    =: 'D&137    ; discard data from previous file
  66.  
  67.     .sbttl    Send/receive states
  68.  
  69. STA.CCA        =:  100        ; ^C from keyboard abort
  70. STA.ABO        =: 'A&137    ; abort
  71. STA.ATR        =: 'H&137    ; send attributes
  72. STA.BRK        =: 'B&137    ; break link
  73. STA.COM        =: 'C&137    ; transaction complete
  74. STA.DAT        =: 'D&137    ; data
  75. STA.EOF        =: 'Z&137    ; end of file or reply
  76. STA.FIL        =: 'F&137    ; file name header
  77. STA.INI        =: 'I&137    ; init
  78. STA.RIN        =: 'R&137    ; receive init
  79. STA.SIN        =: 'S&137    ; send init
  80. STA.TYP        =: 'X&137    ; extended reply
  81.