home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / TEL23SRC.ZIP / INCLUDE / CONFILE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-28  |  9.4 KB  |  299 lines

  1. /*
  2. *    confile.h
  3. *  Used for config.tel 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 config.tel options and variables
  19. */
  20.  
  21. #ifndef CONFILE_H
  22.  
  23. /*
  24. *    Global Variables
  25. */
  26. #ifdef LATER
  27. #define    NETX25    1
  28. #endif
  29.  
  30. #define NUMSPECS 130            /* last CON option for a machine specific option */
  31.  
  32. /* Initial configuration.  struct config found in hostform.h */
  33. #ifndef CONFIG_MASTER
  34. extern
  35. #endif
  36. struct config Scon
  37. #ifdef CONFIG_MASTER
  38.     ={
  39.         0,0,0,0,            /* subnet mask */
  40.         3,                    /* interrupt # */
  41.         127,0,0,1,            /* ip num */
  42.         255,255,255,255,    /* broadcast IP address */
  43.         "",                    /* my name */
  44.         7,1,0x70,            /* default colors */
  45.         "atalk",            /* network hardware */
  46.         "ega",                /* graphics hardware */
  47.         0,                    /* 43/50 screen status */
  48.         "VT100",            /* terminal type */
  49.         "*",                /* AppleTalk zone */
  50.         NULL,                /* default domain */
  51.         NULL,                /* capture file */
  52.         NULL,                /* password file */
  53.         NULL,                /* hp file */
  54.         NULL,                /* ps file */
  55.         NULL,                /* tek file */
  56.         -1,                    /* cursor start line */
  57.         -1,                    /* cursor end line */
  58.         1,                    /* name server */
  59.         4,                    /* time out of UDP domain request */
  60.         3,                    /* number of retries */
  61.         -1,                    /* time slice */
  62.         0x0d000,            /* segment address */
  63.         0x0300,                /* I/O address */
  64.         0,                    /* do we have a net mask */
  65.         0,                    /* bios flag */
  66.         1,                    /* tek flag */
  67.         1,                    /* ftp flag */
  68.         1,                    /* rcp flag */
  69.         1,                    /* thin wire default!  thick=0 used for 3c503*/
  70.         0,                    /* commandkey flag */
  71.         0,                    /* windows go away when closed (0) - no, (1) - yes */
  72.         1,                    /* display clock? (0) - no, (1) - yes */
  73.         1                     /* autoscroll in scrollback is on */
  74. }
  75. #endif
  76. ;
  77.  
  78. /*
  79. *   States for config file reading state machine.
  80. *   One for each type of keyword and some for controlling.
  81. */
  82.  
  83. #define    CONNAME        101
  84. #define CONHOST        102
  85. #define CONIP        103
  86. #define CONGATE        104
  87. #define CONCOLOR        105
  88. #define CONBKSP        106
  89. #define CONBKSC        107
  90. #define CONRETR        108
  91. #define CONWIND        109
  92. #define CONSEG        110
  93. #define CONMTU        111
  94. #define CONNS        112
  95. #define CONTO        113
  96. #define CONCRMAP    114
  97. #define CONDUP      115
  98. #define CONWRAP     116
  99. #define CONWIDE     117
  100. #define CONFONT     118
  101. #define CONFSIZE    119
  102. #define CONNF        120
  103. #define CONNB         121
  104. #define CONBF         122
  105. #define CONBB         123
  106. #define CONUF         124
  107. #define CONUB         125
  108. #define CONRF         126
  109. #define CONRB         127
  110. #define CONCLMODE     128
  111. #define CONPORT     129
  112. #define CONFTPBAK    130
  113. /*
  114. *  above this line are per machine entries, below are configuration entries
  115. */
  116. #define CONNDOM     (NUMSPECS+1)
  117. #define CONMASK     (NUMSPECS+2)
  118. #define CONMYIP     (NUMSPECS+3)
  119. #define CONHPF      (NUMSPECS+4)
  120. #define CONPSF      (NUMSPECS+5)
  121. #define CONTEKF     (NUMSPECS+6)
  122. #define CONJTIME    (NUMSPECS+7)
  123. #define CONME       (NUMSPECS+8)
  124. #define CONCCOL     (NUMSPECS+9)
  125. #define CONHW       (NUMSPECS+10)
  126. #define CONADDR     (NUMSPECS+11)
  127. #define CONIOA      (NUMSPECS+12)
  128. #define CONDEF      (NUMSPECS+13)
  129. #define CONCKEYS    (NUMSPECS+14)
  130. #define CONINT      (NUMSPECS+15)
  131. #define CONBIOS     (NUMSPECS+16)
  132. #define CONTEK      (NUMSPECS+17)
  133. #define CONVIDEO    (NUMSPECS+18)
  134. #define CONFTP      (NUMSPECS+19)
  135. #define CONRCP      (NUMSPECS+20)
  136. #define CONPASS     (NUMSPECS+21)
  137. #define CONCAP      (NUMSPECS+22)
  138. #define CONTTYPE    (NUMSPECS+23)
  139. #define CONNSTYPE   (NUMSPECS+24)
  140. #define CONFROM     (NUMSPECS+25)
  141. #define CONARPTO    (NUMSPECS+26)
  142. #define CONZONE     (NUMSPECS+27)
  143. #define CONDOMTO    (NUMSPECS+28)
  144. #define CONKBFILE   (NUMSPECS+29)
  145. #define CONWIRE     (NUMSPECS+30)
  146. #define CONCURSORTOP    (NUMSPECS+31)
  147. #define CONCURSORBOTTOM (NUMSPECS+32)
  148. #define CONWINDOWGOAWAY (NUMSPECS+33)
  149. #define CONAUTOSCROLL   (NUMSPECS+34)
  150. #define CONCLOCK        (NUMSPECS+35)
  151. #define CONBROADCAST    (NUMSPECS+36)
  152. #define CONOUTPUTMAP    (NUMSPECS+37)
  153. #define CONBEEP         (NUMSPECS+38)
  154. #define CONSERVICES        (NUMSPECS+39)
  155.  
  156. #ifndef CONFIG_MASTER
  157. extern
  158. #endif
  159. char *Skeyw[]
  160. #ifdef CONFIG_MASTER
  161.     ={
  162.         "",    
  163.         "name",                /* name of session */
  164.         "host",                /* name of host */
  165.         "hostip",            /* IP number */
  166.         "gateway",            /* gateway level */
  167.         "color",            /* color code  ==5== */
  168.         "erase",            /* value to use for backspace */
  169.         "scrollback",        /* how many lines to backscroll */
  170.         "retrans",            /* initial retrans time */
  171.         "rwin",                /* window to allow for this host */
  172.         "maxseg",            /* maximum transfer size(in) ==10== */
  173.         "mtu",                /* transfer unit (out) */
  174.         "nameserver",        /* name server level */
  175.         "contime",            /* timeout for opening connection */
  176.         "crmap",            /* map for Berkeley 4.3 compatibility */
  177.         "duplex",            /* half duplex for IBM machines ==15==*/
  178.         "vtwrap",            /* should VT wrap? */
  179.         "vtwidth",            /* width of VT100 screen */
  180.         "font",                /* font to use, when given a choice */
  181.         "fsize",            /* font size, in points */
  182.         "nfcolor",            /* normal foreground color ==20==*/
  183.         "nbcolor",            /* normal background color */
  184.         "bfcolor",            /* blink foreground color */
  185.         "bbcolor",            /* blink background color */
  186.         "ufcolor",            /* underline foreground color */
  187.         "ubcolor",            /* underline background color ==25==*/
  188.         "rfcolor",            /* reverse foreground color */
  189.         "rbcolor",            /* reverse background color */
  190.         "clearsave",        /* clear screen saves lines */
  191.         "port",                /* TCP port to go for */
  192.                 "ftpoptions",       /* Options for ftp command line ==30==*/
  193. /*
  194. *  following are one-time entries, above are part of the data structure
  195. */
  196.         "domainretry",      /* # of retries */
  197.         "netmask",            /* subnetting mask */
  198.         "myip",                /* local machine's IP # */
  199.         "hpfile",            /* HPGL output file */
  200.         "psfile",           /* postscript output file ==35==*/
  201.         "tekfile",          /* tektronix output file */
  202.         "timeslice",        /* timer slice for multi-tasking */
  203.         "myname",            /* identifying info */
  204.         "concolor",            /* console colors */
  205.         "hardware",         /* network hardware ==40==*/
  206.         "address",          /* Address of hardware */
  207.         "ioaddr",            /* ioaddress of hardware */
  208.         "domain",            /* default domain for lookup */
  209.         "commandkeys",        /* use command keys on mac */
  210.         "interrupt",        /* interrupt request 3 or 5 ==45==*/
  211.         "bios",             /* use BIOS screen */
  212.         "tek",                /* tektronix graphics */
  213.         "video",            /* type of video hardware */
  214.         "ftp",                /* enable ftp? */
  215.         "rcp",              /* enable rcp? ==50==*/
  216.         "passfile",         /* password file name */
  217.         "capfile",            /* capture file name */
  218.         "termtype",            /* terminal type */
  219.         "nameservertype",    /* nameserver type */
  220.         "copyfrom",         /* copy from another machine ==55==*/
  221.         "arptime",          /* time-out for ARPs */
  222.         "zone",                /* NBP zone for Macs */
  223.         "domaintime",        /* time-out for DOMAIN */
  224.         "keyfile",            /* file for keyboard map */
  225.         "wire",             /* Thin or thick ether? Needed for 3c503 ==60==*/
  226.         "cursortop",        /* Starting line for the cursor */
  227.         "cursorbottom",        /* Ending line for the cursor */
  228.         "windowgoaway",        /* Whether to wait for a keypress after a window closes, or not */
  229.         "autoscroll",        /* Do we automatically scroll in scrollback */
  230.         "clock",            /* Display the clock? ==65==*/
  231.         "broadcast",        /* IP broadcast address */
  232.         "outputfile",       /* File for the output mapping definition */
  233.         "beep",             /* musical note display */
  234.         "services",            /* specify path to services file */
  235.         ""
  236.     }
  237. #endif
  238.     ;
  239.  
  240. #ifndef CONFIG_MASTER
  241. extern
  242. #endif
  243. struct machinfo *Smachlist,*Smptr;
  244.  
  245. #ifndef CONFIG_MASTER
  246. extern
  247. #endif
  248. struct machinfo *Sns
  249. #ifdef CONFIG_MASTER
  250. =NULL
  251. #endif
  252. ;
  253.  
  254. #ifndef CONFIG_MASTER
  255. extern
  256. #endif
  257. int default_mapoutput
  258. #ifdef CONFIG_MASTER
  259. =0
  260. #endif
  261. ;
  262.  
  263. #ifndef CONFIG_MASTER
  264. extern
  265. #endif
  266. unsigned char *Smachfile
  267. #ifdef CONFIG_MASTER
  268. ={"config.tel"}
  269. #endif
  270. ,
  271.     *Smachpath
  272. #ifdef CONFIG_MASTER
  273. ={""}
  274. #endif
  275. ,
  276.     Sflags[NUMSPECS-95],    /* which parms we have or have not */
  277.     *Sspace;
  278.  
  279. #ifndef CONFIG_MASTER
  280. extern
  281. #endif
  282. int mno
  283. #ifdef CONFIG_MASTER
  284. =0
  285. #endif
  286. ,                  /* how many machines in host file */
  287.     beep_notify
  288. #ifdef CONFIG_MASTER
  289. =1
  290. #endif
  291. ,                           /* whether to beep when text is received on a non-visible screen */
  292.     lineno,                 /* line number in hosts file */
  293.     position,               /* position for scanning string */
  294.     constate,               /* state for config file parser */
  295.     inquote;                /* flag, inside quotes now */
  296. #define CONFILE_H
  297. #endif  /* confile.h */
  298.  
  299.