home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / NCSA / TEL2307S.ZIP / INCLUDE / WHATAMI.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-11  |  4.6 KB  |  117 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. #define WHATAMI_H
  21.  
  22. #define PC 1
  23. #define ETHER 1
  24. #define UB 1 
  25.  
  26. /*
  27. *   Defines which have to do with Ethernet addressing versus Appletalk
  28. *   addressing.  Ethernet has 6 bytes of hardware address, ATALK has 4
  29. */
  30. #ifdef ETHER
  31. #define DADDLEN     6
  32. #define WINDOWSIZE     4096
  33. #define TSENDSIZE     512
  34. #define DEFWINDOW     1024
  35. #define DEFSEG        1024
  36. #define TMAXSIZE     1024
  37. #define UMAXLEN     1024
  38. #define ICMPMAX     300 
  39. #else
  40. /*  define for AppleTalk */
  41. #define DADDLEN     4
  42. #define WINDOWSIZE     4096
  43. #define TSENDSIZE     512
  44. #define DEFWINDOW     512
  45. #define DEFSEG        512
  46. #define TMAXSIZE     512
  47. #define UMAXLEN     512
  48. #define ICMPMAX     300 
  49. #endif
  50.  
  51. /*
  52. *  define length of an integer - can be 16 or 32, we need to know which
  53. */
  54. typedef char int8;
  55. typedef unsigned char uint8;
  56. typedef unsigned char byte;
  57. typedef int int16;
  58. typedef unsigned int uint16;
  59. typedef unsigned int uint;
  60. typedef long int int32;
  61. typedef unsigned long int uint32;
  62.  
  63. #define TICKSPERSEC     18
  64. #define SMINRTO         5
  65. #define WRAPTIME         86400L            /* in seconds, only for PC */
  66. #define NPORTS            30
  67. #define CONNWAITTIME    20                /* default contime in seconds */
  68. #define KIP nnkip
  69. #define NFDEF 2
  70. #define NBDEF 0
  71. #define BFDEF 0
  72. #define BBDEF 2
  73. #define UFDEF 1
  74. #define UBDEF 0
  75.  
  76. /*
  77. *  Events for event processing in NCSA Telnet.
  78. *  Used for netgetevent().
  79. */
  80. #define USERCLASS    1        /* the user program will accept these events */
  81. #define ICMPCLASS    2        /* ICMP in netsleep will look for these */
  82. #define ERRCLASS    4        /* the user may or may not read these error messages */
  83. #define SCLASS        8        /* the background server will take these */
  84. #define CONCLASS    0x10    /* the application manages connections with these */
  85. #define ERR1        1        /* an error message is waiting, ERRCLASS */
  86. #define IREDIR        1        /* ICMP redirect, ICMPCLASS */
  87. #define CONOPEN     1        /* connection has opened, CONCLASS */
  88. #define CONDATA     2       /* there is data available on this connection */
  89. #define CONCLOSE     3        /* the other side has closed its side of the connection */
  90. #define CONFAIL     4        /* connection open attempt has failed */
  91. #define UDPDATA     1        /* UDP data has arrived on listening port, USERCLASS */
  92. #define DOMOK        2        /* domain name ready */
  93. #define DOMFAIL     3        /* domain name lookup failed */
  94. #define FTPCOPEN     20         /* FTP command connection has opened */
  95. #define FTPCLOSE     21         /* FTP command connection has closed */
  96. #define FTPBEGIN     22         /* FTP transfer beginning, dat =1 for get, 0 for put */
  97. #define FTPEND       23         /* FTP transfer ending */
  98. #define FTPLIST      24         /* FTP file listing taking place */
  99. #define FTPUSER      25         /* FTP user name has been entered */
  100. #define FTPANON         36      /* FTP anon session begun */
  101. #define FTPPWOK         26              /* FTP password verified */
  102. #define FTPPWSK1        32              /* FTP password skipped */
  103. #define FTPPWSK2        35              /* FTP password skipped */
  104. #define FTPPWWT         34              /* FTP write access */
  105. #define FTPPWRT         33              /* FTP root access gained */
  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. #endif
  117.