2017-04-01 15:01:36 +00:00
|
|
|
#include "lib/header.h"
|
|
|
|
|
|
|
|
#include "lib/plane/plane.h"
|
|
|
|
|
|
|
|
|
2017-03-28 16:45:18 +00:00
|
|
|
|
|
|
|
/* local dependencies */
|
2017-04-01 15:01:36 +00:00
|
|
|
#include "lib/util.h"
|
|
|
|
#include "lib/network/tcp/server.h"
|
|
|
|
#include "lib/network/udp/server.h"
|
2017-03-28 16:45:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* headers */
|
2017-04-01 15:01:36 +00:00
|
|
|
void* LISTEN_TCP();
|
|
|
|
void* LISTEN_UDP();
|
|
|
|
void* managePlane(void* THREADABLE_SOCKET);
|
|
|
|
// void* manageViewTerm(void* THREADABLE_SOCKET);
|
|
|
|
// void* manageCtrlTerm(void* THREADABLE_SOCKET);
|
|
|
|
|
|
|
|
// VARIABLES THREADS D'ECOUTE TCP/UDP
|
|
|
|
static pthread_t listenManagers[2]; // contiendra les THREADS d'écoute
|
|
|
|
|
|
|
|
// VARIABLES THREADS CONNECTION TCP
|
|
|
|
static pthread_t TCPManagers[MAX_TCP_THR]; // contiendra les THREADS TCP
|
|
|
|
static int activeTCPManagers[MAX_TCP_THR] = {0}; // contiendra les THREADS TCP actifs
|