home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / NCSATELN / TEL23SRC.ZIP / INCLUDE / WHATAMI.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-29  |  4.3 KB  |  118 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 WHATAMI_H
  20.  
  21. #ifndef MAC
  22. #define PC 1
  23. #define ETHER 1
  24. #define UB 1 
  25. #endif
  26.  
  27. #ifndef ETHER
  28. #define ATALK 1
  29. #endif
  30.  
  31. /*
  32. *   Defines which have to do with Ethernet addressing versus Appletalk
  33. *   addressing.  Ethernet has 6 bytes of hardware address, ATALK has 4
  34. */
  35. #ifdef ETHER
  36. #define DADDLEN     6
  37. #define WINDOWSIZE     4096
  38. #define TSENDSIZE     512
  39. #define DEFWINDOW     1024
  40. #define DEFSEG        1024
  41. #define TMAXSIZE     1024
  42. #define UMAXLEN     1024
  43. #define ICMPMAX     300 
  44. #else
  45. /*  define for AppleTalk */
  46. #define DADDLEN     4
  47. #define WINDOWSIZE     4096
  48. #define TSENDSIZE     512
  49. #define DEFWINDOW     512
  50. #define DEFSEG        512
  51. #define TMAXSIZE     512
  52. #define UMAXLEN     512
  53. #define ICMPMAX     300 
  54. #endif
  55.  
  56. /*
  57. *  define length of an integer - can be 16 or 32, we need to know which
  58. */
  59. typedef char int8;
  60. typedef unsigned char uint8;
  61. typedef unsigned char byte;
  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. #define TICKSPERSEC     18
  69. #define SMINRTO         5
  70. #define WRAPTIME         86400L            /* in seconds, only for PC */
  71. #define NPORTS            30
  72. #define CONNWAITTIME    20                /* default contime in seconds */
  73. #define KIP nnkip
  74. #define NFDEF 2
  75. #define NBDEF 0
  76. #define BFDEF 0
  77. #define BBDEF 2
  78. #define UFDEF 1
  79. #define UBDEF 0
  80.  
  81. /*
  82. *  Events for event processing in NCSA Telnet.
  83. *  Used for netgetevent().
  84. */
  85. #define USERCLASS    1        /* the user program will accept these events */
  86. #define ICMPCLASS    2        /* ICMP in netsleep will look for these */
  87. #define ERRCLASS    4        /* the user may or may not read these error messages */
  88. #define SCLASS        8        /* the background server will take these */
  89. #define CONCLASS    0x10    /* the application manages connections with these */
  90. #define ERR1        1        /* an error message is waiting, ERRCLASS */
  91. #define IREDIR        1        /* ICMP redirect, ICMPCLASS */
  92. #define CONOPEN     1        /* connection has opened, CONCLASS */
  93. #define CONDATA     2       /* there is data available on this connection */
  94. #define CONCLOSE     3        /* the other side has closed its side of the connection */
  95. #define CONFAIL     4        /* connection open attempt has failed */
  96. #define UDPDATA     1        /* UDP data has arrived on listening port, USERCLASS */
  97. #define DOMOK        2        /* domain name ready */
  98. #define DOMFAIL     3        /* domain name lookup failed */
  99. #define FTPCOPEN     20         /* FTP command connection has opened */
  100. #define FTPCLOSE     21         /* FTP command connection has closed */
  101. #define FTPBEGIN     22         /* FTP transfer beginning, dat =1 for get, 0 for put */
  102. #define FTPEND       23         /* FTP transfer ending */
  103. #define FTPLIST      24         /* FTP file listing taking place */
  104. #define FTPUSER      25         /* FTP user name has been entered */
  105. #define FTPPWOK        26        /* FTP password verified */
  106. #define FTPPWNO     27        /* FTP password failed */
  107. #define RCPBEGIN     30        /* RCP beginning */
  108. #define RCPEND         31        /* RCP ending */
  109. #define UDPTO         1        /* UDP request from DOMAIN timed out, SCLASS */
  110. #define FTPACT         2        /* FTP transfer is active, keep sending */
  111. #define TCPTO          3        /* TCP for DOMAIN timed out */
  112. #define RCPACT         4        /* rcp is active, needs CPU time */
  113. #define RETRYCON     5        /* retry connection packet, might be lost */
  114. #define CLOSEDONE     6        /* Close completion routine has been called (for Mac Drivers only) */
  115.  
  116. #define WHATAMI_H
  117. #endif
  118.