14192
|
1 /**
|
|
2 * The QQ2003C protocol plugin
|
|
3 *
|
|
4 * for gaim
|
|
5 *
|
|
6 * Copyright (C) 2004 Puzzlebird
|
|
7 * Henry Ou <henry@linux.net>
|
|
8 *
|
|
9 * This program is free software; you can redistribute it and/or modify
|
|
10 * it under the terms of the GNU General Public License as published by
|
|
11 * the Free Software Foundation; either version 2 of the License, or
|
|
12 * (at your option) any later version.
|
|
13 *
|
|
14 * This program is distributed in the hope that it will be useful,
|
|
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17 * GNU General Public License for more details.
|
|
18 *
|
|
19 * You should have received a copy of the GNU General Public License
|
|
20 * along with this program; if not, write to the Free Software
|
|
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
22 */
|
|
23
|
|
24 #ifndef _QQ_PROXY_H
|
|
25 #define _QQ_PROXY_H
|
|
26
|
|
27 #include <glib.h>
|
14195
|
28 #include "dnsquery.h"
|
14192
|
29 #include "proxy.h"
|
14195
|
30
|
14192
|
31 #include "qq.h"
|
|
32
|
|
33 #define QQ_CONNECT_STEPS 2 /* steps in connection */
|
|
34
|
|
35 struct PHB {
|
|
36 GaimProxyConnectFunction func;
|
|
37 gpointer data;
|
|
38 gchar *host;
|
|
39 gint port;
|
|
40 gint inpa;
|
|
41 GaimProxyInfo *gpi;
|
|
42 GaimAccount *account;
|
|
43 gint udpsock;
|
|
44 gpointer sockbuf;
|
|
45 };
|
|
46
|
|
47 gint qq_proxy_read(qq_data *qd, guint8 *data, gint len);
|
|
48 gint qq_proxy_write(qq_data *qd, guint8 *data, gint len);
|
|
49
|
|
50 gint qq_connect(GaimAccount *account, const gchar *host, guint16 port, gboolean use_tcp, gboolean is_redirect);
|
|
51 void qq_disconnect(GaimConnection *gc);
|
|
52
|
|
53 void _qq_show_packet(const gchar *desc, const guint8 *buf, gint len);
|
|
54
|
|
55 #endif
|