home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / t / tel2305s.zip / INCLUDE / PCDEFS.H < prev    next >
C/C++ Source or Header  |  1992-04-07  |  1KB  |  54 lines

  1. /*
  2. *  defines that are only applicable to the IBM PC/ PC-DOS environment
  3. *  other files will take this one's place for other machines
  4. */
  5.  
  6. #ifndef PCDEFS_H
  7. #define PCDEFS_H
  8. /*
  9. *  hardware address for Ethernet broadcast address (used for ARP)
  10. */
  11. #ifdef MASTERDEF
  12. unsigned char bseed[]={0xff,0xff,0xff,0xff,0xff,0xff},
  13. #if defined(NET14)
  14.     raw[7000];
  15. #elif defined(__TURBOC__) || defined(__WATCOMC__)
  16.     raw[10000];
  17. #else
  18.     raw[17000];
  19. #endif
  20. #else
  21. extern unsigned char bseed[],raw[];
  22. #endif
  23.  
  24. /*
  25. *  timing information is machine dependent
  26. */
  27. #ifndef REALTIME
  28. #define time(A) n_clicks()
  29. #endif
  30. #define movenbytes(A,B,C) movebytes((A),(B),(C))
  31.  
  32. /*
  33. *  timeout for response to ARP packet for Ethernet
  34. */
  35. /* was 15 */
  36. #define DLAYTIMEOUT 4
  37. /*
  38. *  how often to poke a TCP connection to keep it alive and make
  39. *  sure other side hasn't crashed. (poke) in 1/18ths sec
  40. *  And, timeout interval
  41. */
  42. #define POKEINTERVAL 3000
  43. #define MAXRTO        100
  44. #define MINRTO             5
  45. #define ARPTO             20
  46. #define CACHETO      7000
  47. #define WAITTIME       35
  48. #define LASTTIME      4000
  49. #define CACHELEN        10
  50. #define MAXSEG          1024
  51. #define CREDIT          4096
  52.  
  53. #endif
  54.