view libfaim/aim_logoff.c @ 60:9b6127c08bcf

[gaim-migrate @ 70] Gotta list gnome_applet_mgr.c in the main part of the sources. make dist just assumes default build. Kinda broke --enable-gnome for gnome peoples :) committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Mon, 27 Mar 2000 00:46:06 +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;

}