src/protocols/qq/qq_proxy.h

changeset 14253
b63ebf84c42b
parent 14252
d10dda2777a9
child 14254
77edc7a6191a
equal deleted inserted replaced
14252:d10dda2777a9 14253:b63ebf84c42b
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>
28 #include "proxy.h"
29 #include "qq.h"
30
31 #define QQ_CONNECT_STEPS 2 /* steps in connection */
32
33 struct PHB {
34 GaimProxyConnectFunction func;
35 gpointer data;
36 gchar *host;
37 gint port;
38 gint inpa;
39 GaimProxyInfo *gpi;
40 GaimAccount *account;
41 gint udpsock;
42 gpointer sockbuf;
43 };
44
45 gint qq_proxy_read(qq_data *qd, guint8 *data, gint len);
46 gint qq_proxy_write(qq_data *qd, guint8 *data, gint len);
47
48 gint qq_connect(GaimAccount *account, const gchar *host, guint16 port, gboolean use_tcp, gboolean is_redirect);
49 void qq_disconnect(GaimConnection *gc);
50
51 gint _qq_fill_host(struct sockaddr_in *addr, const gchar *host, guint16 port);
52
53 void _qq_show_packet(const gchar *desc, const guint8 *buf, gint len);
54
55 #endif

mercurial