--- a/libpurple/protocols/qq/qq.h Thu Sep 11 13:32:26 2008 +0000 +++ b/libpurple/protocols/qq/qq.h Thu Sep 11 13:34:33 2008 +0000 @@ -44,6 +44,7 @@ typedef struct _qq_data qq_data; typedef struct _qq_buddy qq_buddy; typedef struct _qq_interval qq_interval; +typedef struct _qq_net_stat qq_net_stat; struct _qq_interval { gint resend; @@ -51,6 +52,14 @@ gint update; }; +struct _qq_net_stat { + glong sent; + glong resend; + glong lost; + glong rcved; + glong rcved_dup; +}; + struct _qq_buddy { guint32 uid; guint16 face; /* index: 0 - 299 */ @@ -96,6 +105,7 @@ gint udp_can_write_handler; /* socket can_write handle, use in udp connecting and tcp send out */ #endif gint fd; /* socket file handler */ + qq_net_stat net_stat; GList *servers; gchar *curr_server; /* point to servers->data, do not free*/ @@ -109,6 +119,7 @@ qq_interval itv_config; qq_interval itv_count; guint network_watcher; + gint resend_times; GList *transactions; /* check ack packet and resend */