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.

defines.h 564B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * defines
  3. * Creation et manipulation de sockets
  4. * Thomas Nemeth -- le 15 juin 2001
  5. *
  6. */
  7. #ifndef GUINNESS_DEFINES
  8. #define GUINNESS_DEFINES
  9. #include <assert.h>
  10. #define DEFAULT_SERVER_PORT 1664
  11. #define DEFAULT_DRINK "guinness"
  12. #define DEFAULT_LOGOUT "Bye bye..."
  13. #define DEFAULT_PSEUDO "toto"
  14. #define SEP "\n"
  15. #define MAXSTRLEN 4096
  16. #ifndef TRUE
  17. #define TRUE 1
  18. #define FALSE 0
  19. #endif
  20. /* Important macros */
  21. #define MY_ALLOC(var, nb, type) \
  22. ((var) = malloc((nb)*sizeof(type)), assert((var) != NULL))
  23. #endif