diff options
Diffstat (limited to 'toxcore/TCP_server.h')
-rw-r--r-- | toxcore/TCP_server.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h index def0a978..81507acb 100644 --- a/toxcore/TCP_server.h +++ b/toxcore/TCP_server.h | |||
@@ -80,6 +80,14 @@ enum { | |||
80 | TCP_STATUS_CONFIRMED, | 80 | TCP_STATUS_CONFIRMED, |
81 | }; | 81 | }; |
82 | 82 | ||
83 | typedef struct TCP_Priority_List TCP_Priority_List; | ||
84 | |||
85 | struct TCP_Priority_List { | ||
86 | TCP_Priority_List *next; | ||
87 | uint16_t size, sent; | ||
88 | uint8_t data[0]; | ||
89 | }; | ||
90 | |||
83 | typedef struct TCP_Secure_Connection { | 91 | typedef struct TCP_Secure_Connection { |
84 | uint8_t status; | 92 | uint8_t status; |
85 | sock_t sock; | 93 | sock_t sock; |
@@ -98,6 +106,8 @@ typedef struct TCP_Secure_Connection { | |||
98 | uint16_t last_packet_length; | 106 | uint16_t last_packet_length; |
99 | uint16_t last_packet_sent; | 107 | uint16_t last_packet_sent; |
100 | 108 | ||
109 | TCP_Priority_List *priority_queue_start, *priority_queue_end; | ||
110 | |||
101 | uint64_t identifier; | 111 | uint64_t identifier; |
102 | 112 | ||
103 | uint64_t last_pinged; | 113 | uint64_t last_pinged; |