session add API support get/set closing reasion

This commit is contained in:
luwenpeng
2024-01-16 14:10:13 +08:00
parent 8f685bc018
commit 1d4736ac88
3 changed files with 51 additions and 6 deletions

View File

@@ -49,6 +49,9 @@ struct session
// session type
enum session_type type;
// closing reasion
enum closing_reasion closing_reasion;
// session metrics
uint64_t c2s_bytes;
uint64_t s2c_bytes;