40 lines
781 B
C
40 lines
781 B
C
/* global */
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <pthread.h>
|
|
|
|
/* sys */
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
|
|
/* socket */
|
|
#include <netinet/in.h>
|
|
#include <netdb.h> // getaddrinfo, getnameinfo
|
|
#include <arpa/inet.h>
|
|
|
|
/* basis */
|
|
#define TRUE 1
|
|
#define FALSE 0
|
|
|
|
|
|
/* debug */
|
|
// #define DEBUGMOD FALSE // <Boolean> TRUE = débugmode activé
|
|
#define DEBUGMOD TRUE // <Boolean> TRUE = débugmode activé
|
|
|
|
/* vars */
|
|
#define remoteHost "localhost"
|
|
#define remotePort "80"
|
|
#define maxBuffLen 4096
|
|
#define maxListLen 2
|
|
#define maxHostLen 64
|
|
#define maxPortLen 6
|
|
|
|
#define FTP_HOST "31.170.164.47"
|
|
#define FTP_PORT "21"
|
|
|
|
/* local dependencies */
|
|
#include "dep/utility.c"
|
|
#include "dep/client.c"
|
|
#include "dep/server.c"
|