comparison plugins/icq/tcpchathandle.c @ 1977:7b3f1eb1ef7d

[gaim-migrate @ 1987] updated icqlib. fixed import dialog (watch debug window for errors). adam's (not mid's) patch for oscar. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 09 Jun 2001 14:46:51 +0000
parents 8ed70631ed15
children
comparison
equal deleted inserted replaced
1976:24aed1c31342 1977:7b3f1eb1ef7d
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 2
3 /* 3 /*
4 * $Id: tcpchathandle.c 1987 2001-06-09 14:46:51Z warmenhoven $
5 *
4 * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and 6 * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and
5 * Bill Soudan <soudan@kde.org> 7 * Bill Soudan <soudan@kde.org>
6 * 8 *
7 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
31 { 33 {
32 icq_TCPLink *pchatlink; 34 icq_TCPLink *pchatlink;
33 icq_ChatSession *pchat; 35 icq_ChatSession *pchat;
34 icq_Packet *p2; 36 icq_Packet *p2;
35 37
36 invoke_callback(plink->icqlink, icq_RequestNotify)(plink->icqlink,
37 p->id, ICQ_NOTIFY_ACK, 0, NULL);
38
39 pchatlink=icq_TCPLinkNew(plink->icqlink); 38 pchatlink=icq_TCPLinkNew(plink->icqlink);
40 pchatlink->type=TCP_LINK_CHAT; 39 pchatlink->type=TCP_LINK_CHAT;
41 pchatlink->id=p->id; 40 pchatlink->id=p->id;
42 41
43 /* once the ack packet has been processed, create a new chat session */ 42 /* once the ack packet has been processed, create a new chat session */
47 pchat->remote_uin=plink->remote_uin; 46 pchat->remote_uin=plink->remote_uin;
48 pchat->tcplink=pchatlink; 47 pchat->tcplink=pchatlink;
49 48
50 invoke_callback(plink->icqlink, icq_RequestNotify)(plink->icqlink, p->id, 49 invoke_callback(plink->icqlink, icq_RequestNotify)(plink->icqlink, p->id,
51 ICQ_NOTIFY_CHATSESSION, sizeof(icq_ChatSession), pchat); 50 ICQ_NOTIFY_CHATSESSION, sizeof(icq_ChatSession), pchat);
52 invoke_callback(plink->icqlink, icq_RequestNotify)(plink->icqlink, p->id,
53 ICQ_NOTIFY_SUCCESS, 0, NULL);
54 51
55 icq_ChatSessionSetStatus(pchat, CHAT_STATUS_CONNECTING); 52 icq_ChatSessionSetStatus(pchat, CHAT_STATUS_CONNECTING);
56 icq_TCPLinkConnect(pchatlink, plink->remote_uin, port); 53 icq_TCPLinkConnect(pchatlink, plink->remote_uin, port);
57 54
58 pchatlink->session=pchat; 55 pchatlink->session=pchat;