comparison src/protocols/oscar/rxqueue.c @ 13231:af3d6c6aee6b

[gaim-migrate @ 15596] Shuffling some things around--no functionality change committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 11 Feb 2006 18:59:11 +0000
parents c5c0f714d8bc
children f2431a7e33aa
comparison
equal deleted inserted replaced
13230:1841236cb091 13231:af3d6c6aee6b
75 75
76 return; 76 return;
77 } 77 }
78 78
79 /* 79 /*
80 * Read a FLAP header from conn into fr, and return the number of 80 * Read a FLAP header from conn into fr, and return the number of
81 * bytes in the payload. 81 * bytes in the payload.
82 * 82 *
83 * @return -1 on error, otherwise return the length of the payload. 83 * @return -1 on error, otherwise return the length of the payload.
84 */ 84 */
85 static int aim_get_command_flap(aim_session_t *sess, aim_conn_t *conn, aim_frame_t *fr) 85 static int aim_get_command_flap(aim_session_t *sess, aim_conn_t *conn, aim_frame_t *fr)
154 154
155 return fr->hdr.rend.hdrlen - 8; 155 return fr->hdr.rend.hdrlen - 8;
156 } 156 }
157 157
158 /* 158 /*
159 * Grab a single command sequence off the socket, and enqueue it in the incoming event queue 159 * Grab a single command sequence off the socket, and enqueue it in
160 * in a separate struct. 160 * the incoming event queue in a separate struct.
161 * 161 *
162 * @return 0 on success, otherwise return the error number. 162 * @return 0 on success, otherwise return the error number.
163 * "Success" doesn't mean we have new data, it just means
164 * the connection isn't dead.
163 */ 165 */
164 faim_export int aim_get_command(aim_session_t *sess, aim_conn_t *conn) 166 faim_export int aim_get_command(aim_session_t *sess, aim_conn_t *conn)
165 { 167 {
166 aim_frame_t *fr; 168 aim_frame_t *fr;
167 int payloadlen; 169 int payloadlen;