Mercurial > pidgin
comparison libfaim/aim_logoff.c @ 2:68b230f8da5f
[gaim-migrate @ 11]
A few more commits :)
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Thu, 23 Mar 2000 03:16:06 +0000 |
parents | |
children | 6ced2f1c8b24 |
comparison
equal
deleted
inserted
replaced
1:2846a03bda67 | 2:68b230f8da5f |
---|---|
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 } |