mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Irssi now uses 64bit file offets if it's only supported by system. Also did
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
This commit is contained in:
parent
dc7efcb45b
commit
dc8bd638e3
11 changed files with 138 additions and 45 deletions
|
|
@ -592,6 +592,20 @@ int dec2octal(int decimal)
|
|||
return octal;
|
||||
}
|
||||
|
||||
/* string -> uoff_t */
|
||||
uoff_t str_to_uofft(const char *str)
|
||||
{
|
||||
uoff_t ret;
|
||||
|
||||
ret = 0;
|
||||
while (*str != '\0') {
|
||||
ret = ret*10 + (*str - '0');
|
||||
str++;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* convert all low-ascii (<32) to ^<A..> combinations */
|
||||
char *show_lowascii(const char *channel)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue