File hashing (not finished)

This commit is contained in:
2025-10-27 17:33:39 +02:00
parent 24c4e75943
commit 76dff7dafb
9 changed files with 421 additions and 86 deletions
+4
View File
@@ -1,6 +1,7 @@
#ifndef MAIN_H
#define MAIN_H
#include <stddef.h>
#include <stdint.h>
#define PORT 2000
#define MAX_CONNECTIONS 1024
#define INBUFSIZE 1024
@@ -56,6 +57,7 @@ typedef struct session {
char *fpath;
char f_perm;
char *fdesc;
uint32_t hash;
size_t fsize;
size_t f_rest;
long int userpos; /* hint to the position in user list */
@@ -77,4 +79,6 @@ typedef struct server_data_t {
int ls;
} server_data_t;
#define FILE_HASH_SEED 898
#endif