Mercurial > pidgin
annotate libfaim/aim_logoff.c @ 318:35796808896a
[gaim-migrate @ 328]
This is the way it's *SUPPOSED* to be done.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 02 Jun 2000 18:59:27 +0000 |
parents | 0f14e6d8a51b |
children | 9d258a0aa560 |
rev | line source |
---|---|
2 | 1 /* |
2 * aim_logoff.c | |
3 * | |
4 * | |
5 */ | |
6 | |
283
0f14e6d8a51b
[gaim-migrate @ 293]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
237
diff
changeset
|
7 #include <faim/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 } |