13870
|
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 // START OF FILE
|
|
25 /*****************************************************************************/
|
|
26
|
|
27 #ifndef _QQ_PROXY_H
|
|
28 #define _QQ_PROXY_H
|
|
29
|
|
30 #include <glib.h>
|
|
31 #include "proxy.h" // GaimAccount, GaimConnection
|
|
32 #include "qq.h" // qq_data
|
|
33
|
|
34 #define QQ_CONNECT_STEPS 2 // steps in cnnection
|
|
35
|
|
36 struct PHB {
|
|
37 GaimInputFunction func;
|
|
38 gpointer data;
|
|
39 gchar *host;
|
|
40 gint port;
|
|
41 gint inpa;
|
|
42 GaimProxyInfo *gpi;
|
|
43 GaimAccount *account;
|
|
44 gint udpsock;
|
|
45 gpointer sockbuf;
|
|
46 };
|
|
47
|
|
48 gint qq_proxy_read(qq_data * qd, guint8 * data, gint len);
|
|
49 gint qq_proxy_write(qq_data * qd, guint8 * data, gint len);
|
|
50
|
|
51 gint qq_connect(GaimAccount * account, const gchar * host, guint16 port, gboolean use_tcp, gboolean is_redirect);
|
|
52
|
|
53 void qq_disconnect(GaimConnection * gc);
|
|
54
|
|
55 #endif //_QQ_PROXY_H
|
|
56 /*****************************************************************************/
|
|
57 // END OF FILE
|