home *** CD-ROM | disk | FTP | other *** search
/ GRIPS 2: Government Rast…rocessing Software & Data / GRIPS_2.cdr / dos / ncsa_tel / tel_2_2_ / source / whatami.h < prev    next >
C/C++ Source or Header  |  1988-07-15  |  3KB  |  101 lines

  1. /*
  2. *    Whatami.h
  3. *  Machine specific information for NCSA Telnet TCP/IP kernel
  4. ****************************************************************************
  5. *                                                                          *
  6. *                                                                          *
  7. *      NCSA Telnet                                                         *
  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. ****************************************************************************
  16. *   Defines for TCP/IP library, are you a Mac or a PC?
  17. */
  18.  
  19. #ifndef MAC
  20. #define PC 1
  21. #define ETHER 1
  22. #define UB 1 
  23. #endif
  24.  
  25.  
  26. #ifndef ETHER
  27. #define ATALK 1
  28. #endif
  29.  
  30. /*
  31. *   Defines which have to do with Ethernet addressing versus Appletalk
  32. *   addressing.  Ethernet has 6 bytes of hardware address, ATALK has 4
  33. */
  34. #ifdef ETHER
  35. #define DADDLEN 6
  36. #define WINDOWSIZE 4096
  37. #define TSENDSIZE 512
  38. #define DEFWINDOW 1024
  39. #define DEFSEG    1024
  40. #define TMAXSIZE 1024
  41. #define UMAXLEN 1024
  42. #define ICMPMAX 300 
  43. #else
  44. /*  define for AppleTalk */
  45. #define DADDLEN 4
  46. #define WINDOWSIZE 4096
  47. #define TSENDSIZE 512
  48. #define DEFWINDOW 512
  49. #define DEFSEG    512
  50. #define TMAXSIZE 512
  51. #define UMAXLEN 512
  52. #define ICMPMAX 300 
  53. #endif
  54.  
  55.  
  56. #ifdef PC
  57. /*
  58. *  define length of an integer - can be 16 or 32, we need to know which
  59. */
  60. typedef char int8;
  61. typedef unsigned char uint8;
  62. typedef int int16;
  63. typedef long int int32;
  64. typedef unsigned int uint16;
  65. typedef unsigned int uint;
  66. typedef unsigned long int uint32;
  67.  
  68.  
  69. #define TICKSPERSEC 18
  70. #define SMINRTO 5
  71. #define WRAPTIME 86400L                /* in seconds, only for PC */
  72. #define NPORTS    30
  73. #define CONNWAITTIME 20                /* default contime in seconds */
  74. uint32 longswap();
  75.  
  76. #define NFDEF {2,0,0}
  77. #define NBDEF {0,0,0}
  78. #define BFDEF {0,0,0}
  79. #define BBDEF {2,0,0}
  80. #define UFDEF {1,0,0}
  81. #define UBDEF {0,0,0}
  82.  
  83. #else
  84. #define TICKSPERSEC 60
  85. #define SMINRTO 25
  86. #define NPORTS    30
  87. #define CONNWAITTIME 20                /* default contime in seconds */
  88.  
  89. #define    longswap(x) x
  90. #define intswap(x) x
  91. #define movebytes(x,y,z) movmem(y,x,z)
  92. #define movenbytes(x,y,z) movmem(y,x,z)
  93. #define n_putchar(x) putchar(x)
  94. #define n_puts(x) putln(x)
  95. #define NPORTS    30
  96.  
  97. #endif
  98.  
  99. #include "netevent.h"
  100.  
  101.