| 49 /* |
49 /* |
| 50 * This function is called whenever data is received. |
50 * This function is called whenever data is received. |
| 51 * It sends the acknowledgement (in the form of a total byte count as an |
51 * It sends the acknowledgement (in the form of a total byte count as an |
| 52 * unsigned 4 byte integer in network byte order) |
52 * unsigned 4 byte integer in network byte order) |
| 53 */ |
53 */ |
| 54 static void irc_dccsend_recv_ack(GaimXfer *xfer, const char *data, size_t size) { |
54 static void irc_dccsend_recv_ack(GaimXfer *xfer, const guchar *data, size_t size) { |
| 55 unsigned long l; |
55 unsigned long l; |
| 56 |
56 |
| 57 l = htonl(xfer->bytes_sent); |
57 l = htonl(xfer->bytes_sent); |
| 58 write(xfer->fd, &l, sizeof(l)); |
58 write(xfer->fd, &l, sizeof(l)); |
| 59 } |
59 } |