home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / d / k10com.req < prev    next >
Text File  |  2020-01-01  |  6KB  |  205 lines

  1. !++
  2. ! FACILITY:
  3. !   KERMIT-32/36
  4. !
  5. ! ABSTRACT:
  6. !    This file contains the common definitions for KERMIT-32 and KERMIT-36.
  7. !
  8. ! ENVIRONMENT:
  9. !   User mode
  10. !
  11. ! AUTHOR: Robert C. McQueen, CREATION DATE: 24-January-1983
  12. !
  13. ! MODIFIED BY:
  14. !
  15. !    13-June-83            Nick Bush
  16. !    Change maximum record length for RMS records to be 4096 instead
  17. !    of 256.
  18. !
  19. !    3-Jan-1984            Nick Bush
  20. !    Add FNM_xxx symbols for type of file specification to send.
  21. !
  22. !    6-July-1984            Nick Bush
  23. !    Increase MAX_MSG so that it includes space for the start-of-packet
  24. !    and end-of-line characters, plus a little slop, just in case.
  25. !
  26. ! 3.2.074    By: Robert McQueen            On: 11-March-1986
  27. !        Put MAX_MSG back the way it was.
  28. !
  29. !    17-June-1989            Dan Norstedt
  30. !    Adjust MAX_MSG for Extended Length packets
  31. !--
  32.  
  33. %SBTTL 'Table of Contents'
  34. %SBTTL 'Symbol definitions -- Routine calls'
  35. !
  36. ! EQUATED SYMBOLS:
  37. !
  38. !
  39. ! Function types passed to FILE_OPEN routine.
  40. !
  41.  
  42. LITERAL
  43.     FNC_READ = 0,                ! Open for reading
  44.     FNC_WRITE = 1;                ! Open for writing
  45.  
  46. !
  47. ! File types used
  48. !
  49.  
  50. LITERAL
  51.     FILE_ASC = 1,                ! ASCII files (SEVEN-BIT)
  52.     FILE_BIN = 2,                ! Binary files. (EIGHT-BIT)
  53.     FILE_BLK = 3,                ! Block transfer of files
  54.     FILE_FIX = 4;                 ! Fixed 512 byte records Files-11
  55.                         !  (for PRO/KERMIT .TSK files)
  56. !
  57. ! File naming forms
  58. !
  59. !    Note:  Only FNM_NORMAL should be a true value (have LSB on).  Other
  60. !           values must be false, or the name will be normalized.
  61. !
  62. GLOBAL LITERAL
  63.     FNM_NORMAL = 1,                ! Normal form file names
  64.     FNM_FULL = 2,                ! Complete file names
  65.     FNM_UNTRAN = 4;               ! Untranslated (but not full) names
  66.  
  67. !
  68. ! Parity types
  69. !
  70.  
  71. GLOBAL LITERAL
  72.     PR_MIN = 0,                    ! Min offset
  73.     PR_NONE = 0,                ! No parity
  74.     PR_MARK = 1,                ! Mark parity
  75.     PR_EVEN = 2,                ! Even parity
  76.     PR_ODD = 3,                    ! Odd parity
  77.     PR_SPACE = 4,                ! Space
  78.     PR_MAX = 4;                    ! Max offset
  79. !
  80. ! DO_GENERIC commands
  81. !
  82. ! Generic commands that we can send
  83. !
  84. GLOBAL LITERAL
  85.     GC_MIN    = 1,        ! Min command
  86.     GC_EXIT    = 1,        ! EXIT command
  87.     GC_DIRECTORY = 2,        ! List DIRECTORY command
  88.     GC_DISK_USAGE = 3,        ! Display disk usage summary
  89.     GC_DELETE    = 4,        ! DELETE file command
  90.     GC_TYPE    = 5,        ! TYPE file command
  91.     GC_HELP    = 6,        ! Display HELP information
  92.     GC_LOGOUT    = 7,        ! LOGOUT command
  93.     GC_LGN    = 8,        ! LOGIN command
  94.     GC_CONNECT    = 9,        ! CONNECT (CWD) command
  95.     GC_RENAME    =10,        ! RENAME file command
  96.     GC_COPY    =11,        ! COPY file command
  97.     GC_WHO    =12,        ! WHO is logged in (Finger)
  98.     GC_SEND_MSG    =13,        ! Send a message
  99.     GC_STATUS    =14,        ! Get status of server
  100.     GC_COMMAND    =15,        ! Perform host command
  101.     GC_KERMIT    =16,        ! Perform Kermit command
  102.     GC_JOURNAL    =17,        ! Perform journal functions
  103.     GC_VARIABLE    =18,        ! Set/get variable value
  104.     GC_PROGRAM    =19,        ! Run program and pass command
  105.     GC_MAX    =19;        ! Max command
  106.  
  107. !++
  108. !The following denotes the type of communications line that is being used.
  109. !--
  110.  
  111. GLOBAL LITERAL
  112.     DP_FULL = 0,        ! Full duplex line
  113.     DP_HALF = 1;        ! Half duplex line
  114.  
  115. !++
  116. ! The following are the various checksum types that are allowed.
  117. !--
  118.  
  119. GLOBAL LITERAL
  120.     CHK_1CHAR = %C'1',                ! One character checksums
  121.     CHK_2CHAR = %C'2',                ! Two character checksums
  122.     CHK_CRC = %C'3';                ! Three character CRC.
  123.  
  124.     %SBTTL    'Character definitions'
  125. !
  126. ! Character definitions
  127. !
  128.  
  129. LITERAL
  130.     CHR_NUL = %O'000',            ! Null
  131.     CHR_SOH = %O'001',            ! Start of header
  132.     CHR_STX = %O'002',            ! Start of text
  133.     CHR_ETX = %O'003',            ! End of text
  134.     CHR_EOT = %O'004',            ! End of transmission
  135.     CHR_ENQ = %O'005',            ! Enquiry (WRU "Who are you?")
  136.     CHR_ACK = %O'006',            ! Acknowledge
  137.     CHR_BEL = %O'007',            ! Bell
  138.     CHR_BS = %O'010',            ! Backspace
  139.     CHR_TAB = %O'011',            ! Horizontal tab
  140.     CHR_LFD = %O'012',            ! Line feed
  141.     CHR_VTB = %O'013',            ! Vertical tab
  142.     CHR_FFD = %O'014',            ! Form feed
  143.     CHR_CRT = %O'015',            ! Carriage return
  144.     CHR_SO = %O'016',            ! Shift out
  145.     CHR_SI = %O'017',            ! Shift in
  146.     CHR_DLE = %O'020',            ! Data link escape
  147.     CHR_DC1 = %O'021',            ! Device control 1 (also XON)
  148.     CHR_DC2 = %O'022',            ! Device control 2 (also TAPE, AUX ON)
  149.     CHR_DC3 = %O'023',            ! Device control 3 (also XOFF)
  150.     CHR_DC4 = %O'024',            ! Device control 4 (also AUX OFF)
  151.     CHR_NAK = %O'025',            ! Negative acknowledge
  152.     CHR_SYN = %O'026',            ! Synchronous idle (SYNC)
  153.     CHR_ETB = %O'027',            ! End of transmission block
  154.     CHR_CAN = %O'030',            ! Cancel
  155.     CHR_EM = %O'031',            ! End of medium
  156.     CHR_SUB = %O'032',            ! Substitute
  157.     CHR_ESC = %O'033',            ! Escape
  158.     CHR_FS = %O'034',            ! File separator
  159.     CHR_GS = %O'035',            ! Group separator
  160.     CHR_RS = %O'036',            ! Record separator
  161.     CHR_US = %O'037',            ! Unit separator
  162.  
  163.     CHR_CTL_A = %O'001',            ! Control-A
  164.     CHR_CTL_B = %O'002',            ! Control-B
  165.     CHR_CTL_C = %O'003',            ! Control-C
  166.     CHR_CTL_D = %O'004',            ! Control-D
  167.     CHR_CTL_E = %O'005',            ! Control-E
  168.     CHR_CTL_F = %O'006',            ! Control-F
  169.     CHR_CTL_G = %O'007',            ! Control-G
  170.     CHR_CTL_H = %O'010',            ! Control-H
  171.     CHR_CTL_I = %O'011',            ! Control-I
  172.     CHR_CTL_J = %O'012',            ! Control-J
  173.     CHR_CTL_K = %O'013',            ! Control-K
  174.     CHR_CTL_L = %O'014',            ! Control-L
  175.     CHR_CTL_M = %O'015',            ! Control-M
  176.     CHR_CTL_N = %O'016',            ! Control-N
  177.     CHR_CTL_O = %O'017',            ! Control-O
  178.     CHR_CTL_P = %O'020',            ! Control-P
  179.     CHR_CTL_Q = %O'021',            ! Control-Q
  180.     CHR_CTL_R = %O'022',            ! Control-R
  181.     CHR_CTL_S = %O'023',            ! Control-S
  182.     CHR_CTL_T = %O'024',            ! Control-T
  183.     CHR_CTL_U = %O'025',            ! Control-U
  184.     CHR_CTL_V = %O'026',            ! Control-V
  185.     CHR_CTL_W = %O'027',            ! Control-W
  186.     CHR_CTL_X = %O'030',            ! Control-X
  187.     CHR_CTL_Y = %O'031',            ! Control-Y
  188.     CHR_CTL_Z = %O'032',            ! Control-Z
  189.     CHR_SP = %C' ',                ! Space
  190.     CHR_DEL = %O'177',                ! Delete
  191.     CHR_ESCAPE = %O'035',            ! Connect escape character
  192.     CHR_SIZE = 8;                ! Character size
  193. !! Constants
  194. !
  195.  
  196. LITERAL
  197.     TRUE = (0 EQL 0),                ! Value of true
  198.     FALSE = (0 NEQ 0),                ! Value of FALSE.
  199.     MAX_FILE_NAME = 132,            ! Maximum length of a file spec
  200.     MAX_REC_LENGTH = 4096,            ! Maximum record length for us
  201.     INIT_DELAY = 5;                ! Initial delay time
  202.  
  203. GLOBAL LITERAL
  204.     MAX_MSG = 1002;     ! 96;            ! Maximum message length