File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 37
37
#define MIN (a , b ) ((a) < (b) ? (a) : (b))
38
38
#endif
39
39
40
- static uint8_t proto_version = 0 ;
41
- static uint8_t remote_go_away ;
42
- static uint8_t local_go_away ;
43
- static uint32_t g_session_id = 1 ;
44
- static struct tmux_stream * cur_stream = NULL ;
45
- static struct tmux_stream * all_stream ;
40
+ /**
41
+ * @brief Protocol and state management variables
42
+ */
43
+ static uint8_t proto_version = 0 ; /* Protocol version number */
44
+ static uint8_t remote_go_away = 0 ; /* Flag indicating remote end wants to close */
45
+ static uint8_t local_go_away = 0 ; /* Flag indicating local end wants to close */
46
+
47
+ /**
48
+ * @brief Session management variables
49
+ */
50
+ static uint32_t g_session_id = 1 ; /* Global session ID counter (starts at 1) */
51
+
52
+ /**
53
+ * @brief Stream management variables
54
+ */
55
+ static struct tmux_stream * cur_stream = NULL ; /* Currently active stream */
56
+ static struct tmux_stream * all_stream = NULL ; /* Hash table of all streams */
46
57
47
58
/**
48
59
* @brief Adds a stream to the hash table of all streams.
You can’t perform that action at this time.
0 commit comments