summaryrefslogtreecommitdiff
path: root/core/Messenger.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-16 18:57:00 -0400
committerirungentoo <irungentoo@gmail.com>2013-08-16 18:57:00 -0400
commit1207304f0b66385b2131a3dd0badf41bd25561a4 (patch)
tree19049d138b98f9182d54c8602fd616d3ced63dab /core/Messenger.h
parent88ff81d9def5efe69cbaf91aa41906177ba7dde9 (diff)
Metadata collection prevention part 2 of ???
Improved friend request sending. As a side effect friend requests should now be routed less than before. See added comments for details.
Diffstat (limited to 'core/Messenger.h')
-rw-r--r--core/Messenger.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Messenger.h b/core/Messenger.h
index cd9e6e63..20ea33fb 100644
--- a/core/Messenger.h
+++ b/core/Messenger.h
@@ -68,6 +68,9 @@ extern "C" {
68/* don't assume MAX_STATUSMESSAGE_LENGTH will stay at 128, it may be increased 68/* don't assume MAX_STATUSMESSAGE_LENGTH will stay at 128, it may be increased
69 to an absurdly large number later */ 69 to an absurdly large number later */
70 70
71/* Default start timeout in seconds between friend requests */
72#define FRIENDREQUEST_TIMEOUT 5;
73
71/* USERSTATUS 74/* USERSTATUS
72 * Represents userstatuses someone can have. */ 75 * Represents userstatuses someone can have. */
73 76
@@ -82,7 +85,8 @@ USERSTATUS;
82typedef struct { 85typedef struct {
83 uint8_t client_id[CLIENT_ID_SIZE]; 86 uint8_t client_id[CLIENT_ID_SIZE];
84 int crypt_connection_id; 87 int crypt_connection_id;
85 uint64_t friend_request_id; /* id of the friend request corresponding to the current friend request to the current friend. */ 88 uint64_t friendrequest_lastsent; /* time at which the last friend request was sent. */
89 uint32_t friendrequest_timeout; /* The timeout between successful friendrequest sending attempts */
86 uint8_t status; /* 0 if no friend, 1 if added, 2 if friend request sent, 3 if confirmed friend, 4 if online. */ 90 uint8_t status; /* 0 if no friend, 1 if added, 2 if friend request sent, 3 if confirmed friend, 4 if online. */
87 uint8_t info[MAX_DATA_SIZE]; /* the data that is sent during the friend requests we do */ 91 uint8_t info[MAX_DATA_SIZE]; /* the data that is sent during the friend requests we do */
88 uint8_t name[MAX_NAME_LENGTH]; 92 uint8_t name[MAX_NAME_LENGTH];