blob: bbba44c76e487e7737d98fd2f4a4bbde9d09c41c (
plain) (
tree)
|
|
#ifndef IMAGEHELPER_H
#define IMAGEHELPER_H
#include <netdb.h>
#include <stdbool.h>
#include <stdint.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
|