| 35 #include <unistd.h> |
35 #include <unistd.h> |
| 36 #include <netinet/in.h> |
36 #include <netinet/in.h> |
| 37 #include <arpa/inet.h> |
37 #include <arpa/inet.h> |
| 38 #include <errno.h> |
38 #include <errno.h> |
| 39 #include <gtk/gtk.h> |
39 #include <gtk/gtk.h> |
| |
40 #include "proxy.h" |
| 40 #include "gaim.h" |
41 #include "gaim.h" |
| 41 |
42 |
| 42 static void do_send_file(GtkWidget *, struct file_transfer *); |
43 static void do_send_file(GtkWidget *, struct file_transfer *); |
| 43 static void do_get_file (GtkWidget *, struct file_transfer *); |
44 static void do_get_file (GtkWidget *, struct file_transfer *); |
| 44 |
45 |
| 234 ft->window = NULL; |
235 ft->window = NULL; |
| 235 serv_rvous_accept(ft->gc, ft->user, ft->cookie, ft->UID); |
236 serv_rvous_accept(ft->gc, ft->user, ft->cookie, ft->UID); |
| 236 |
237 |
| 237 |
238 |
| 238 /* XXX is ft->port in host order or network order? */ |
239 /* XXX is ft->port in host order or network order? */ |
| 239 ft->fd = proxy_connect(ft->ip, ft->port, NULL, NULL, -1); |
240 ft->fd = proxy_connect(ft->ip, ft->port, NULL, 0, -1); |
| 240 |
241 |
| 241 if (ft->fd <= -1) { |
242 if (ft->fd <= -1) { |
| 242 fclose(ft->f); |
243 fclose(ft->f); |
| 243 free_ft(ft); |
244 free_ft(ft); |
| 244 return; |
245 return; |
| 513 ft->window = NULL; |
514 ft->window = NULL; |
| 514 serv_rvous_accept(ft->gc, ft->user, ft->cookie, ft->UID); |
515 serv_rvous_accept(ft->gc, ft->user, ft->cookie, ft->UID); |
| 515 |
516 |
| 516 |
517 |
| 517 /* XXX is ft->port in host order or network order? */ |
518 /* XXX is ft->port in host order or network order? */ |
| 518 ft->fd = proxy_connect(ft->ip, ft->port, NULL, NULL, -1); |
519 ft->fd = proxy_connect(ft->ip, ft->port, NULL, 0, -1); |
| 519 |
520 |
| 520 if (ft->fd <= -1) { |
521 if (ft->fd <= -1) { |
| 521 free_ft(ft); |
522 free_ft(ft); |
| 522 return; |
523 return; |
| 523 } |
524 } |