home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / applic / ncsa / Mac / Telnet2.6 / prerelease / d5 / Telnet 2.6.1d5.src.sit.hqx / Telnet 2.6.1d5 src / source / parse / parse.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-19  |  2.9 KB  |  94 lines

  1.  
  2. /* These are the different Telnet option negotiation tags */
  3. #define TEL_EOF            236            /* BYU LSC */
  4. #define    TEL_SE            240            /* end sub-negitiation */                // 360
  5. #define    TEL_NOP            241            /* No Operation */
  6. #define TEL_DM            242            /* data mark */
  7. #define TEL_BREAK        243            
  8. #define TEL_IP            244            /* the ole' Interrupt Process */
  9. #define TEL_AO            245            /* Abort Output */
  10. #define    TEL_AYT            246            /* Are You There???? */
  11. #define    TEL_EC            247            /* Erase Char */
  12. #define TEL_EL            248            /* Erase Line */
  13. #define TEL_GA            249            /* Telnet Go-Ahead */
  14. #define    TEL_SB            250            /* start a Subnegotion */                // 372
  15. #define TEL_WILLTEL     251            /* Negotiate:  Will do this option */    // 373
  16. #define TEL_WONTTEL     252            /* Negotiate:  Wont do this option */    // 374
  17. #define TEL_DOTEL        253            /* Negotiate:  Do this option */        // 375
  18. #define TEL_DONTTEL     254            /* Negotiate:  Dont do this option */    // 376
  19. #define    TEL_IAC            255
  20.  
  21. /* these are the rest of the defines needed for the option negitiations */
  22. #define TS_NORM        0            /* parsing data normal */
  23. #define    TS_SB        1            /* Subnegotiation data follows */
  24. #define    TS_SE        2
  25. #define    TS_WILL        3
  26. #define    TS_WONT        4
  27. #define    TS_DO        7
  28. #define    TS_DONT        8
  29. #define ESCFOUND             5            /* we have found an ESC sequence */
  30. #define IACFOUND             6            /* negotiation data follows */
  31. #define    SEXECUTE            200
  32. #define    IAC                    255            /* signals negotiation data is coming */
  33. #define GS                    29            /* we can drop into TEK from here */
  34.  
  35.  
  36. /* these are some of the various options that we can negotiate about */
  37. #define N_BINARY             0            /* binary data transfer */
  38. #define N_ECHO                1            /* for local echo stuff */
  39. #define N_SGA                3            /* Go ahead */
  40. #define N_STATUS            5        
  41. #define N_TIMING            6            /* timing mark */
  42. #define    N_TERMTYP            24            /* set the terminal type */
  43. #define N_NAWS                31            /* Negotiate About Window Size */
  44. #define    N_TERMSPEED            32            /* how fast can we go? */    
  45. #define N_REMOTEFLOW        33            /* do Remote Flow Control */
  46. #define N_LINEMODE             34            /* Ah yes, the infamous Line Mode option */
  47.     #define L_MODE         1
  48.     #define L_FORWARDMASK 2
  49.     #define L_SLC         3
  50. #define    N_XDISPLOC            35
  51. #define N_AUTHENTICATION    37            /* Authentication */
  52. #define N_ENCRYPT            38            /* Encryption */
  53.  
  54.  
  55. /* Values for LINEMODE MODE */
  56. #define L_EDIT        1
  57. #define L_TRAPSIG      2
  58. #define L_MODE_ACK    4
  59. #define    L_SOFT_TAB    8
  60. #define    L_LIT_ECHO    16
  61. #define    L_MODE_MASK    31
  62.  
  63. /* these are the local keys, defined right before our very eyes!! */
  64. /* used for line-mode negotiations */
  65. #define SLC_NOSUPPORT    0
  66. #define SLC_CANTCHANGE    1
  67. #define SLC_VALUE        2
  68. #define SLC_DEFAULT        3
  69. #define SLC_LEVELBITS    3
  70. #define SLC_AWK            128
  71.  
  72. #define    SLC_MAX            18
  73.  
  74. #define SLC_SYNCH        1
  75. #define SLC_BRK            2
  76. #define SLC_IP            3
  77. #define SLC_AO            4
  78. #define SLC_AYT            5
  79. #define SLC_EOR            6
  80. #define SLC_ABORT        7
  81. #define SLC_EOF            8
  82. #define SLC_SUSP        9
  83. #define SLC_EC            10
  84. #define SLC_EL           11
  85. #define SLC_EW           12
  86. #define SLC_RP            13
  87. #define SLC_LNEXT        14
  88. #define SLC_XON            15
  89. #define SLC_XOFF        16
  90. #define SLC_FORW1        17
  91. #define SLC_FORW2        18
  92.  
  93. #define    substate    tw->substat
  94.