Mercurial > pidgin
comparison src/protocols/irc/irc.c @ 4594:a2c95c0d7333
[gaim-migrate @ 4879]
I need the ack thing so Gaim will be able to exchange files with MacAIM
clizients. I think.
The other changes makes gaim call gaim_xfer_end after reading in the
# of bytes in the file. Previously it only called gaim_xfer_end
when the other end closed the socket. I could write an oscar_xfer_read
function that does this, but I would basically be duplicating all of
gaim_xfer_read, and I thought this was a little clean.
Chipster can lay the smack down on me if this is too ugly. I figured
some of this will have to change if multiple files per transfer is
ever supported. Gaim doesn't provide support for that [insert "support"
related joke here].
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 20 Feb 2003 21:08:46 +0000 |
parents | a2f2a717fdf2 |
children | 5fcb44d771d2 |
comparison
equal
deleted
inserted
replaced
4593:26992c8e8e21 | 4594:a2c95c0d7333 |
---|---|
1255 g_free(data); | 1255 g_free(data); |
1256 xfer->data = NULL; | 1256 xfer->data = NULL; |
1257 } | 1257 } |
1258 | 1258 |
1259 static void | 1259 static void |
1260 irc_xfer_ack(struct gaim_xfer *xfer) | 1260 irc_xfer_ack(struct gaim_xfer *xfer, const char *buffer, size_t size) |
1261 { | 1261 { |
1262 guint32 pos; | 1262 guint32 pos; |
1263 | 1263 |
1264 pos = htonl(gaim_xfer_get_bytes_sent(xfer)); | 1264 pos = htonl(gaim_xfer_get_bytes_sent(xfer)); |
1265 | 1265 |