blob: e0c026255197841e73af1c3c0ae51c7f20890e0f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#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 bs;
int threadNumber;
bool closeSockets;
} BenchThreadData;
#endif
|