]> andersk Git - libfaim.git/blobdiff - aim_logoff.c
- Thu Feb 8 02:31:25 UTC 2001
[libfaim.git] / aim_logoff.c
index b16eef16ab974e95c1de9469c7fc6123bbc4bb98..0ea3f0061c8c86b80b63be405e6fb0655ad76fd2 100644 (file)
@@ -2,8 +2,11 @@
  * aim_logoff.c
  *
  *
+ * XXX remove this excuse for a file.
+ *
  */
 
+#define FAIM_INTERNAL
 #include <faim/aim.h> 
 
 /* 
  * Closes -ALL- open connections.
  *
  */
-int aim_logoff(struct aim_session_t *sess)
+faim_export 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;
This page took 0.039431 seconds and 4 git commands to generate.