diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-08-03 19:50:52 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-08-03 19:50:52 +0000 |
commit | a5cd14add5991c630203fdada2b4f95c50a9cce5 (patch) | |
tree | a34517d6a14a381adcb2ffbe89e1fe4a1143372d /src/common/session.c | |
parent | 34ee7e407695f858c94b0c3c379c4d30759431f6 (diff) | |
download | weechat-a5cd14add5991c630203fdada2b4f95c50a9cce5.zip |
Improved DCC speed (up to x5 on LAN) by forking for DCC files and a new option "dcc_fast_send" (does not wait for ACK) (task #5758)
Diffstat (limited to 'src/common/session.c')
-rw-r--r-- | src/common/session.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/session.c b/src/common/session.c index 2867c8c48..df26a119f 100644 --- a/src/common/session.c +++ b/src/common/session.c @@ -320,6 +320,9 @@ session_save_dcc (FILE *file) rc = rc && (session_write_buf (file, SESSION_DCC_LAST_ACTIVITY, &(ptr_dcc->last_activity), sizeof (time_t))); rc = rc && (session_write_buf (file, SESSION_DCC_BYTES_PER_SEC, &(ptr_dcc->bytes_per_sec), sizeof (unsigned long))); rc = rc && (session_write_buf (file, SESSION_DCC_ETA, &(ptr_dcc->eta), sizeof (unsigned long))); + rc = rc && (session_write_int (file, SESSION_DCC_CHILD_PID, ptr_dcc->child_pid)); + rc = rc && (session_write_int (file, SESSION_DCC_CHILD_READ, ptr_dcc->child_read)); + rc = rc && (session_write_int (file, SESSION_DCC_CHILD_WRITE, ptr_dcc->child_write)); rc = rc && (session_write_id (file, SESSION_DCC_END)); if (!rc) @@ -1289,6 +1292,15 @@ session_load_dcc (FILE *file) case SESSION_DCC_ETA: rc = rc && (session_read_buf (file, &(dcc->eta), sizeof (unsigned long))); break; + case SESSION_DCC_CHILD_PID: + rc = rc && (session_read_int (file, &(dcc->child_pid))); + break; + case SESSION_DCC_CHILD_READ: + rc = rc && (session_read_int (file, &(dcc->child_read))); + break; + case SESSION_DCC_CHILD_WRITE: + rc = rc && (session_read_int (file, &(dcc->child_write))); + break; default: weechat_log_printf (_("session: warning: ignoring value from " "DCC (object id: %d)\n")); |