Added basic file transfer

This commit is contained in:
2020-12-20 16:47:40 +01:00
parent f0338209f5
commit 00abf345b9
7 changed files with 192 additions and 38 deletions

View File

@ -33,8 +33,10 @@
#define REQ_PER_CONNECTION 100
#define CLIENT_TIMEOUT 3600
#define CHUNK_SIZE 4096
#define CLIENT_MAX_HEADER_SIZE 8192
#define FILE_CACHE_SIZE 1024
#define SHM_KEY 255641
#define ERR_STR "\x1B[1;31m"
#define CLR_STR "\x1B[0m"
@ -52,6 +54,8 @@
#define SERVER_STR "Necronda/" NECRONDA_VERSION
#define NECRONDA_DEFAULT "www.necronda.net"
#define MAGIC_FILE "/usr/share/file/misc/magic.mgc"
int SOCKETS[NUM_SOCKETS];
pid_t CHILDREN[MAX_CHILDREN];