forked from PsychoticNinja/irssi
a few changes to DCC so that it should be possible to send >4GB files. DCC protocol uses 32bit "n bytes transferred" notifications, so I had to bend the protocol a bit to allow 64bit files by truncating the value to lowest 32bits. I'm not sure how other clients handle those notifications, but irssi uses it only to figure out when the DCC SEND transfer is complete, so it's quite safe to assume that if we've managed to write() all the bytes and we receive the last 32bit of file size, it means the total file size instead of the total - (n+1)*4GB. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3018 dbcabf3a-b0e7-0310-adc4-f8d773084564
10 lines
196 B
C
10 lines
196 B
C
#include "dcc-rec.h"
|
|
|
|
uoff_t size, skipped; /* file size / skipped at start */
|
|
int fhandle; /* file handle */
|
|
int queue; /* queue number */
|
|
|
|
/* counter buffer */
|
|
char count_buf[4];
|
|
int count_pos;
|