diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2011-01-23 14:36:05 +0000 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2011-01-23 14:36:05 +0000 |
commit | dcda721939bc81c58f66850aa21f6b6f0c64cab3 (patch) | |
tree | 4788908cfc11c7526c1e8d1491146438b10c1c3f /app/v3_c/src/include | |
parent | 31f0e4b4067901e35ba3c3c66a77e84f35e74992 (diff) | |
download | 2011-usi-dcda721939bc81c58f66850aa21f6b6f0c64cab3.tar.gz 2011-usi-dcda721939bc81c58f66850aa21f6b6f0c64cab3.tar.bz2 2011-usi-dcda721939bc81c58f66850aa21f6b6f0c64cab3.zip |
Refactoring : myhttpd -> tcpserver et process -> dispatcher. Faisaons de belles briques bien claires d'entrée de jeu !
git-svn-id: file:///var/svn/2011-usi/trunk@15 db941bf7-0cb3-4dda-9634-87faf64f93a7
Diffstat (limited to 'app/v3_c/src/include')
-rw-r--r-- | app/v3_c/src/include/dispatcher.h | 13 | ||||
-rw-r--r-- | app/v3_c/src/include/process.h | 13 |
2 files changed, 13 insertions, 13 deletions
diff --git a/app/v3_c/src/include/dispatcher.h b/app/v3_c/src/include/dispatcher.h new file mode 100644 index 0000000..a3e779a --- /dev/null +++ b/app/v3_c/src/include/dispatcher.h @@ -0,0 +1,13 @@ +#ifndef DISPATCHER_H +#define DISPATCHER_H + +#include <sys/types.h> +#include <sys/socket.h> +#include <netinet/in.h> +#include <arpa/inet.h> + +int initDispatcher(); +int requestDispatcher(int sockfd, struct sockaddr_in *addr, socklen_t *addrlen ); +void freeDispatcher(); + +#endif diff --git a/app/v3_c/src/include/process.h b/app/v3_c/src/include/process.h deleted file mode 100644 index c88b235..0000000 --- a/app/v3_c/src/include/process.h +++ /dev/null @@ -1,13 +0,0 @@ -#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 |