view libfaim/aim_logoff.c @ 283:0f14e6d8a51b

[gaim-migrate @ 293] - Good fun things here. Sometimes I think Adam does things just to make it difficult for me, I swear (j/k :) ). - I moved all the .h files into the faim/ directory because I'm tired of changing faim/aim.h to just aim.h every time Adam makes an update. - libfaim can now send messages much longer than WinAIM or TOC can. But, the length checking code is still in conversation.c, and I haven't changed it yet, mostly because I'm lazy. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 31 May 2000 03:20:11 +0000
parents 6ced2f1c8b24
children 9d258a0aa560
line wrap: on
line source

/*
 * aim_logoff.c
 *
 *
 */

#include <faim/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;

}