view libfaim/aim_logoff.c @ 265:59f1748b09a6

[gaim-migrate @ 275] Logging in works properly for Oscar now. Let's hope I didn't break the TOC side of things. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 25 May 2000 08:09:03 +0000
parents 6ced2f1c8b24
children 0f14e6d8a51b
line wrap: on
line source

/*
 * aim_logoff.c
 *
 *
 */

#include <aim.h> 

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

  return 0;

}