summaryrefslogtreecommitdiffstats
path: root/src/bench/helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bench/helper.h')
-rw-r--r--src/bench/helper.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/bench/helper.h b/src/bench/helper.h
new file mode 100644
index 0000000..8342a79
--- /dev/null
+++ b/src/bench/helper.h
@@ -0,0 +1,38 @@
+#ifndef IMAGEHELPER_H
+#define IMAGEHELPER_H
+
+#include "../types.h"
+
+#include <netdb.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <string.h>
+#include <sys/socket.h>
+
+typedef struct log_info {
+ uint64_t imageSize;
+ uint64_t receivedBytes;
+ uint64_t imageBlockCount;
+ uint8_t *blockRequestCount;
+} log_info;
+
+
+typedef struct BenchCounters {
+ int attempts;
+ int success;
+ int fails;
+} BenchCounters;
+
+
+typedef struct BenchThreadData {
+ BenchCounters* counter;
+ char* server_address;
+ char * image_name;
+ int runs;
+ int threadNumber;
+ bool closeSockets;
+} BenchThreadData;
+
+
+
+#endif