Mercurial > pidgin
annotate libfaim/aim_logoff.c @ 193:6af9b88e4f90
[gaim-migrate @ 203]
Added a plugin to mimic the Lag-O-Meter. Configurable, loadable whenever,
does the right thing (tm), etc. Maybe one of these days the Lag-O-Meter will
be removed from being statically in gaim. Maybe.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 28 Apr 2000 22:42:20 +0000 |
parents | 68b230f8da5f |
children | 6ced2f1c8b24 |
rev | line source |
---|---|
2 | 1 /* |
2 * aim_logoff.c | |
3 * | |
4 * | |
5 */ | |
6 | |
7 #include "aim.h" | |
8 | |
9 /* | |
10 * aim_logoff() | |
11 * | |
12 * Closes -ALL- open connections. | |
13 * | |
14 */ | |
15 int aim_logoff(void) | |
16 { | |
17 int i = AIM_CONN_MAX-1; | |
18 while (i > -1) | |
19 { | |
20 if (aim_conns[i].fd>-1) | |
21 aim_conn_close(&(aim_conns[i])); | |
22 i--; | |
23 } | |
24 aim_connrst(); /* in case we want to connect again */ | |
25 | |
26 return 0; | |
27 | |
28 } |