home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / NCSA / TEL2307S.ZIP / INCLUDE / HOSTFORM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-03  |  5.8 KB  |  120 lines

  1. /**************************************************************************/
  2. /*
  3. *  Host and local machine configuration information.
  4. *
  5. ****************************************************************************
  6. *                                                                          *
  7. *      NCSA Telnet for the PC                                              *
  8. *      by Tim Krauskopf, VT100 by Gaige Paulsen, Tek by Aaron Contorer     *
  9. *                                                                          *
  10. *      National Center for Supercomputing Applications                     *
  11. *      152 Computing Applications Building                                 *
  12. *      605 E. Springfield Ave.                                             *
  13. *      Champaign, IL  61820                                                *
  14. *                                                                          *
  15. *      This program is in the public domain.                               *
  16. *                                                                          *
  17. ****************************************************************************
  18. *                                                                           *
  19. *    5/88    clean up for 2.3 release, JKM    
  20. */
  21.  
  22. #ifndef HOSTFORM_H
  23. #define HOSTFORM_H
  24.  
  25. /*
  26. *  Linked list of structures which describe other machines.
  27. *  Arranged one per session with unique session names.
  28. */
  29. struct machinfo {
  30.     unsigned char *sname,        /* pointer to name of session */
  31.         *hname,                 /* pointer to name of that machine */
  32.         *font,                    /* font name, if we can do it */
  33.         *ftpoptions,            /* options for FTP command line (ALT-F) */
  34.         hostip[4],                /* IP number of this machine */
  35.         gateway,                /* gateway preference, start with 1 */
  36.         nameserv,                /* nameserver preference, start with 1 */
  37.         bksp,                    /* backspace value */
  38.         halfdup,                /* half duplex required */
  39.         crmap,                    /* Strange Berkeley 4.3 CR mode needed */
  40.         fsize,                  /* font size in points */
  41.         vtwrap,                 /* flag on when need wrap mode */
  42.         vtwidth;                /* how wide screen should be for this session */
  43.    char nfcolor,                /* normal foreground */
  44.         nbcolor,                /* normal background */
  45.         bfcolor,                /* blink  foreground */
  46.         bbcolor,                /* blink background */
  47.         ufcolor,                /* underline forground */
  48.         ubcolor;                /* underline background */
  49.     int clearsave,              /* whether to save cleared lines */
  50.         port,                    /* TCP port number to access, default = 23 (telnet) */
  51.         mno,                    /* machine number for reference */
  52.         mstat,                    /* status of this machine entry */
  53.         bkscroll,                /* how many lines to save */
  54.         retrans,                /* initial retrans timeout */
  55.         conto,                    /* time out in seconds to wait for connect */
  56.         window,                    /* window, will be checked against buffers */
  57.         maxseg,                    /* maximum receivable segment size */
  58.         mtu;                    /* maximum transfer unit MTU (out) */
  59.     unsigned int mapoutflag:1,  /* flag to indicate whether output mapping is on for this machine */
  60.         consoledebug:2;         /* debugging levels for displaying information on the console */
  61.     struct machinfo *next;      /* surprise, its a linked list! */
  62. };
  63.  
  64. /*
  65. *  status fields for mstat, what do we know about that machine?
  66. */
  67. #define NOIP 1                    /* we don't have IP number */
  68. #define UDPDOM 3                /* there is a UDP request pending on it */
  69. /*  The next 20 numbers are reserved for UDPDOM */
  70. #define HAVEIP 50                /* at least we have the # */
  71. #define HFILE 70                /* we have IP number from host file */
  72. #define DOM 71                    /* we have an IP number from DOMAIN */
  73. #define FROMKIP 72                /* have IP# from KIP server */
  74. /*
  75. *   Configuration information which 
  76. *   the calling program may want to obtain from the hosts file.
  77. *   The calling program should include hostform.h and call
  78. *   Sgetconfig(cp)
  79. *     struct config *cp;
  80. *   which will copy the information to the user's data structure.
  81. */
  82. struct config {
  83.     unsigned char netmask[4],   /* subnetting mask being used */
  84.         irqnum,                    /* which hardware interrupt */
  85.         myipnum[4],                /* what is my IP #? */
  86.         broadip[4],                /* IP broadcast address */
  87.         me[32],                    /* my name description (first 30 chars) */
  88.                 color[3],                               /* default colors to use */
  89.         hw[10],                    /* hardware type for network */
  90.         video[10],                /* video graphics hardware available */
  91.         ega43,                    /* 43 line ega mode */
  92.         *termtype,                /* terminal type specification */
  93.         *zone,                    /* AppleTalk zone for KIP NBP */
  94.         *defdom,                /* default domain */
  95.         *capture,                /* pointer to where the capture file name is */
  96.         *pass,                    /* pointer to where the password file name is */
  97.         *hpfile,                /* HP file name */
  98.         *psfile,                /* PS file name */
  99.         *tekfile;                /* tek file name */
  100.     int cursortop,              /* top line of cursor */
  101.         cursorbottom,            /* bottom line of cursor */
  102.         nstype,                    /* nameserver = 1-domain 2-IEN116  */
  103.         domto,                    /* time out for UDP domain request */
  104.         ndom;                   /* number of retries for domain requests */
  105.     unsigned int address,       /* segment address */
  106.         ioaddr;                    /* I/O address */
  107.     unsigned int havemask:1,    /* do we have a netmask? */
  108.         bios:1,                    /* flag, do we want to use BIOS for screen access */
  109.         tek:1,                    /* flag, enable tektronix graphics */
  110.         ftp:1,                    /* flag, enable ftp server */
  111.         rcp:1,                    /* flag, enable rcp server */
  112.     ftpw:1,          /* flag, enable ftp writes */
  113.         wire:1,                    /* what type of connector? (thin or thick)*/
  114.         wingoaway:1,            /* flag, whether a window goes away when session ends or waits for a keypress */
  115.         clock:1,                /* flag, whether to display the clock or not */
  116.         autoscroll:1;           /* flag, do we perform a fast scroll in scrollback */
  117. };
  118.  
  119. #endif
  120.