home *** CD-ROM | disk | FTP | other *** search
/ GRIPS 2: Government Rast…rocessing Software & Data / GRIPS_2.cdr / dos / ncsa_tel / contribu / byu_tel2.hqx / tcpip / hostform.h < prev    next >
Text File  |  1989-05-17  |  4KB  |  103 lines

  1. /**************************************************************************/
  2. /*  storage of machine information
  3. *      structure for a linked list of information about other machines
  4. *  that we may want to talk to.
  5. *
  6. *  Defines and structures for use in this file
  7. */
  8.  
  9.  
  10. struct machinfo {
  11.     unsigned char 
  12.         *sname,                    /* pointer to name of session */
  13.         *hname,                 /* pointer to name of that machine */
  14.         *font,                    /* font name, if we can do it */
  15.         hostip[4],                /* IP number of this machine */
  16.         gateway,                /* gateway preference, start with 1 */
  17.         nameserv,                /* nameserver preference, start with 1 */
  18.         bksp,                    /* backspace value */
  19.         halfdup,                /* half duplex required */
  20.         crmap,                    /* Strange Berkeley 4.3 CR mode needed */
  21.         ckey,                    /* int,sus,res mappings, traditional ^C,^S,^Q */
  22.         skey,
  23.         qkey,
  24.         vtwrap,                    /* flag on when need wrap mode */
  25.         vtwidth;                /* how wide screen should be for this session */
  26.     int
  27.         clearsave,                /* whether to save cleared lines */
  28.         fsize,                    /* font size in points */
  29.         nfcolor[3],                /* normal foreground */
  30.         nbcolor[3],                /* normal background */
  31.         bfcolor[3],                /* blink             */
  32.         bbcolor[3],
  33.         ufcolor[3],             /* underline */
  34.         ubcolor[3],
  35.         port,                    /* TCP port number to access, default = 23 (telnet) */
  36.         mno,                    /* machine number for reference */
  37.         mstat,                    /* status of this machine entry */
  38.         bkscroll,                /* how many lines to save */
  39.         nlines,                    /* number of lines for VT100 screen */
  40.         retrans,                /* initial retrans timeout */
  41.         conto,                    /* time out in seconds to wait for connect */
  42.         window,                    /* window, will be checked against buffers */
  43.         maxseg,                    /* maximum receivable segment size */
  44.         mtu;                    /* maximum transfer unit MTU (out) */
  45.  
  46.     struct machinfo *next;        /* surprise, its a linked list! */
  47. };
  48.  
  49. struct machinfo *Sgethost(),*Shostlook(),*Slooknum(),*Slookip(),*Smadd();
  50.  
  51. /*
  52. *  status fields for mstat, what do we know about that machine?
  53. */
  54. #define NOIP 1                    /* we don't have IP number */
  55. #define UDPDOM 3                /* there is a UDP request pending on it */
  56. /*  The next 20 numbers are reserved for UDPDOM */
  57. #define HAVEIP 50                /* at least we have the # */
  58. #define HFILE 70                /* we have IP number from host file */
  59. #define DOM 71                    /* we have an IP number from DOMAIN */
  60. #define FROMKIP 72                /* have IP# from KIP server */
  61.  
  62. /*
  63. *   Configuration information which 
  64. *   the calling program may want to obtain from the hosts file.
  65. *   The calling program should include hostform.h and call
  66. *   Sgetconfig(cp)
  67. *     struct config *cp;
  68. *   which will copy the information to the user's data structure.
  69. */
  70. struct config {
  71.     unsigned char
  72.         netmask[4],                /* subnetting mask being used */
  73.         havemask,                /* do we have a netmask? */
  74.         irqnum,                    /* which hardware interrupt */
  75.         myipnum[4],                /* what is my IP #? */
  76.         me[32],                    /* my name description (first 30 chars) */
  77.         color[3],                /* default colors to use */
  78.         hw[10],                    /* hardware type for network */
  79.         video[10],                /* video graphics hardware available */
  80.         bios,                    /* flag, do we want to use BIOS for screen access */
  81.         tek,                    /* flag, enable tektronix graphics */
  82.         ftp,                    /* flag, enable ftp server */
  83.         rcp,                    /* flag, enable rcp server */
  84.         comkeys,                /* flag, commandkeys=yes */
  85.         *termtype,                /* terminal type specification */
  86.         *zone,                    /* AppleTalk zone for KIP NBP */
  87.         *defdom,                /* default domain */
  88.         *capture,                /* pointer to where the capture file name is */
  89.         *pass,                    /* pointer to where the password file name is */
  90.         *hpfile,                /* HP file name */
  91.         *psfile,                /* PS file name */
  92.         *tekfile;                /* tek file name */
  93. int
  94.         nstype,                    /* nameserver = 1-domain 2-IEN116  */
  95.         domto,                    /* time out for UDP domain request */
  96.         ndom,                    /* number of retries for domain requests */
  97.         timesl,                    /* time slice */
  98.         textblock,                /* text buffering block size */
  99.         address,                /* segment address */
  100.         ioaddr;                    /* I/O address */
  101. };
  102.  
  103.