src/Resource/telnet.h

Go to the documentation of this file.
00001 /**************************************************************************/
00002 // telnet.h - telnet related defines
00003 /***************************************************************************
00004  * The Dawn of Time v1.69r (c)1997-2004 Michael Garratt                    *
00005  * >> A number of people have contributed to the Dawn codebase, with the   *
00006  *    majority of code written by Michael Garratt - www.dawnoftime.org     *
00007  * >> To use this source code, you must fully comply with the dawn license *
00008  *    in licenses.txt... In particular, you may not remove this copyright  *
00009  *    notice.                                                              *
00010  **************************************************************************/
00011 /*      @(#)telnet.h 1.7 88/08/19 SMI; from UCB 5.1 5/30/85     */
00012 /*
00013  * Copyright (c) 1983 Regents of the University of California.
00014  * All rights reserved.  The Berkeley software License Agreement
00015  * specifies the terms and conditions for redistribution.
00016  */
00017 
00023 #ifndef _arpa_telnet_h
00024 #define _arpa_telnet_h
00025 
00026 #define IAC             255     
00027 #define DONT    254     
00028 #define DO              253     
00029 #define WONT    252     
00030 #define WILL    251     
00031 #define SB              250     
00032 #define GA              249     
00033 #define EL              248     
00034 #define EC              247     
00035 #define AYT             246     
00036 #define AO              245     
00037 #define IP              244     
00038 #define BREAK   243     
00039 #define DM              242     
00040 #define NOP             241     
00041 #define SE              240     
00042 #define EOR     239     
00044 #define SYNCH   242     
00046 #ifdef TELCMDS
00047 
00048 char *telcmds[] = {
00049         "SE", "NOP", "DMARK", "BRK", "IP", "AO", "AYT", "EC",
00050         "EL", "GA", "SB", "WILL", "WONT", "DO", "DONT", "IAC",
00051 };
00052 #endif
00053 
00054 /* telnet options */
00055 #define TELOPT_BINARY   0       
00056 #define TELOPT_ECHO     1       
00057 #define TELOPT_RCP      2       
00058 #define TELOPT_SGA      3       
00059 #define TELOPT_NAMS     4       
00060 #define TELOPT_STATUS   5       
00061 #define TELOPT_TM       6       
00062 #define TELOPT_RCTE     7       
00063 #define TELOPT_NAOL     8       
00064 #define TELOPT_NAOP     9       
00065 #define TELOPT_NAOCRD   10      
00066 #define TELOPT_NAOHTS   11      
00067 #define TELOPT_NAOHTD   12      
00068 #define TELOPT_NAOFFD   13      
00069 #define TELOPT_NAOVTS   14      
00070 #define TELOPT_NAOVTD   15      
00071 #define TELOPT_NAOLFD   16      
00072 #define TELOPT_XASCII   17      
00073 #define TELOPT_LOGOUT   18      
00074 #define TELOPT_BM       19      
00075 #define TELOPT_DET      20      
00076 #define TELOPT_SUPDUP   21      
00077 #define TELOPT_SUPDUPOUTPUT 22  
00078 #define TELOPT_SNDLOC   23      
00079 #define TELOPT_TTYPE    24      
00080 #define TELOPT_EOR      25      
00081 #define TELOPT_NAWS 31  
00082 #define TELOPT_EXOPL    255     
00084 #ifdef TELOPTS
00085 #define NTELOPTS        (1+TELOPT_EOR)
00086 
00087 char *telopts[NTELOPTS] = {
00088         "BINARY", "ECHO", "RCP", "SUPPRESS GO AHEAD", "NAME",
00089         "STATUS", "TIMING MARK", "RCTE", "NAOL", "NAOP",
00090         "NAOCRD", "NAOHTS", "NAOHTD", "NAOFFD", "NAOVTS",
00091         "NAOVTD", "NAOLFD", "EXTEND ASCII", "LOGOUT", "BYTE MACRO",
00092         "DATA ENTRY TERMINAL", "SUPDUP", "SUPDUP OUTPUT",
00093         "SEND LOCATION", "TERMINAL TYPE", "END OF RECORD",
00094 };
00095 #endif
00096 
00097 /* sub-option qualifiers */
00098 #define TELQUAL_IS      0       
00099 #define TELQUAL_SEND    1       
00101 #endif 

Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo