]> andersk Git - libfaim.git/blobdiff - aim_misc.c
- Mon Jul 17 01:56:31 UTC 2000
[libfaim.git] / aim_misc.c
index c6244eec5c692feeae8b24aaf4801b1bf0d31175..420165f37ad5b8bffaf2feb6e34f47fe81441147 100644 (file)
@@ -499,6 +499,22 @@ u_long aim_bos_reqservice(struct aim_session_t *sess,
   return aim_genericreq_s(sess, conn, 0x0001, 0x0004, &serviceid);
 }
 
+/*
+ * aim_bos_nop()
+ *
+ * No-op.  WinAIM sends these every 4min or so to keep
+ * the connection alive.  With the recent changes
+ * in the OSCAR servers, it looks like we must do the
+ * same or be disconnected with a mysterious 'you logged
+ * on from another client' message.
+ *
+ */
+u_long aim_bos_nop(struct aim_session_t *sess,
+                  struct aim_conn_t *conn)
+{
+  return aim_genericreq_n(sess, conn, 0x0001, 0x0016);
+}
+
 /*
  * aim_bos_reqrights()
  *
@@ -523,6 +539,17 @@ u_long aim_bos_reqbuddyrights(struct aim_session_t *sess,
   return aim_genericreq_n(sess, conn, 0x0003, 0x0002);
 }
 
+/*
+ * aim_debugconn_sendconnect()
+ *
+ * For aimdebugd.  If you don't know what it is, you don't want to.
+ */
+u_long aim_debugconn_sendconnect(struct aim_session_t *sess,
+                                struct aim_conn_t *conn)
+{
+  return aim_genericreq_n(sess, conn, AIM_CB_FAM_SPECIAL, AIM_CB_SPECIAL_DEBUGCONN_CONNECT);
+}
+
 /*
  * Generic routine for sending commands.
  *
This page took 0.059037 seconds and 4 git commands to generate.