GuinnessServer/guinnessd.h

38 lines
638 B
C
Raw Permalink Normal View History

2020-03-28 09:57:02 +01:00
/*
* 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;
2020-04-14 23:41:07 +02:00
int comm[2]; /* Pas encore utilise */
2020-03-28 09:57:02 +01:00
} userinfos;
pthread_mutex_t mutex_broadcast;
pthread_mutex_t mutex_clients;
#endif