Blame view

includes/http.h 496 Bytes
a69a94a7   skhinach   Ajout de gestion ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  #ifndef __HTTP_H__
  #define __HTTP_H__
  
  #include <stdio.h>
  #include <stdlib.h>
  #include <pthread.h>
  #include <string.h>
  #include <unistd.h>
  #include <time.h>
  
  
  #define BUFF_SIZE 100000
  
  
  struct interface_info
  {
  	char adresse[20];
  	int status;
  	int commande;
  };
  
  
  
  struct PageWeb
  {
  	int size;
  	char* html_contents;
  };
  
  
  
  void freePage(struct PageWeb** page);
  void getWeb(char* pageName, struct PageWeb** page);
  void createPage(struct PageWeb** page, struct interface_info* interfaces[20]);
  
  #endif