Annotation of sbbs/sbbs3/telnet.h, revision 1.1

1.1     ! root        1: /* telnet.h */
        !             2: 
        !             3: /* Synchronet telnet-related constants and function prototypes */
        !             4: 
        !             5: /* $Id: telnet.h,v 1.1.1.1 2000/10/10 11:26:17 rswindell Exp $ */
        !             6: 
        !             7: /****************************************************************************
        !             8:  * @format.tab-size 4          (Plain Text/Source Code File Header)                    *
        !             9:  * @format.use-tabs true       (see http://www.synchro.net/ptsc_hdr.html)              *
        !            10:  *                                                                                                                                                     *
        !            11:  * Copyright 2000 Rob Swindell - http://www.synchro.net/copyright.html         *
        !            12:  *                                                                                                                                                     *
        !            13:  * This program is free software; you can redistribute it and/or                       *
        !            14:  * modify it under the terms of the GNU General Public License                         *
        !            15:  * as published by the Free Software Foundation; either version 2                      *
        !            16:  * of the License, or (at your option) any later version.                                      *
        !            17:  * See the GNU General Public License for more details: gpl.txt or                     *
        !            18:  * http://www.fsf.org/copyleft/gpl.html                                                                                *
        !            19:  *                                                                                                                                                     *
        !            20:  * Anonymous FTP access to the most recent released source is available at     *
        !            21:  * ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net     *
        !            22:  *                                                                                                                                                     *
        !            23:  * Anonymous CVS access to the development source and modification history     *
        !            24:  * is available at cvs.synchro.net:/cvsroot/sbbs, example:                                     *
        !            25:  * cvs -d :pserver:[email protected]:/cvsroot/sbbs login                       *
        !            26:  *     (just hit return, no password is necessary)                                                     *
        !            27:  * cvs -d :pserver:[email protected]:/cvsroot/sbbs checkout src                *
        !            28:  *                                                                                                                                                     *
        !            29:  * For Synchronet coding style and modification guidelines, see                                *
        !            30:  * http://www.synchro.net/source.html                                                                          *
        !            31:  *                                                                                                                                                     *
        !            32:  * You are encouraged to submit any modifications (preferably in Unix diff     *
        !            33:  * format) via e-mail to [email protected]                                                                      *
        !            34:  *                                                                                                                                                     *
        !            35:  * Note: If this box doesn't appear square, then you need to fix your tabs.    *
        !            36:  ****************************************************************************/
        !            37: 
        !            38: /* commands */
        !            39: 
        !            40: #define TELNET_IAC             255     // Interpret as command
        !            41: #define TELNET_DONT            254 // Don't do option
        !            42: #define TELNET_DO      253 // Do option
        !            43: #define TELNET_WONT    252 // Won't do option
        !            44: #define TELNET_WILL    251 // Will do option
        !            45: 
        !            46: #define TELNET_SB       250    // sub-negotiation
        !            47: #define TELNET_GA              249     // Go ahead
        !            48: #define TELNET_EL              248 // Erase line
        !            49: #define TELNET_EC              247 // Erase char
        !            50: #define TELNET_AYT             246 // Are you there?
        !            51: #define TELNET_AO              245 // Abort output
        !            52: #define TELNET_IP              244 // Interrupt process
        !            53: #define TELNET_BRK             243 // Break
        !            54: #define TELNET_SYNC            242 // Data mark
        !            55: #define TELNET_NOP             241 // No operation
        !            56: 
        !            57: #define TELNET_SE       240 //  End of subnegotiation parameters.
        !            58: 
        !            59: /* options */
        !            60: 
        !            61: enum {
        !            62:         TELNET_BINARY
        !            63:        ,TELNET_ECHO
        !            64:        ,TELNET_RECONN
        !            65:        ,TELNET_SUP_GA          // supress go ahead
        !            66:        ,TELNET_APPROX_MSG_SIZE
        !            67:        ,TELNET_STATUS
        !            68:        ,TELNET_TIMING_MARK
        !            69:        ,TELNET_REMOTE_CTRL
        !            70:        ,TELNET_OUTPUT_LINE_WIDTH
        !            71:        ,TELNET_OUTPUT_PAGE_SIZE
        !            72:        ,TELNET_OUTPUT_CR_DISP
        !            73:        ,TELNET_OUTPUT_HTAB_STOPS
        !            74:        ,TELNET_OUTPUT_HTAB_DISP
        !            75:        ,TELNET_OUTPUT_FF_DISP
        !            76:        ,TELNET_OUTPUT_VTAB_STOPS
        !            77:        ,TELNET_OUTPUT_VTAB_DISP
        !            78:        ,TELNET_OUTPUT_LF_DISP
        !            79:        ,TELNET_EXASCII
        !            80:        ,TELNET_LOGOUT
        !            81:        ,TELNET_BYTE_MACRO
        !            82:        ,TELNET_DATA_ENTRY_TERM
        !            83:        ,TELNET_SUPDUP
        !            84:        ,TELNET_SUPDUP_OUTPUT
        !            85:        ,TELNET_SEND_LOCATION
        !            86:        ,TELNET_TERM_TYPE
        !            87:        ,TELNET_END_OF_RECORD
        !            88:        ,TELNET_TACACS_USERID
        !            89:        ,TELNET_OUTPUT_MARKING
        !            90:        ,TELNET_TERM_LOCATION_NUMBER
        !            91:        ,TELNET_3270
        !            92:        ,TELNET_X3_PAD
        !            93:        ,TELNET_NEGOTIATE_WINDOW_SIZE
        !            94:        ,TELNET_TERM_SPEED
        !            95:        ,TELNET_REMOTE_FLOW
        !            96:        ,TELNET_LINE_MODE
        !            97:        ,TELNET_X_DISPLAY_LOCATION
        !            98:        ,TELNET_ENV_OPTION
        !            99:        ,TELNET_AUTH_OPTION
        !           100:        ,TELNET_ENCRYPTION_OPTION
        !           101:        ,TELNET_NEW_ENV_OPTION
        !           102:        ,TELNET_3270E
        !           103: 
        !           104:        ,TELNET_EXOPL=255       // Extended options list
        !           105: };
        !           106: 
        !           107: /* bits for telnet_mode */   
        !           108:    
        !           109: #define TELNET_MODE_BIN_RX     (1<<0)   
        !           110: #define TELNET_MODE_ECHO       (1<<1)   
        !           111: #define TELNET_MODE_GATE       (1<<2)  // Pass-through telnet commands/responses
        !           112: 
        !           113: #ifdef __cplusplus  
        !           114: extern "C" {   
        !           115: #endif   
        !           116: const char *telnet_cmd_desc(uchar cmd);   
        !           117: const char *telnet_opt_desc(uchar opt);
        !           118: #ifdef __cplusplus
        !           119: }
        !           120: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.