summaryrefslogtreecommitdiff
path: root/test/test_plugin/http_service.h
blob: 5d0d4233d02e457f7c25d9f8f7b59b390aafd61d (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * HTTP_Service.h
 *
 *  Created on: 2013-8-19
 *      Author: lishu
 */

#ifndef HTTP_SERVICE_H_
#define HTTP_SERVICE_H_

#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include <time.h>
#include </usr/include/net/if.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include </usr/include/linux/sockios.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <ctype.h>
#include <stdlib.h>  
#include <regex.h>


#include "stream.h"
#include "http.h"

#define HTTP_SERVICE_PLUGNAME 		"http_service.so"
#define LOG_PATH 						"./log/http/"


typedef struct service_pmeinfo
{	
	FILE* fp;
}service_pmeinfo;


#ifdef __cplusplus
extern "C" {
#endif

uchar HTTP_SERVICE_ENTRY(stSessionInfo* session_info, void **param, int thread_seq, struct streaminfo *a_tcp, void *a_packet);
int HTTP_SERVICE_INIT(void);
void HTTP_SERVICE_DESTROY(void);

#ifdef __cplusplus
}
#endif

#endif /* HTTP_SERVICE_H_ */