comparison src/toc.c @ 198:73e9a0bfff62

[gaim-migrate @ 208] Moved all the RVOUS stuff into rvous.c (mostly to reduce the size of dialogs.c). Started trying to implement FILE_GET_UID, without much luck. I'm going to do some dumps of the win client tomorrow to see if I can figure out what's going on a little better. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 30 Apr 2000 10:39:35 +0000
parents 24f0fef56a73
children bc117fbcf527
comparison
equal deleted inserted replaced
197:24f0fef56a73 198:73e9a0bfff62
626 626
627 name = tmp + 8; 627 name = tmp + 8;
628 628
629 ft = g_new0(struct file_transfer, 1); 629 ft = g_new0(struct file_transfer, 1);
630 630
631 ft->cookie = frombase64(cookie); 631 ft->cookie = g_strdup(cookie);
632 ft->ip = g_strdup(pip); 632 ft->ip = g_strdup(pip);
633 ft->port = port; 633 ft->port = port;
634 if (i) 634 if (i)
635 ft->message = g_strdup(messages[0]); 635 ft->message = g_strdup(messages[0]);
636 else 636 else
637 ft->message = NULL; 637 ft->message = NULL;
638 ft->filename = g_strdup(name); 638 ft->filename = g_strdup(name);
639 ft->user = g_strdup(user); 639 ft->user = g_strdup(user);
640 ft->size = totalsize; 640 ft->size = totalsize;
641 sprintf(ft->UID, "%s", FILE_SEND_UID);
641 642
642 g_free(tmp); 643 g_free(tmp);
643 644
644 for (i--; i >= 0; i--) 645 for (i--; i >= 0; i--)
645 g_free(messages[i]); 646 g_free(messages[i]);
646 647
647 accept_file_dialog(ft); 648 accept_file_dialog(ft);
648 } else if (!strcmp(uuid, FILE_GET_UID)) { 649 } else if (!strcmp(uuid, FILE_GET_UID)) {
649 /* we're sending a file */ 650 /* we're sending a file */
650 /* FIXME */ 651 ft = g_new0(struct file_transfer, 1);
651 /* here's what needs to happen: 652
652 * 1. dialog to accept/reject transfer 653 ft->cookie = g_strdup(cookie);
653 * 2. if cancel, toc_rvous_cancel 654 ft->ip = g_strdup(pip);
654 * 3. if accept, first open a socket, then accept 655 ft->port = port;
655 * a. on connect, send header 656 if (i)
656 * b. wait for header 657 ft->message = g_strdup(messages[0]);
657 * c. send file 658 else
658 * d. wait for info 659 ft->message = NULL;
659 */ 660 ft->user = g_strdup(user);
661 sprintf(ft->UID, "%s", FILE_GET_UID);
662
663 g_free(tmp);
664
665 for (i--; i >= 0; i--)
666 g_free(messages[i]);
667
668 accept_file_dialog(ft);
660 /* 669 /*
661 } else if (!strcmp(uuid, VOICE_UID)) { 670 } else if (!strcmp(uuid, VOICE_UID)) {
662 } else if (!strcmp(uuid, B_ICON_UID)) { 671 } else if (!strcmp(uuid, B_ICON_UID)) {
663 } else if (!strcmp(uuid, IMAGE_UID)) { 672 } else if (!strcmp(uuid, IMAGE_UID)) {
664 */ 673 */