home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / netper21.zip / netsh.h < prev    next >
C/C++ Source or Header  |  1996-01-30  |  3KB  |  125 lines

  1. /*
  2.         Copyright (C) 1993,1995 Hewlett-Packard Company
  3. */
  4.  
  5. /* libraried performance include file                 */
  6. /* the define NOPERFEXTERN tels us not to re-define all the     */
  7.  
  8. /* defines and defaults */
  9. #define        HOSTNAMESIZE     255
  10. #define        DEFAULT_SIZE    32768
  11. #define        HOST_NAME    "127.0.0.1"
  12. #define        TEST_PORT    12865
  13.  
  14. /* output controlling variables                                         */
  15. #define     DEBUG 0        /* debugging level            */
  16. #define     VERBOSITY 0    /* verbosity level            */
  17.  
  18. /* the end-test conditions for the tests - either transactions, bytes,  */
  19. /* or time. different vars used for clarity - space is cheap ;-)        */
  20. #define     TEST_TIME 10    /* test ends by time            */
  21. #define     TEST_BYTES 0    /* test ends on byte count        */
  22. #define     TEST_TRANS 0    /* test ends on tran count        */
  23.  
  24. /* the alignment conditions for the tests                */
  25. #define     LOC_RECV_ALIGN    4    /* alignment for local receives    */
  26. #define     LOC_SEND_ALIGN    4    /* alignment for local sends    */
  27. #define     REM_RECV_ALIGN    4    /* alignment for remote receive    */
  28. #define     REM_SEND_ALIGN    4    /* alignment for remote sends    */
  29.  
  30. /* misc defines for the hell of it                    */
  31. #define     MAXLONG      4294967295L
  32.  
  33. #ifndef NETSH
  34. /* stuff to say where this test is going                                */
  35. extern char    host_name[HOSTNAMESIZE];/* remote host name or ip addr  */
  36. extern short    test_port;        /* where is the test waiting    */
  37.  
  38. extern void     set_defaults();
  39. extern void     scan_cmd_line();
  40. extern void     dump_globals();
  41. extern void     break_args();
  42. extern void     print_netserver_usage();
  43.  
  44. /* output controlling variables                                         */
  45. extern int
  46.   debug,        /* debugging level            */
  47.   print_headers,    /* do/don't print test headers        */
  48.   verbosity;        /* verbosity level            */
  49.  
  50. /* the end-test conditions for the tests - either transactions, bytes,  */
  51. /* or time. different vars used for clarity - space is cheap ;-)        */
  52. extern int    
  53.   test_time,        /* test ends by time            */
  54.   test_len_ticks,
  55.   test_bytes,        /* test ends on byte count        */
  56.   test_trans;        /* test ends on tran count        */
  57.  
  58. /* the alignment conditions for the tests                */
  59. extern int
  60.   local_recv_align,    /* alignment for local receives        */
  61.   local_send_align,    /* alignment for local sends        */
  62.   remote_recv_align,    /* alignment for remote receives    */
  63.   remote_send_align,    /* alignment for remote sends        */
  64.   local_send_offset,
  65.   local_recv_offset,
  66.   remote_send_offset,
  67.   remote_recv_offset;
  68.  
  69. #ifdef INTERVALS
  70. extern    int          interval_usecs;
  71. extern  int          interval_wate;
  72. extern    int         interval_burst;
  73. extern  int          demo_mode;
  74. extern  unsigned int units_this_tick;
  75. #endif /* INTERVALS */
  76.  
  77. #ifdef DIRTY
  78. extern int    rem_dirty_count;
  79. extern int    rem_clean_count;
  80. extern int    loc_dirty_count;
  81. extern int    loc_clean_count;
  82. #endif /* DIRTY */
  83.  
  84. /* stuff for confidence intervals */
  85.  
  86. extern int  confidence_level;
  87. extern int  iteration_min;
  88. extern int  iteration_max;
  89. extern double interval;
  90.  
  91. /* stuff to controll the bufferspace "width" */
  92. extern int    send_width;
  93. extern int      recv_width;
  94.  
  95. /* different options for other things                    */
  96. extern int
  97.   local_cpu_usage,
  98.   remote_cpu_usage;
  99.  
  100. extern float
  101.   local_cpu_rate,
  102.   remote_cpu_rate;
  103.  
  104. extern int
  105.   shell_num_cpus;
  106.  
  107. extern    char    
  108.   test_name[BUFSIZ];
  109.  
  110. extern char
  111.   fill_file[BUFSIZ];
  112.  
  113. #ifdef DO_DLPI
  114.  
  115. extern int
  116.   loc_ppa,
  117.   rem_ppa;
  118.  
  119. extern int
  120.   dlpi_sap;
  121.  
  122. #endif /* DO_DLPI */
  123.  
  124. #endif
  125.