summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlishu <[email protected]>2019-01-28 14:37:36 +0800
committerlishu <[email protected]>2019-01-28 14:37:36 +0800
commit0c381f80c47359343b375c3338d7eee81f6b4015 (patch)
treee0282c1ff4f67713673b3508f0c43b8cdabba0e8 /src
parent0540e0a23af36ca66cc088fb42e4b97d487a68d7 (diff)
支持youtube
Diffstat (limited to 'src')
-rw-r--r--src/Makefile4
-rw-r--r--src/frag_monitor.c2
-rw-r--r--src/inc/appdsender.h25
3 files changed, 3 insertions, 28 deletions
diff --git a/src/Makefile b/src/Makefile
index 0fe7371..c48206b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,7 +1,7 @@
vpath %.a ../lib
vpath %.h ./inc
-PAPP_PATH=/home/lishu/sapp_online/
+PAPP_PATH=/home/lishu/sapp_k/
#CFLAGS = -g3 -Wall -fPIC -Werror -O
#CFLAGS = -g3 -Wall -fPIC -O
@@ -16,7 +16,7 @@ CCC = g++
LIB = -L./lib/
LIB += -L/usr/local/lib/
LIB += -lrdkafka
-LIB += -lMESA_handle_logger -lMESA_prof_load -lmaatframe -lrulescan -lMESA_tcp -lMESA_field_stat2 -lwiredcfg
+LIB += -lMESA_handle_logger -lMESA_prof_load -lmaatframe -lrulescan -lMESA_field_stat2 -lwiredcfg
#LIB += ./lib/libMESA_trace.a ./lib/libappdsender.a ./lib/libopt.a ./lib/liboptregister.a
LIB += ./lib/libMESA_trace.a
#LIB += ./lib/librdkafka.a
diff --git a/src/frag_monitor.c b/src/frag_monitor.c
index 2f27038..f7eb9f2 100644
--- a/src/frag_monitor.c
+++ b/src/frag_monitor.c
@@ -30,7 +30,6 @@
#include "cJSON.h"
#include "KafkaProducer.h"
-#include "appdsender.h"
#include "opt.h"
#include "opt_in.h"
#include "optregister.h"
@@ -999,6 +998,7 @@ char frag_scan(stSessionInfo* session_info, frag_info_t* frag, http_infor *a_htt
switch(session_info->prot_flag)
{
case HTTP_CONTENT:
+ case HTTP_UNGZIP_CONTENT:
/*����ֻɨ���װ�*/
if((session_info->prot_flag==HTTP_CONTENT||session_info->prot_flag==HTTP_UNGZIP_CONTENT)
&& a_http->curdir==DIR_S2C && frag->s2c_first_pkt==0)
diff --git a/src/inc/appdsender.h b/src/inc/appdsender.h
deleted file mode 100644
index 72a247e..0000000
--- a/src/inc/appdsender.h
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef _APPDSENDER_H
-#define _APPDSENDER_H
-
-#include "opt.h"
-#include "MESA_tcp_interface.h"
-
-typedef void* appdsender_t;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*gloable init*/
-int init_appdsender(int iovalue, int thread_num, uint32 local_ip_nr);
-void release_appdsender();
-
-appdsender_t creat_appdsender(uint32 sendip, uint16 port, char is_trace, const char* fileinfo,int thread_seq);
-int appdsender(appdsender_t handle, opt_t opt, int thread_seq);
-void destory_appdsender(appdsender_t handle, int thread_seq);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif