Changeset 572:b1b56d4682d0 in freeDiameter for extensions/test_app/test_app.h
- Timestamp:
- Oct 8, 2010, 3:30:36 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_app/test_app.h
r258 r572 52 52 #define MODE_SERV 0x1 53 53 #define MODE_CLI 0x2 54 #define MODE_BENCH 0x4 54 55 55 56 /* The module configuration */ … … 64 65 char * user_name; /* default NULL */ 65 66 int signal; /* default TEST_APP_DEFAULT_SIGNAL */ 67 struct ta_stats { 68 unsigned long long nb_echoed; /* server */ 69 unsigned long long nb_sent; /* client */ 70 unsigned long long nb_recv; /* client */ 71 unsigned long long nb_errs; /* client */ 72 unsigned long shortest; /* fastest answer, in microseconds */ 73 unsigned long longest; /* slowest answer, in microseconds */ 74 unsigned long avg; /* average answer time, in microseconds */ 75 } stats; 76 pthread_mutex_t stats_lock; 66 77 }; 67 78 extern struct ta_conf * ta_conf; … … 77 88 int ta_cli_init(void); 78 89 void ta_cli_fini(void); 90 91 /* Benchmark flavour */ 92 int ta_bench_init(void); 93 void ta_bench_fini(void); 79 94 80 95 /* Initialize dictionary definitions */
Note: See TracChangeset
for help on using the changeset viewer.