1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 02:53:02 +01:00

update DHTnodes, fix comment

This commit is contained in:
Jfreegman 2014-12-05 20:26:10 -05:00
parent ab2ea5936d
commit 73c94b25ba
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
3 changed files with 3 additions and 2 deletions

View File

@ -461,7 +461,7 @@ static void chat_onFileControl(ToxWindow *self, Tox *m, int32_t num, uint8_t rec
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "%s", progline); line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "%s", progline);
file_senders[send_idx].line_id = self->chatwin->hst->line_end->id + 2; file_senders[send_idx].line_id = self->chatwin->hst->line_end->id + 2;
sound_notify(self, silent, NT_NOFOCUS | NT_BEEP | NT_WNDALERT_2, NULL); sound_notify(self, silent, NT_NOFOCUS | NT_BEEP | NT_WNDALERT_2, NULL);
} else { /* active transfer is paused by receiver */ } else { /* active transfer is unpaused by receiver */
file_senders[send_idx].paused = false; file_senders[send_idx].paused = false;
file_senders[send_idx].timestamp = get_unix_time(); file_senders[send_idx].timestamp = get_unix_time();
} }

View File

@ -38,6 +38,8 @@ uint8_t max_file_senders_index;
uint8_t num_active_file_senders; uint8_t num_active_file_senders;
extern FriendsList Friends; extern FriendsList Friends;
#define NUM_PROG_MARKS 50 /* number of "#"'s in file transfer progress bar. Keep well below MAX_STR_SIZE */
/* creates initial progress line that will be updated during file transfer. /* creates initial progress line that will be updated during file transfer.
Assumes progline is of size MAX_STR_SIZE */ Assumes progline is of size MAX_STR_SIZE */
void prep_prog_line(char *progline) void prep_prog_line(char *progline)

View File

@ -33,7 +33,6 @@
#define FILE_PIECE_SIZE 2048 /* must be >= (MAX_CRYPTO_DATA_SIZE - 2) in toxcore/net_crypto.h */ #define FILE_PIECE_SIZE 2048 /* must be >= (MAX_CRYPTO_DATA_SIZE - 2) in toxcore/net_crypto.h */
#define MAX_FILES 32 #define MAX_FILES 32
#define TIMEOUT_FILESENDER 120 #define TIMEOUT_FILESENDER 120
#define NUM_PROG_MARKS 50 /* number of "#"'s in file transfer progress bar. Keep well below MAX_STR_SIZE */
typedef struct { typedef struct {
FILE *file; FILE *file;