diff options
author | irungentoo <irungentoo@gmail.com> | 2014-11-05 20:45:38 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-11-05 20:45:38 -0500 |
commit | be27c6cfc80cd8564bb8197f51a1954662c881e5 (patch) | |
tree | e115b747c8a39e5e31ee608b2b06618cf5efd772 /toxcore/group.h | |
parent | 54beaa485449b70c282e759b4ae81ab759b2bc37 (diff) |
Added functions to relay lossy group chat packets.
Diffstat (limited to 'toxcore/group.h')
-rw-r--r-- | toxcore/group.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/toxcore/group.h b/toxcore/group.h index 74abfa66..5adde463 100644 --- a/toxcore/group.h +++ b/toxcore/group.h | |||
@@ -33,6 +33,8 @@ enum { | |||
33 | GROUPCHAT_STATUS_CONNECTED | 33 | GROUPCHAT_STATUS_CONNECTED |
34 | }; | 34 | }; |
35 | 35 | ||
36 | #define MAX_LOSSY_COUNT 256 | ||
37 | |||
36 | typedef struct { | 38 | typedef struct { |
37 | uint8_t real_pk[crypto_box_PUBLICKEYBYTES]; | 39 | uint8_t real_pk[crypto_box_PUBLICKEYBYTES]; |
38 | uint8_t temp_pk[crypto_box_PUBLICKEYBYTES]; | 40 | uint8_t temp_pk[crypto_box_PUBLICKEYBYTES]; |
@@ -44,6 +46,9 @@ typedef struct { | |||
44 | uint8_t nick_len; | 46 | uint8_t nick_len; |
45 | 47 | ||
46 | uint16_t peer_number; | 48 | uint16_t peer_number; |
49 | |||
50 | uint8_t recv_lossy[MAX_LOSSY_COUNT]; | ||
51 | uint16_t bottom_lossy_number, top_lossy_number; | ||
47 | } Group_Peer; | 52 | } Group_Peer; |
48 | 53 | ||
49 | #define DESIRED_CLOSE_CONNECTIONS 4 | 54 | #define DESIRED_CLOSE_CONNECTIONS 4 |
@@ -80,6 +85,7 @@ typedef struct { | |||
80 | uint8_t identifier[GROUP_IDENTIFIER_LENGTH]; | 85 | uint8_t identifier[GROUP_IDENTIFIER_LENGTH]; |
81 | 86 | ||
82 | uint32_t message_number; | 87 | uint32_t message_number; |
88 | uint16_t lossy_message_number; | ||
83 | uint16_t peer_number; | 89 | uint16_t peer_number; |
84 | 90 | ||
85 | uint64_t last_sent_ping; | 91 | uint64_t last_sent_ping; |