Comment servir des pintes de Guinness "over Internet" ;) Reprise/Fork d'un très ancien code d'un pilier de f.m.b.l : http://tnemeth.free.fr/projets/guinness-server.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

guinnessd.h 638B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * guinnessd
  3. * architecture clients/serveur guinness
  4. * Thomas Nemeth -- le 15 juin 2001
  5. *
  6. */
  7. #ifndef GUINNESS_SERVER
  8. #define GUINNESS_SERVER
  9. #include <pthread.h>
  10. #define CONFIG_FILE "/etc/guinnessdrc"
  11. #define ECRITURE 0
  12. #define LECTURE 1
  13. typedef struct userinfos {
  14. char nom[MAXSTRLEN + 1];
  15. char prefb[MAXSTRLEN + 1];
  16. char logout[MAXSTRLEN + 1];
  17. char cxdate[MAXSTRLEN + 1];
  18. char host[MAXSTRLEN + 1];
  19. char ip[MAXSTRLEN + 1];
  20. int port;
  21. int admin;
  22. int cold;
  23. int comm[2]; /* Pas encore utilise */
  24. } userinfos;
  25. pthread_mutex_t mutex_broadcast;
  26. pthread_mutex_t mutex_clients;
  27. #endif