Mercurial > pidgin
comparison src/protocols/oscar/txqueue.c @ 8735:92cbf9713795
[gaim-migrate @ 9490]
Patch by Jonathan Champ to corect the vairous speling mistakes we hav e in
the coments and documentaion. Thansk Jonathan!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 21 Apr 2004 01:34:26 +0000 |
parents | 0a0be07f066a |
children | f831a38eb6ba |
comparison
equal
deleted
inserted
replaced
8734:407c122d6191 | 8735:92cbf9713795 |
---|---|
1 /* | 1 /* |
2 * txqueue.c | 2 * txqueue.c |
3 * | 3 * |
4 * Herein lies all the mangement routines for the transmit (Tx) queue. | 4 * Herein lies all the management routines for the transmit (Tx) queue. |
5 * | 5 * |
6 */ | 6 */ |
7 | 7 |
8 #define FAIM_INTERNAL | 8 #define FAIM_INTERNAL |
9 #include <aim.h> | 9 #include <aim.h> |
90 } | 90 } |
91 | 91 |
92 /* | 92 /* |
93 * The overall purpose here is to enqueue the passed in command struct | 93 * The overall purpose here is to enqueue the passed in command struct |
94 * into the outgoing (tx) queue. Basically... | 94 * into the outgoing (tx) queue. Basically... |
95 * 1) Make a scope-irrelevent copy of the struct | 95 * 1) Make a scope-irrelevant copy of the struct |
96 * 3) Mark as not-sent-yet | 96 * 3) Mark as not-sent-yet |
97 * 4) Enqueue the struct into the list | 97 * 4) Enqueue the struct into the list |
98 * 6) Return | 98 * 6) Return |
99 * | 99 * |
100 * Note that this is only used when doing queue-based transmitting; | 100 * Note that this is only used when doing queue-based transmitting; |
177 | 177 |
178 faim_internal int aim_tx_enqueue(aim_session_t *sess, aim_frame_t *fr) | 178 faim_internal int aim_tx_enqueue(aim_session_t *sess, aim_frame_t *fr) |
179 { | 179 { |
180 | 180 |
181 /* | 181 /* |
182 * If we want to send on a connection that is inprogress, we have to force | 182 * If we want to send on a connection that is in progress, we have to force |
183 * them to use the queue based version. Otherwise, use whatever they | 183 * them to use the queue based version. Otherwise, use whatever they |
184 * want. | 184 * want. |
185 */ | 185 */ |
186 if (fr && fr->conn && | 186 if (fr && fr->conn && |
187 (fr->conn->status & AIM_CONN_STATUS_INPROGRESS)) { | 187 (fr->conn->status & AIM_CONN_STATUS_INPROGRESS)) { |
351 * And now for the meager attempt to force transmit | 351 * And now for the meager attempt to force transmit |
352 * latency and avoid missed messages. | 352 * latency and avoid missed messages. |
353 */ | 353 */ |
354 if ((cur->conn->lastactivity + cur->conn->forcedlatency) >= time(NULL)) { | 354 if ((cur->conn->lastactivity + cur->conn->forcedlatency) >= time(NULL)) { |
355 /* | 355 /* |
356 * XXX should be a break! we dont want to block the | 356 * XXX should be a break! we don't want to block the |
357 * upper layers | 357 * upper layers |
358 * | 358 * |
359 * XXX or better, just do this right. | 359 * XXX or better, just do this right. |
360 * | 360 * |
361 */ | 361 */ |