summaryrefslogtreecommitdiff
path: root/src/http_decoder_inc.h
diff options
context:
space:
mode:
authorlijia <[email protected]>2024-06-06 11:16:22 +0800
committerlijia <[email protected]>2024-06-06 11:16:22 +0800
commit7d6170a23027aff0ebf2e7832dc11e4bbdce57ea (patch)
treeaf9caf24c274b561bc92f07f8db7c14b89c5e425 /src/http_decoder_inc.h
parent1c232f0176c43c93c3e787ac83f3573bf42c58f1 (diff)
add fieldstat4 statistics, push transaction free msg in session closing state.v2.0.3
Diffstat (limited to 'src/http_decoder_inc.h')
-rw-r--r--src/http_decoder_inc.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/http_decoder_inc.h b/src/http_decoder_inc.h
index 3e2939d..760eaba 100644
--- a/src/http_decoder_inc.h
+++ b/src/http_decoder_inc.h
@@ -11,6 +11,7 @@
#ifndef _HTTP_DECODER_INC_H_
#define _HTTP_DECODER_INC_H_
+#include <cstddef>
#ifdef __cplusplus
extern "C"
{
@@ -61,7 +62,7 @@ extern "C"
#define DEFAULT_MEMPOOL_SIZE (32 * 1024)
#define HTTPD_CFG_FILE "./etc/http/http_decoder.toml"
-#define FILEDSTAT_OUTPUT_FILE "./http_decoder.fs"
+#define FILEDSTAT_OUTPUT_FILE "./http_decoder.fs4"
struct http_decoder_config
{
@@ -96,27 +97,14 @@ struct http_decoder_exdata
nmx_pool_t *mempool;
};
-struct http_decoder_stat
-{
- long long incoming_bytes;
- long long incoming_pkts;
- long long incoming_trans;
- long long err_pkts;
- int counter;
-};
-
-struct http_decoder_context
+struct http_decoder_env
{
int plugin_id;
int httpd_msg_topic_id;
int ex_data_idx;
- int fs_incoming_bytes_id;
- int fs_incoming_pkts_id;
- int fs_incoming_trans_id;
- int fs_err_pkts_id;
struct stellar *st;
- struct fieldstat_easy *fse;
struct http_decoder_config hd_cfg;
+ struct http_decoder_stat hd_stat;
};
struct http_message;