view libfaim/aim_logoff.c @ 92:f3c6cf79f651

[gaim-migrate @ 102] Loading/unloading plugins works correctly. I have to add "hooks" to the rest of gaim now to do certain things. Other than that, it's all good. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 07 Apr 2000 22:48:58 +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;

}