session manager not trigger event
This commit is contained in:
@@ -23,8 +23,6 @@ struct session_manager;
|
||||
struct session_manager *session_manager_create(uint64_t max_session_num);
|
||||
void session_manager_destroy(struct session_manager *mgr);
|
||||
|
||||
typedef void (*session_event_cb)(struct session *sess, uint32_t event, void *arg);
|
||||
void session_manager_set_session_eventcb(struct session_manager *mgr, session_event_cb cb, void *arg);
|
||||
void session_manager_set_timeout_toclosing(struct session_manager *mgr, uint64_t timeout_ms);
|
||||
void session_manager_set_timeout_toclosed(struct session_manager *mgr, uint64_t timeout_ms);
|
||||
|
||||
@@ -32,7 +30,7 @@ struct session *session_manager_lookup(struct session_manager *mgr, const struct
|
||||
// return null: invalid tuple6 or tcp first packet is not syn
|
||||
struct session *session_manager_update(struct session_manager *mgr, const struct packet *pkt);
|
||||
struct session *session_manager_expire(struct session_manager *mgr);
|
||||
void session_manager_dispatch(struct session_manager *mgr, struct session *sess);
|
||||
struct session *session_manager_evicte(struct session_manager *mgr);
|
||||
|
||||
// for debug
|
||||
uint64_t session_manager_get_sessions(struct session_manager *mgr, enum session_type type, enum session_state state);
|
||||
|
||||
Reference in New Issue
Block a user