Merge branch 'Jeffail-master'

This commit is contained in:
irungentoo 2013-08-02 16:20:26 -04:00
commit 802236272f
3 changed files with 529 additions and 309 deletions

File diff suppressed because it is too large Load Diff

View File

@ -31,7 +31,7 @@ extern "C" {
#endif
/* Current time, unix format */
#define unix_time() ((int64_t)time(NULL))
#define unix_time() ((uint64_t)time(NULL))
/* size of the client_id in bytes */
#define CLIENT_ID_SIZE crypto_box_PUBLICKEYBYTES

View File

@ -27,7 +27,7 @@
typedef struct {
uint8_t client_id[CLIENT_ID_SIZE];
int crypt_connection_id;
int64_t friend_request_id; /* id of the friend request corresponding to the current friend request to the current friend. */
uint64_t friend_request_id; /* id of the friend request corresponding to the current friend request to the current friend. */
uint8_t status; /* 0 if no friend, 1 if added, 2 if friend request sent, 3 if confirmed friend, 4 if online. */
uint8_t info[MAX_DATA_SIZE]; /* the data that is sent during the friend requests we do */
uint8_t name[MAX_NAME_LENGTH];
@ -485,7 +485,7 @@ static void doInbound()
/*Interval in seconds between LAN discovery packet sending*/
#define LAN_DISCOVERY_INTERVAL 60
static int64_t last_LANdiscovery;
static uint64_t last_LANdiscovery;
/*Send a LAN discovery packet every LAN_DISCOVERY_INTERVAL seconds*/
static void LANdiscovery()