comparison src/protocols/yahoo/yahoo_filexfer.c @ 10392:a8f9e5ce4f92

[gaim-migrate @ 11620] a little bit of clean up and reorganization of the yahoo prpl. I moved the packet functions to their own file, renamed a couple of them, added a convience function and used it a lot. I plan on adding several more convience functions. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Thu, 16 Dec 2004 21:47:54 +0000
parents f57369469684
children 45a0a07e8b25
comparison
equal deleted inserted replaced
10391:38256d3e8324 10392:a8f9e5ce4f92
26 #include "debug.h" 26 #include "debug.h"
27 #include "notify.h" 27 #include "notify.h"
28 #include "proxy.h" 28 #include "proxy.h"
29 #include "ft.h" 29 #include "ft.h"
30 #include "yahoo.h" 30 #include "yahoo.h"
31 #include "yahoo_packet.h"
31 #include "yahoo_filexfer.h" 32 #include "yahoo_filexfer.h"
32 33
33 34
34 35
35 struct yahoo_xfer_data { 36 struct yahoo_xfer_data {
139 gaim_account_get_string(account, "xfer_host", YAHOO_XFER_HOST), 140 gaim_account_get_string(account, "xfer_host", YAHOO_XFER_HOST),
140 gaim_account_get_int(account, "xfer_port", YAHOO_XFER_PORT), 141 gaim_account_get_int(account, "xfer_port", YAHOO_XFER_PORT),
141 buf); 142 buf);
142 write(xfer->fd, post, strlen(post)); 143 write(xfer->fd, post, strlen(post));
143 144
144 yahoo_send_packet_special(xfer->fd, pkt, 8); 145 yahoo_packet_send_special(pkt, xfer->fd, 8);
145 yahoo_packet_free(pkt); 146 yahoo_packet_free(pkt);
146 147
147 write(xfer->fd, "29\xc0\x80", 4); 148 write(xfer->fd, "29\xc0\x80", 4);
148 149
149 g_free(size); 150 g_free(size);