home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / NCSA / TEL2307S.ZIP / INCLUDE / TELOPTS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-20  |  4.5 KB  |  160 lines

  1. /*
  2. *    telopts.h
  3. *  Used for telnet options
  4. ****************************************************************************
  5. *                                                                          *
  6. *                                                                          *
  7. *      NCSA Telnet                                                         *
  8. *      by Tim Krauskopf, VT100 by Gaige Paulsen, Tek by Aaron Contorer     *
  9. *      Additions by Kurt Mahan, Heeren Pathak, & Quincey Koziol            *
  10. *                                                                          *
  11. *      National Center for Supercomputing Applications                     *
  12. *      152 Computing Applications Building                                 *
  13. *      605 E. Springfield Ave.                                             *
  14. *      Champaign, IL  61820                                                *
  15. *                                                                          *
  16. ****************************************************************************
  17. *   Quincey Koziol
  18. *   Defines for telnet options and related things
  19. */
  20.  
  21. #ifndef TELOPTS_H
  22. #define TELOPTS_H
  23.  
  24. #define NUMLMODEOPTIONS 30
  25.  
  26. /* Definitions for telnet protocol */
  27.  
  28. #define STNORM      0
  29.  
  30. /* Definition of the lowest telnet byte following an IAC byte */
  31. #define LOW_TEL_OPT 236
  32.  
  33. #define TEL_EOF     236
  34. #define SUSP        237
  35. #define ABORT       238
  36.  
  37. #define SE            240
  38. #define NOP            241
  39. #define DM            242
  40. #define BREAK        243
  41. #define IP            244
  42. #define AO            245
  43. #define AYT            246
  44. #define EC            247
  45. #define EL            248
  46. #define GOAHEAD     249
  47. #define SB            250
  48. #define WILLTEL     251
  49. #define WONTTEL     252
  50. #define DOTEL         253
  51. #define DONTTEL     254
  52. #define IAC             255
  53.  
  54. /* Assigned Telnet Options */
  55. #define BINARY                 0
  56. #define ECHO                1
  57. #define RECONNECT            2
  58. #define SGA                 3
  59. #define AMSN                4
  60. #define STATUS                5
  61. #define TIMING                6
  62. #define RCTAN                7
  63. #define OLW                    8
  64. #define OPS                    9
  65. #define OCRD                10
  66. #define OHTS                11
  67. #define OHTD                12
  68. #define OFFD                13
  69. #define OVTS                14
  70. #define OVTD                15
  71. #define OLFD                16
  72. #define XASCII                17
  73. #define LOGOUT                18
  74. #define BYTEM                19
  75. #define DET                    20
  76. #define SUPDUP                21
  77. #define SUPDUPOUT            22
  78. #define SENDLOC                23
  79. #define TERMTYPE             24
  80. #define EOR                    25
  81. #define TACACSUID            26
  82. #define OUTPUTMARK            27
  83. #define TERMLOCNUM            28
  84. #define REGIME3270            29
  85. #define X3PAD                30
  86. #define NAWS                31
  87. #define TERMSPEED            32
  88. #define TFLOWCNTRL            33
  89. #define LINEMODE             34
  90.     #define MODE 1
  91.         #define MODE_EDIT       1
  92.         #define MODE_TRAPSIG    2
  93.         #define MODE_ACK        4
  94.         #define MODE_SOFT_TAB   8
  95.         #define MODE_LIT_ECHO   16
  96.  
  97.     #define FORWARDMASK 2
  98.  
  99.     #define SLC 3 
  100.         #define SLC_DEFAULT     3
  101.         #define SLC_VALUE       2
  102.         #define SLC_CANTCHANGE  1
  103.         #define SLC_NOSUPPORT   0
  104.         #define SLC_LEVELBITS   3
  105.  
  106.         #define SLC_ACK         128
  107.         #define SLC_FLUSHIN     64
  108.         #define SLC_FLUSHOUT    32
  109.  
  110.         #define SLC_SYNCH        1
  111.         #define SLC_BRK            2
  112.         #define SLC_IP            3
  113.         #define SLC_AO            4
  114.         #define SLC_AYT            5
  115.         #define SLC_EOR            6
  116.         #define SLC_ABORT        7
  117.         #define SLC_EOF            8
  118.         #define SLC_SUSP        9
  119.         #define SLC_EC            10
  120.         #define SLC_EL           11
  121.         #define SLC_EW           12
  122.         #define SLC_RP            13
  123.         #define SLC_LNEXT        14
  124.         #define SLC_XON            15
  125.         #define SLC_XOFF        16
  126.         #define SLC_FORW1        17
  127.         #define SLC_FORW2        18
  128.         #define SLC_MCL         19
  129.         #define SLC_MCR         20
  130.         #define SLC_MCWL        21
  131.         #define SLC_MCWR        22
  132.         #define SLC_MCBOL       23
  133.         #define SLC_MCEOL       24
  134.         #define SLC_INSRT       25
  135.         #define SLC_OVER        26
  136.         #define SLC_ECR         27
  137.         #define SLC_EWR         28
  138.         #define SLC_EBOL        29
  139.         #define SLC_EEOL        30
  140.  
  141. #define XDISPLOC            35
  142. #define ENVIRONMENT         36
  143. #define AUTHENTICATION      37
  144. #define DATA_ENCRYPTION     38
  145. #define XOPTIONS            255
  146.  
  147. #define LINEMODE_MODES_SUPPORTED    0x1B
  148. /* set this flag for linemode special functions which are supported by Telnet, even though they are not currently active */
  149. /* This is to allow the other side to negotiate to a "No Support" state for an option */
  150. /* and then change later to supporting it, so we know it's ok to change our "No Support" */
  151. /* state to something else ("Can't Change", "Value", whatever) */
  152. #define SLC_SUPPORTED       0x10    
  153.     
  154. #define ESCFOUND 5
  155. #define IACFOUND 6
  156. #define NEGOTIATE 1
  157.  
  158. #endif  /* telopts.h */
  159.  
  160.