00001 00024 // START OF FILE 00025 /*****************************************************************************/ 00026 00027 #ifndef _QQ_PROXY_H 00028 #define _QQ_PROXY_H 00029 00030 #include <glib.h> 00031 #include "proxy.h" // GaimAccount, GaimConnection 00032 #include "qq.h" // qq_data 00033 00034 #define QQ_CONNECT_STEPS 2 // steps in cnnection 00035 00036 struct PHB { 00037 GaimInputFunction func; 00038 gpointer data; 00039 gchar *host; 00040 gint port; 00041 gint inpa; 00042 GaimProxyInfo *gpi; 00043 GaimAccount *account; 00044 gint udpsock; 00045 gpointer sockbuf; 00046 }; 00047 00048 gint qq_proxy_read(qq_data * qd, guint8 * data, gint len); 00049 gint qq_proxy_write(qq_data * qd, guint8 * data, gint len); 00050 00051 gint qq_connect(GaimAccount * account, const gchar * host, guint16 port, gboolean use_tcp, gboolean is_redirect); 00052 00053 void qq_disconnect(GaimConnection * gc); 00054 00055 #endif //_QQ_PROXY_H 00056 /*****************************************************************************/ 00057 // END OF FILE
1.4.4