view libfaim/aim_logoff.c @ 229:e8ea7f37e28f

[gaim-migrate @ 239] One minor tweak to the buddy list cache. If we read a non-zero buddy list from TOC and there is not a cache yet, create it. committer: Tailor Script <tailor@pidgin.im>
author Syd Logan <slogan>
date Wed, 10 May 2000 08:29:02 +0000
parents 68b230f8da5f
children 6ced2f1c8b24
line wrap: on
line source

/*
 * aim_logoff.c
 *
 *
 */

#include "aim.h"

/* 
 * aim_logoff()
 * 
 * Closes -ALL- open connections.
 *
 */
int aim_logoff(void)
{
  int i = AIM_CONN_MAX-1;
  while (i > -1)
    {
      if (aim_conns[i].fd>-1)
	aim_conn_close(&(aim_conns[i]));
      i--;
    }
  aim_connrst();  /* in case we want to connect again */

  return 0;

}