comparison src/protocols/qq/send_core.c @ 13871:2be9dfa9569b

[gaim-migrate @ 16341] Fixed a bug that prevented libqq from being loaded as a plugin. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Mon, 26 Jun 2006 03:44:39 +0000
parents 983fd420e86b
children ef8490f9e823
comparison
equal deleted inserted replaced
13870:983fd420e86b 13871:2be9dfa9569b
35 35
36 /*****************************************************************************/ 36 /*****************************************************************************/
37 // create qq packet header with given sequence 37 // create qq packet header with given sequence
38 // return the number of bytes in header if succeeds 38 // return the number of bytes in header if succeeds
39 // return -1 if there is any error 39 // return -1 if there is any error
40 static gint _create_packet_head_seq(guint8 * buf, guint8 ** cursor, 40 gint _create_packet_head_seq(guint8 * buf, guint8 ** cursor,
41 GaimConnection * gc, guint16 cmd, gboolean is_auto_seq, guint16 * seq) 41 GaimConnection * gc, guint16 cmd, gboolean is_auto_seq, guint16 * seq)
42 { 42 {
43 qq_data *qd; 43 qq_data *qd;
44 gint bytes_expected, bytes_written; 44 gint bytes_expected, bytes_written;
45 45
75 75
76 /*****************************************************************************/ 76 /*****************************************************************************/
77 // for those need ack and resend no ack feed back from server 77 // for those need ack and resend no ack feed back from server
78 // return number of bytes written to the socket, 78 // return number of bytes written to the socket,
79 // return -1 if there is any error 79 // return -1 if there is any error
80 static gint _qq_send_packet(GaimConnection * gc, guint8 * buf, gint len, guint16 cmd) 80 gint _qq_send_packet(GaimConnection * gc, guint8 * buf, gint len, guint16 cmd)
81 { 81 {
82 qq_data *qd; 82 qq_data *qd;
83 qq_sendpacket *p; 83 qq_sendpacket *p;
84 gint bytes_sent; 84 gint bytes_sent;
85 guint8 *cursor; 85 guint8 *cursor;