first flow of .h, one main() compilng

This commit is contained in:
tonton Th
2020-03-28 09:57:02 +01:00
parent 33f0954c7b
commit 850cf9d8bd
14 changed files with 873 additions and 5 deletions

37
guinnessd.h Normal file
View File

@@ -0,0 +1,37 @@
/*
* guinnessd
* architecture clients/serveur guinness
* Thomas Nemeth -- le 15 juin 2001
*
*/
#ifndef GUINNESS_SERVER
#define GUINNESS_SERVER
#include <pthread.h>
#define CONFIG_FILE "/etc/guinnessdrc"
#define ECRITURE 0
#define LECTURE 1
typedef struct userinfos {
char nom[MAXSTRLEN + 1];
char prefb[MAXSTRLEN + 1];
char logout[MAXSTRLEN + 1];
char cxdate[MAXSTRLEN + 1];
char host[MAXSTRLEN + 1];
char ip[MAXSTRLEN + 1];
int port;
int admin;
int cold;
int comm[2]; /* Pas encore utilisé */
} userinfos;
pthread_mutex_t mutex_broadcast;
pthread_mutex_t mutex_clients;
#endif