diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2011-01-22 23:06:52 +0000 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2011-01-22 23:06:52 +0000 |
commit | 31f0e4b4067901e35ba3c3c66a77e84f35e74992 (patch) | |
tree | 70327d37a44f85b8001c7fdf590a53f90b8948e1 /app/v3_c/src/include | |
parent | d26dbab8f789d787d5c39f8700b4ac19701f286f (diff) | |
download | 2011-usi-31f0e4b4067901e35ba3c3c66a77e84f35e74992.tar.gz 2011-usi-31f0e4b4067901e35ba3c3c66a77e84f35e74992.tar.bz2 2011-usi-31f0e4b4067901e35ba3c3c66a77e84f35e74992.zip |
Avancement sur le serveur web en C.
Le fichier myhttpd.c conteint à présent un serveur TCP/IP complet qui accepte des connexions et appelle requestProcess() et process.c qui lui doit décider de passer la main à un thread ou faire la mise en attente..
git-svn-id: file:///var/svn/2011-usi/trunk@14 db941bf7-0cb3-4dda-9634-87faf64f93a7
Diffstat (limited to 'app/v3_c/src/include')
-rw-r--r-- | app/v3_c/src/include/process.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/v3_c/src/include/process.h b/app/v3_c/src/include/process.h new file mode 100644 index 0000000..c88b235 --- /dev/null +++ b/app/v3_c/src/include/process.h @@ -0,0 +1,13 @@ +#ifndef PROCESS_H +#define PROCESS_H + +#include <sys/types.h> +#include <sys/socket.h> +#include <netinet/in.h> +#include <arpa/inet.h> + +int initProcess(); +int requestProcess(int sockfd, struct sockaddr_in *addr, socklen_t *addrlen ); +void freeProcess(); + +#endif |