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.

tools.h 557B

1234567891011121314151617181920
  1. /*
  2. * tools
  3. * Creation et manipulation de sockets
  4. * Thomas Nemeth -- le 15 juin 2001
  5. *
  6. */
  7. #ifndef SOCKETS_TOOLS
  8. #define SOCKETS_TOOLS
  9. #include <netinet/in.h>
  10. int ouvre_socket (int port, char *adr_ip, struct sockaddr_in *ptr_adresse);
  11. int connect_server (const char *machine, int port);
  12. int install_server (int port, char *adr_ip, struct sockaddr_in *ptr_adresse);
  13. int read_infos (int socket_data, char *infos);
  14. int send_infos (int socket_data, const char *infos);
  15. void get_sock_infos (int sock, char **nom, char **adr, int *prl, int *prd);
  16. #endif