mirror of
https://github.com/cesanta/mongoose.git
synced 2025-06-19 01:09:12 +08:00
Make (http) proto_data persistent
PUBLISHED_FROM=8210f4730a3411b3298274d792fc33da79f47b8a
This commit is contained in:
parent
672a68219a
commit
dbb38fffae
893
mongoose.c
893
mongoose.c
File diff suppressed because it is too large
Load Diff
@ -1075,8 +1075,9 @@ struct mg_connection {
|
|||||||
double ev_timer_time; /* Timestamp of the future MG_EV_TIMER */
|
double ev_timer_time; /* Timestamp of the future MG_EV_TIMER */
|
||||||
mg_event_handler_t proto_handler; /* Protocol-specific event handler */
|
mg_event_handler_t proto_handler; /* Protocol-specific event handler */
|
||||||
void *proto_data; /* Protocol-specific data */
|
void *proto_data; /* Protocol-specific data */
|
||||||
mg_event_handler_t handler; /* Event handler function */
|
void (*proto_data_destructor)(void *proto_data);
|
||||||
void *user_data; /* User-specific data */
|
mg_event_handler_t handler; /* Event handler function */
|
||||||
|
void *user_data; /* User-specific data */
|
||||||
union {
|
union {
|
||||||
void *v;
|
void *v;
|
||||||
/*
|
/*
|
||||||
@ -1088,9 +1089,6 @@ struct mg_connection {
|
|||||||
void *priv_2; /* Used by mg_enable_multithreading() */
|
void *priv_2; /* Used by mg_enable_multithreading() */
|
||||||
struct mbuf endpoints; /* Used by mg_register_http_endpoint */
|
struct mbuf endpoints; /* Used by mg_register_http_endpoint */
|
||||||
void *mgr_data; /* Implementation-specific event manager's data. */
|
void *mgr_data; /* Implementation-specific event manager's data. */
|
||||||
#ifdef MG_ENABLE_HTTP_STREAMING_MULTIPART
|
|
||||||
struct mbuf strm_state; /* Used by multi-part streaming */
|
|
||||||
#endif
|
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
/* Flags set by Mongoose */
|
/* Flags set by Mongoose */
|
||||||
#define MG_F_LISTENING (1 << 0) /* This connection is listening */
|
#define MG_F_LISTENING (1 << 0) /* This connection is listening */
|
||||||
|
Loading…
Reference in New Issue
Block a user