diff options
Diffstat (limited to 'src/transport/transport-testing2.h')
-rw-r--r-- | src/transport/transport-testing2.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/transport/transport-testing2.h b/src/transport/transport-testing2.h index b5db28500..b9e492219 100644 --- a/src/transport/transport-testing2.h +++ b/src/transport/transport-testing2.h | |||
@@ -435,6 +435,25 @@ struct GNUNET_TRANSPORT_TESTING_TestMessage | |||
435 | */ | 435 | */ |
436 | uint32_t num GNUNET_PACKED; | 436 | uint32_t num GNUNET_PACKED; |
437 | }; | 437 | }; |
438 | |||
439 | struct GNUNET_TRANSPORT_TESTING_PerformanceTestMessage | ||
440 | { | ||
441 | /** | ||
442 | * Type is (usually) #GNUNET_TRANSPORT_TESTING_SIMPLE_PERFORMANCE_MTYPE. | ||
443 | */ | ||
444 | struct GNUNET_MessageHeader header; | ||
445 | |||
446 | /** | ||
447 | * Time this message was send via transport api. | ||
448 | */ | ||
449 | struct GNUNET_TIME_AbsoluteNBO time_send; | ||
450 | |||
451 | /** | ||
452 | * Monotonically increasing counter throughout the test. | ||
453 | */ | ||
454 | uint32_t num GNUNET_PACKED; | ||
455 | }; | ||
456 | |||
438 | GNUNET_NETWORK_STRUCT_END | 457 | GNUNET_NETWORK_STRUCT_END |
439 | 458 | ||
440 | 459 | ||
@@ -774,6 +793,10 @@ GNUNET_TRANSPORT_TESTING_send ( | |||
774 | */ | 793 | */ |
775 | #define GNUNET_TRANSPORT_TESTING_SIMPLE_MTYPE2 12346 | 794 | #define GNUNET_TRANSPORT_TESTING_SIMPLE_MTYPE2 12346 |
776 | 795 | ||
796 | /** | ||
797 | * Message type used by #(). | ||
798 | */ | ||
799 | #define GNUNET_TRANSPORT_TESTING_SIMPLE_PERFORMANCE_MTYPE 12347 | ||
777 | 800 | ||
778 | /** | 801 | /** |
779 | * Type of the closure argument to pass to | 802 | * Type of the closure argument to pass to |