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.

commands.h 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * commands
  3. * architecture clients/serveur guinness
  4. * Thomas Nemeth -- le 15 juin 2001
  5. *
  6. */
  7. #ifndef SERVER_COMMANDS
  8. #define SERVER_COMMANDS
  9. /*#define MAXCMDS 14*/
  10. typedef struct cmdslst {
  11. char *nom;
  12. char *aide;
  13. int args;
  14. int adm;
  15. int interv;
  16. int (*fct)();
  17. } cmdslst;
  18. int reply (int socket_service, char *commande, userinfos *infos);
  19. int send_servercmds (int socket_service);
  20. /* Fonctions associees aux commandes */
  21. int f_help (int socket_service, const char *commande, userinfos *infos);
  22. int f_quit (int socket_service, const char *commande, userinfos *infos);
  23. int f_list (int socket_service, const char *commande, userinfos *infos);
  24. int f_bevr (int socket_service, const char *commande, userinfos *infos);
  25. int f_cold (int socket_service, const char *commande, userinfos *infos);
  26. int f_turn (int socket_service, const char *commande, userinfos *infos);
  27. int f_mesg (int socket_service, const char *commande, userinfos *infos);
  28. int f_info (int socket_service, const char *commande, userinfos *infos);
  29. int f_nick (int socket_service, const char *commande, userinfos *infos);
  30. int f_glas (int socket_service, const char *commande, userinfos *infos);
  31. int f_sadm (int socket_service, const char *commande, userinfos *infos);
  32. int f_shut (int socket_service, const char *commande, userinfos *infos);
  33. int f_rldb (int socket_service, const char *commande, userinfos *infos);
  34. int f_addu (int socket_service, const char *commande, userinfos *infos);
  35. int f_delu (int socket_service, const char *commande, userinfos *infos);
  36. int f_save (int socket_service, const char *commande, userinfos *infos);
  37. int f_load (int socket_service, const char *commande, userinfos *infos);
  38. #endif