Mercurial > pidgin
annotate libfaim/aim_logoff.c @ 237:6ced2f1c8b24
[gaim-migrate @ 247]
How cool is this, libfaim is making a comeback. I completely redid everything,
as was necessary because of the updates to libfaim since gaim 0.9.7. You can
sign on and send/recv IMs, but there's a bad lag between display updates that
I haven't figured out how to fix yet.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Sat, 20 May 2000 00:30:53 +0000 |
| parents | 68b230f8da5f |
| children | 0f14e6d8a51b |
| rev | line source |
|---|---|
| 2 | 1 /* |
| 2 * aim_logoff.c | |
| 3 * | |
| 4 * | |
| 5 */ | |
| 6 | |
| 237 | 7 #include <aim.h> |
| 2 | 8 |
| 9 /* | |
| 10 * aim_logoff() | |
| 11 * | |
| 12 * Closes -ALL- open connections. | |
| 13 * | |
| 14 */ | |
| 237 | 15 int aim_logoff(struct aim_session_t *sess) |
| 2 | 16 { |
| 17 int i = AIM_CONN_MAX-1; | |
| 18 while (i > -1) | |
| 19 { | |
| 237 | 20 if (sess->conns[i].fd>-1) |
| 21 aim_conn_close(&(sess->conns[i])); | |
| 2 | 22 i--; |
| 23 } | |
| 237 | 24 aim_connrst(sess); /* in case we want to connect again */ |
| 2 | 25 |
| 26 return 0; | |
| 27 | |
| 28 } |
