diff options
Diffstat (limited to 'src/fuse/imageHelper.h')
-rwxr-xr-x | src/fuse/imageHelper.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/fuse/imageHelper.h b/src/fuse/imageHelper.h new file mode 100755 index 0000000..60805cd --- /dev/null +++ b/src/fuse/imageHelper.h @@ -0,0 +1,28 @@ +#ifndef IMAGEHELPER_H +#define IMAGEHELPER_H + +#include <netdb.h> +#include "protocol.h" +#include <stdio.h> +#include <string.h> +#include <errno.h> +#include <stdlib.h> +#include <unistd.h> +#include <inttypes.h> + + +typedef struct log_info { + uint64_t imageSize; + uint64_t receivedBytes; + uint64_t imageBlockCount; + uint8_t * blockRequestCount; +} log_info; + + + +void printLog(log_info *info); + +bool sock_printable(struct sockaddr *addr, socklen_t addrLen, char *output, int len); + +int connect_to_server(char ** server_adress, int * port); +#endif |