diff options
| author | yangwei <[email protected]> | 2023-11-03 14:23:38 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-11-03 14:23:38 +0800 |
| commit | ee6b7e01559bb96dacbcdfc725e77e7a5bffae61 (patch) | |
| tree | c9be866cbb79043680d5c65b0ec2e55a65d0ea22 /include | |
| parent | 10bd9896f01688a5a725f76d5dbaf7aeab1a8723 (diff) | |
✨ feat(ctrl packet): add EV_CONTROL in session.h
Diffstat (limited to 'include')
| -rw-r--r-- | include/stellar/session.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stellar/session.h b/include/stellar/session.h index ca78423..d3155cc 100644 --- a/include/stellar/session.h +++ b/include/stellar/session.h @@ -18,6 +18,7 @@ enum session_state SESSION_STATE_OPENING = 1 , SESSION_STATE_ACTIVE = 2, SESSION_STATE_CLOSING = 3, + SESSION_STATE_CONTROL = 6, __SESSION_STATE_MAX, }; @@ -102,10 +103,12 @@ int packet_arrive_time(const struct packet *pkt, struct timeval *ts); #define SESS_EV_OPENING 1<<1 #define SESS_EV_PACKET 1<<2 #define SESS_EV_CLOSING 1<<3 +#define SESS_EV_CONTROL 1<<6 #define SESS_EV_TCP 1<<4 #define SESS_EV_UDP 1<<5 + typedef int session_event_cb_func(struct session *sess, int events, const struct packet *pkt, void *cb_arg); struct session_event; |
