Mercurial > pidgin
annotate libfaim/aim_logoff.c @ 276:9e6fc62490cd
[gaim-migrate @ 286]
receive messages faster
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 28 May 2000 21:38:54 +0000 |
parents | 6ced2f1c8b24 |
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 } |