00001 00023 // START OF FILE 00024 /*****************************************************************************/ 00025 #ifndef _QQ_SEND_QUEUE_H_ 00026 #define _QQ_SEND_QUEUE_H_ 00027 00028 #include <glib.h> 00029 #include "qq.h" // qq_data 00030 00031 #define QQ_SENDQUEUE_TIMEOUT 5000 // in 1/1000 sec 00032 00033 typedef struct _qq_sendpacket qq_sendpacket; 00034 00035 struct _qq_sendpacket { 00036 gint fd; 00037 gint len; 00038 gchar *buf; 00039 guint16 cmd; 00040 guint16 send_seq; 00041 gint resend_times; 00042 time_t sendtime; 00043 }; 00044 00045 void qq_sendqueue_free(qq_data * qd); 00046 00047 void qq_sendqueue_remove(qq_data * qd, guint16 send_seq); 00048 gboolean qq_sendqueue_timeout_callback(gpointer data); 00049 00050 #endif 00051 /*****************************************************************************/ 00052 // END OF FILE
1.4.4