Startpunkten

This commit is contained in:
2026-03-05 13:37:25 +01:00
commit 00233de938
22 changed files with 4613 additions and 0 deletions

29
header_ftp.h Normal file
View File

@@ -0,0 +1,29 @@
/*================================================================
LAB I DATAKOMMUNIKATION
FTP_APPLICATION
Stefan Sonesson
Christian Ohlsson
Karlstad 981215
-----------------------------------------------------------------*/
#ifndef ___FTP_APP___
#define ___FTP_APP___
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/stat.h>
#define FALSE 0
#define TRUE 1
#define ENTER 13
#define BACKSPACE 8
#define PERMS 0644
#define BUFSIZE 4000
#define FNSIZE 300
#define SIGLEN 3
#define S_PATH "./ftp_socket"
#define L_PATH "./ftp_layer"
#define STDIN 0
int FSOCK_FD;
#endif